Current File : //lib/python2.7/site-packages/euca2ools/commands/ec2/createvpnconnection.pyc |
�
��Xc @ sR d d l Z d d l m Z d d l Z d d l m Z d e f d � � YZ d S( i����N( t Arg( t
EC2Requestt CreateVpnConnectionc
B s� e Z d Z e d d d d d d d e d d d d
�e d d d d e d d
d d �e d d d d e d d d d �e d d d d d d d �e d d d d d �e d d d d d �g Z d � Z RS( s Create 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 --typet destt Typet metavars ipsec.1t requiredt choicest helps, the type of VPN connection to use (required)s --customer-gatewayt CustomerGatewayIdt CGATEWAYs0 ID of the customer gateway to connect (required)s
--vpn-gatewayt VpnGatewayIdt VGATEWAYsG ID of the virtual private gateway
to connect (required)s --static-routes-onlys Options.StaticRoutesOnlyt actiont
store_trues% use only static routes instead of BGPs --formatt route_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 --stylesheetsj format 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)c C s4 | j j d � d k r3 | j j d � } t } n� | j j d � d k rZ d } t } n� | j j d � d k r� d } t } n� | j j d � } | s� | j j d � } n | r� | j d | j d � } n, | j j d � d } t
j | d t j
�t | � } | j | j d � p i d
| d | �d S( Nt formatt
stylesheett nonet xmls vpn-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")t filet
vpnConnectiont show_conn_info( t argst gett Nonet Truet Falset configt get_region_optionR t logt warnt sixt print_t syst stderrt boolt print_vpn_connection( t selft resultR R t msg( ( sN /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createvpnconnection.pyt print_result@ s* ( s ipsec.1N( t __name__t
__module__t DESCRIPTIONR R R t ARGSR) ( ( ( sN /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createvpnconnection.pyR "