/usr/lib/python2.6/site-packages/novaclient/v2/contrib
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/contrib/cells.pyc (3025B)
Ñò
=vVc @ sÐ d d k l Z d d k l Z d d k l Z d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ
e i d d
d d e d
ƒ ƒd „ ƒ Z e i d d
d d e d ƒ d d ƒd „ ƒ Z d S( iÿÿÿÿ( t base( t _( t cliutils( t utilst Cellc B s e Z d „ Z RS( c C s d | i S( Ns
( t name( t self( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyt __repr__ s ( t __name__t
__module__R ( ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyR s t CellsManagerc B s# e Z e Z d „ Z d d „ Z RS( c C s | i d | d ƒ S( sx
Get a cell.
:param cell_name: Name of the :class:`Cell` to get.
:rtype: :class:`Cell`
s /os-cells/%st cell( t _get( R t cell_name( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyt get s c C s. d | d g | d j } | i d | d ƒ S( s–
Get capacities for a cell.
:param cell_name: Name of the :class:`Cell` to get capacities for.
:rtype: :class:`Cell`
s
%s/capacitiest
capacitiess /os-cells/%sR N( t NoneR ( R R
t path( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyR ' s N( R R R t resource_classR R R ( ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyR
s R t metavars t helps Name of the cell.c C s) | i i | i ƒ } t i | i ƒ d S( s Show details of a given cell.N( t cellsR R R t
print_dictt _info( t cst argsR ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyt do_cell_show2 s s --cells' Name of the cell to get the capacities.t defaultc C s• | i i | i ƒ } t d ƒ | i d d GHt i | i d d d d d d ƒt d ƒ | i d
d GHt i | i d
d d d d d ƒd S(
s2 Get cell capacities for all cells or a given cell.s Ram Available: %s MBt ram_freet total_mbt units_by_mbt
dict_propertys Ram(MB)t
dict_valuet Unitss
Disk Available: %s MBt disk_frees Disk(MB)N( R R R R R R ( R R R ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/cells.pyt do_cell_capacities<