Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describevpnconnections.pyo
�
��Xc@s^ddlZddlmZmZmZddlZddlmZdefd��YZdS(i����N(tArgtFiltertGenericTagFilter(t
EC2RequesttDescribeVpnConnectionscBs(eZdZeddddddd�edd	d(dd
�edd	d(dd�gZed
dd�eddd�eddd�eddd�eddd�eddd�eddd�eddd�eddd�eddd �ed!dd"�ed#dd$�gZd%d&gZ	d'�Z
RS()s&Show information about VPN connectionstVpnConnectionIdtmetavartVPNCONNtnargst*thelps)limit results to specific VPN connectionss--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: none)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)sbgp-asnsQthe BGP AS number advertised by the
                      customer gateway routerscustomer-gateway-configurations/connection information for the customer gatewayscustomer-gateway-ids$ID of the connected customer gatewaytstatesXthe VPN connection's state (available,
                      deleting, deleted, pending)soption.static-routes-onlysdwhether the VPN connection is restricted to
                      static routes instead of using BGPsroute.destination-cidr-blocks�the address block
                      corresponding to the subnet used in the data center
                      behind the customer gateway routerstag-keys+key of a tag assigned to the VPN connections	tag-values-value of a tag assigned to the VPN connectionstag:KEYs"specific tag key/value combinationttypes-the type of virtual private gateway (ipsec.1)svpn-connection-idsID of the VPN connectionsvpn-gateway-ids+ID of the connected virtual private gatewaytvpnConnectionSetttagSetcCsH|jjd�dkr9|jjd�}t|�}n�|jjd�dkr`d}t}n�|jjd�dkr�d}t}n�|jjd�}|s�|jjd�}n|r�|jd|jd�}n,|j	j
d�d}tj|dt
j�t|�}x3|jd	g�D]}|j|d
|d|�q!WdS(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")tfileRtshow_conn_info(targstgettNonetbooltFalsetTruetconfigtget_region_optionRtlogtwarntsixtprint_tsyststderrtprint_vpn_connection(tselftresultRRtmsgtvpn((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describevpnconnections.pytprint_resultKs*		N(t__name__t
__module__tDESCRIPTIONRRtARGSRRtFILTERSt	LIST_TAGSR)(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describevpnconnections.pyR"s@											(	R"trequestbuilderRRRR teuca2ools.commands.ec2RR(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describevpnconnections.pyt<module>s