Current File : //lib/python2.7/site-packages/euca2ools/commands/ec2/createroute.pyc
�
��Xc@s@ddlmZmZddlmZdefd��YZdS(i����(tArgtMutuallyExclusiveArgList(t
EC2RequesttCreateRoutecBs�eZdZeddddd�edddd	dd
dedd�eed
ddddd"dd�edddddddd�edddddd�edddddddd��j�gZd �Z	d!�Z
RS(#s Add a route to a VPC route tabletRouteTableIdtmetavartRTABLEthelps4ID of the route table to add the route to (required)s-rs--cidrtdesttDestinationCidrBlocktCIDRtrequireds5CIDR address block the route should affect (required)s-gs--gateway-idtGATEWAYtroute_tos<ID of an Internet, NAT, or virtual private gateway to targets-is
--instancet
InstanceIdtINSTANCEsID of a NAT instance to targets-ns--network-interfacetNetworkInterfaceIds#ID of a network interface to targets-ps--vpc-peering-connectiontPEERCONtVpcPeeringConnectionIds(ID of a VPC peering connection to targetcCsStj|�|jd}|rO|jd�r?||jd<qO||jd<ndS(Nt
gateway_idsnat-tNatGatewayIdt	GatewayId(Rt	configuretargst
startswithtparams(tselfR((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createroute.pyR3s

c	Cs||jjd�pW|jjd�pW|jjd�pW|jjd�pW|jjd�}|jd||jdf�GHdS(NRRRRRtROUTER	(Rtgetttabify(Rt_ttarget((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createroute.pytprint_result<s
$N(t__name__t
__module__tDESCRIPTIONRtTrueRtNoneRtARGSRR (((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createroute.pyRs$		N(trequestbuilderRRteuca2ools.commands.ec2RR(((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createroute.pyt<module>s