�
��Xc@sRddlZddlmZddlZddlmZdefd��YZdS(i����N(tArg(t
EC2RequesttCreateVpnConnectionc
Bs�eZdZedddddddeddd d
�eddddedd
d d�eddddeddd d�edddddd d�edddd d�edddd d�gZd�ZRS( sCreate a VPN connection between a virtual private gateway and a customer gateway
You can optionally format the connection information for specific devices using the --format or --stylesheet options. If the --stylesheet option is an HTTP or HTTPS URL it will be downloaded as needed.s-ts--typetdesttTypetmetavarsipsec.1trequiredtchoicesthelps,the type of VPN connection to use (required)s--customer-gatewaytCustomerGatewayIdtCGATEWAYs0ID of the customer gateway to connect (required)s
--vpn-gatewaytVpnGatewayIdtVGATEWAYsGID of the virtual private gateway
to connect (required)s--static-routes-onlysOptions.StaticRoutesOnlytactiont
store_trues%use only static routes instead of BGPs--formattroute_tos�show connection
information in a specific format (cisco-ios-isr,
juniper-junos-j, juniper-screenos-6.1, juniper-screenos-6.2,
generic, xml, none) (default: xml)s--stylesheetsjformat the connection
information using an XSL stylesheet. If the value contains
"{format}" it will be replaced with the format chosen by the
--format option. If the value is an HTTP or HTTPS URL it
will be downloaded as needed. (default: value of
"vpn-stylesheet" region option)cCs4|jjd�dkr3|jjd�}t}n�|jjd�dkrZd}t}n�|jjd�dkr�d}t}n�|jjd�}|s�|jjd�}n|r�|jd|jd�}n,|jj d�d}t
j|dtj
�t|�}|j|jd �p id
|d|�dS(Ntformatt
stylesheettnonetxmlsvpn-stylesheets current region has no stylesheets�current region has no XSLT stylesheet to format output; connection info will not be shown (try specifying one with "--stylesheet" or using "--format xml")tfilet
vpnConnectiontshow_conn_info(targstgettNonetTruetFalsetconfigtget_region_optionRtlogtwarntsixtprint_tsyststderrtbooltprint_vpn_connection(tselftresultRRtmsg((sN/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createvpnconnection.pytprint_result@s* (sipsec.1N(t__name__t
__module__tDESCRIPTIONRRRtARGSR)(((sN/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createvpnconnection.pyR"s$(R"trequestbuilderRR teuca2ools.commands.ec2RR(((sN/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createvpnconnection.pyt<module>s |