/usr/lib/python2.6/site-packages/openstackclient/compute/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/compute/v2/fixedip.pyc (2855B)
Ñò
;vVc @ sh d Z d d k Z d d k l Z d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S( s Fixed IP action implementationsiÿÿÿÿN( t command( t utilst
AddFixedIPc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Add fixed-ip commands .AddFixedIPc C sN t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d d ƒ| S( Nt networkt metavars
t helps/ Name of the network to fetch an IP address fromt servers s, Name of the server to receive the IP address( t superR t
get_parsert add_argument( t selft prog_namet parser( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyR s c C sf | i i d | ƒ | i i i } t i | i | i ƒ } t i | i | i
ƒ } | i | i ƒ d S( Ns take_action(%s)(
t logt debugt appt client_managert computeR t
find_resourcet networksR t serversR t add_fixed_ipt id( R
t parsed_argst compute_clientR R ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyt take_action, s ( t __name__t
__module__t __doc__t loggingt getLoggerR
R R ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyR s t
RemoveFixedIPc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Remove fixed-ip commands .RemoveFixedIPc C sN t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d d ƒ| S( Nt
ip_addressR s R s IP address to remove from serverR s s0 Name of the server to remove the IP address from( R R R R ( R
R R ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyR ? s c C sN | i i d | ƒ | i i i } t i | i | i ƒ } | i | i
ƒ d S( Ns take_action(%s)( R
R R R R R R R R t remove_fixed_ipR ( R
R R R ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyR M s ( R R R R R R
R R ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyR : s ( R R t cliffR t openstackclient.commonR t CommandR R ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/fixedip.pyt s
!