/usr/lib/python2.6/site-packages/openstackclient/network/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/network/v2/subnet.pyc (13988B)
Ñò
þWc @ sc d Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l
Z
d d k l Z
d
„ Z d „ Z h e d 6e i d
6e d 6Z d „ Z d „ Z d „ Z d „ Z e d „ Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S( s Subnet action implementationsiÿÿÿÿN( t JSONEncoder( t command( t
exceptions( t
parseractions( t utils( t _( t commonc C sP g } | D]/ } | d | i d d ƒ | i d d ƒ f q ~ } d i | ƒ S( Ns %s-%st startt t endt ,( t gett join( t datat _[1]t poolt pool_formatted( ( sQ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/network/v2/subnet.pyt _format_allocation_pools s <c C sY y8 d i g } | D] } | t ƒ i | ƒ q ~ ƒ SWn t t f j
o d SXd S( Ns
R ( R R t encodet TypeErrort KeyError( R
R t route( ( sQ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/network/v2/subnet.pyt _format_host_routes! s 8t allocation_poolst dns_nameserverst host_routesc
C s£ | i d d d d d d t i d d d g d
t d ƒ ƒ| i d d d
d d d d d
t d ƒ ƒ| i d d d d d d t i d d d g d
t d ƒ ƒd S( Ns --allocation-poolt metavars# start=
,end=t destR t actiont
required_keysR R t helps‡ Allocation pool IP addresses for this subnet e.g.: start=192.168.199.2,end=192.168.199.254 (repeat option to add multiple IP addresses)s --dns-nameservers t appendR sF DNS server for this subnet (repeat option to set multiple DNS servers)s --host-routes) destination=,gateway=R t destinationt gatewaysÌ Additional route for this subnet e.g.: destination=10.10.0.0/16,gateway=192.168.71.254 destination: destination subnet (in CIDR notation) gateway: nexthop IP address (repeat option to add multiple routes)( t add_argumentR t MultiKeyValueActionR ( t parser( ( sQ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/network/v2/subnet.pyt _get_common_parse_arguments/ s(
c C sM t | i ƒ ƒ } d | j o | i d ƒ | i d ƒ n t t | ƒ ƒ S( Nt tenant_idt
project_id( t listt keyst removeR t tuplet sorted( t itemt columns( ( sQ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/network/v2/subnet.pyt _get_columnsP s
c C s9 t i | ƒ } x# | D] } | d | d <| d =q W| S( NR! t nexthop( t copyt deepcopy( t entriest changed_entriest entry( ( sQ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/network/v2/subnet.pyt convert_entries_to_nexthopX s c C s9 t i | ƒ } x# | D] } | d | d <| d =q W| S( NR0 R! ( R1 R2 ( R3 R4 R5 ( ( sQ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/network/v2/subnet.pyt convert_entries_to_gatewayb s c C s h } d | j o' | i d j o t | i ƒ | d