Current File : //lib/python2.7/site-packages/euca2ools/commands/ec2/assignprivateipaddresses.pyc
�
��Xc@s\ddlZddlmZmZddlmZddlmZdefd��YZdS(i����N(tArgtMutuallyExclusiveArgList(t
ArgumentError(t
EC2RequesttAssignPrivateIpAddressescBs�eZdZedddddddd�ed	d
ddddej�eed
ddddddddd�edddedddddd��j	�eddddddd�gZ
d�ZRS( s�Assign one or more private IP addresses to a network interface

Note that an instance's type may affect the number of addresses it can hold at once.s-ns--network-interfacetmetavart	INTERFACEtdesttNetworkInterfaceIdthelpsMID of the network interface
                to assign addresses to (required)tpositional_interfacetnargst?troute_tos--secondary-addresss--secondary-private-ip-addresstADDRESStPrivateIpAddresstactiontappends�assign a specific secondary
                    private IP address to the network interface.  Use this
                    option multiple times to add additional addresses.s--secondary-counts$--secondary-private-ip-address-countttypetSecondaryPrivateIpAddressCounttCOUNTsuautomatically assign a specific number of secondary
                    private IP addresses to the network interfaces--allow-reassignmenttAllowReassignmentt
store_trueshAllow addresses to be assigned
                even if they are already associated with other interfacescCs�tj|�|jjd�rg|jjd�rPtdj|jd���n|jd|jd<n|jjd�s�td��ndS(NR
Rsunrecognized arguments: {0}s+argument -n/--network-interface is required(Rt	configuretargstgettparamsRtformat(tself((sS/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/assignprivateipaddresses.pyR;s
	N(t__name__t
__module__tDESCRIPTIONRtNonetargparsetSUPPRESSRtinttrequiredtARGSR(((sS/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/assignprivateipaddresses.pyR"s&	(	R!trequestbuilderRRtrequestbuilder.exceptionsRteuca2ools.commands.ec2RR(((sS/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/assignprivateipaddresses.pyt<module>s