Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancetypes.pyo
ó
¡ôXc @ sM d d l m Z d d l m Z d d l m Z d e e f d „ ƒ YZ d S( iÿÿÿÿ( t Arg( t TabifyingMixin( t
EC2Requestt DescribeInstanceTypesc B s’ e Z d Z e d d d d d d d ƒe d d d
d d d
d d d ƒe d d d d d d d ƒg Z d d g Z d „ Z d „ Z d „ Z RS( s7 [Eucalyptus only] Show information about instance typest InstanceTypet metavart INSTANCETYPEt nargst *t helps( limit results to specific instance typess --by-zonet destt by_zonet actiont
store_truet route_tos/ show info for each availability zone separatelys --show-capacityt Availabilitys! show info about instance capacityt instanceTypeDetailst availabilityc C s6 t j | ƒ | j j d t ƒ r2 t | j d <n d S( NR R ( R t configuret argst gett Falset Truet params( t self( ( sP /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancetypes.pyR + s
c
C s g } i } i } x”| j d g ƒ D]€} | j | d ƒ i | j d ƒ d 6| j d ƒ d 6| j d ƒ d 6| j d ƒ d 6d d 6d d
6| | d <| j j d t ƒ r% xõ | j d g ƒ D]Þ } t | j d d ƒ ƒ } t | j d
d ƒ ƒ } | | d d c | 7<| | d d
c | 7<| j | d
i ƒ i | j d ƒ d 6| j d ƒ d 6| j d ƒ d 6| j d ƒ d 6| d 6| d
6| | d
| d <qÀ Wq% q% W| j j d ƒ rxX t | j ƒ ƒ D]1 \ } } | j d | f ƒ GH| j
| | ƒ HqÎWn | j
| | ƒ d S( NR t namet cput memoryt diskt networkInterfacest nicsi t availablet maxR R t zoneNameR t AVAILABILITYZONE( R t appendR R t intt
setdefaultR t sortedt itemst tabifyt _print_vmtypes(
R t resultt vmtype_namest vmtypest zonest vmtypet zoneR t max_t zone_vmtypes( ( sP /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancetypes.pyt print_result0 s>