Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/createsubnet.pyo
ó
¡ô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<