Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createsubnet.pyc |
�
��Xc @ sV d d l Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d S( i����N( t Arg( t
ArgumentError( t
EC2Requestt CreateSubnetc B s� e Z d Z e d d d d d �e d d d d d
d d d d e j �e d
d d d d e d d �e d d d d d d d d �g Z d g Z d � Z
d � Z RS( s Create a new VPC subnett CidrBlockt metavart CIDRt helps0 CIDR address block for the new subnet (required)s -is --cidrt destt dummyt actiont
store_truet route_tos -cs --vpct VpcIdt requireds4 ID of the VPC to create the new subnet in (required)s -zs --availability-zonet AvailabilityZonet ZONEs3 availability zone in which to create the new subnett tagSetc C s� t j | � | j j d � rg | j j d � rP t d j | j d � � � n | j d | j d <n | j j d � s� t d � � n d S( Nt positional_cidrR s unrecognized arguments: {0}s argument -i/--cidr is required( R t configuret argst gett paramsR t format( t self( ( sG /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createsubnet.pyR 1 s
c C s | j | j d � p i � d S( Nt subnet( t print_subnetR ( R t result( ( sG /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createsubnet.pyt print_result<