/usr/lib/python2.6/site-packages/novaclient/v2
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/networks.pyc (5836B)
Ñò
=vVc @ sl d 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 d S(
s
Network interface.
iÿÿÿÿ( t base( t
exceptions( t _t Networkc B s, e Z d Z e Z d Z d „ Z d „ Z RS( s
A network.
t labelc C s d | i S( Ns
( R ( t self( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyt __repr__ s c C s | i i | ƒ d S( N( t managert delete( R ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyR # s ( t __name__t
__module__t __doc__t Truet HUMAN_IDt NAME_ATTRR R ( ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyR s
t NetworkManagerc B se e Z d Z e Z d „ Z d „ Z d „ Z d „ Z e e d „ Z
d „ Z d „ Z d d „ Z RS(
s,
Manage :class:`Network` resources.
c C s | i d d ƒ S( sX
Get a list of all networks.
:rtype: list of :class:`Network`.
s /os-networkst networks( t _list( R ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyt list- s c C s | i d t i | ƒ d ƒ S( sŠ
Get a specific network.
:param network: The ID of the :class:`Network` to get.
:rtype: :class:`Network`
s /os-networks/%st network( t _getR t getid( R R ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyt get5 s c C s | i d t i | ƒ ƒ d S( so
Delete a specific network.
:param network: The ID of the :class:`Network` to delete.
s /os-networks/%sN( t _deleteR R ( R R ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyR ? s c K s h | d 6} | i d | d ƒ S( sK
Create (allocate) a network. The following parameters are
optional except for label; cidr or cidr_v6 must be specified, too.
:param label: str
:param bridge: str
:param bridge_interface: str
:param cidr: str
:param cidr_v6: str
:param dns1: str
:param dns2: str
:param fixed_cidr: str
:param gateway: str
:param gateway_v6: str
:param multi_host: str
:param priority: str
:param project_id: str
:param vlan: int
:param vlan_start: int
:param vpn_start: int
:param mtu: int
:param enable_dhcp: int
:param dhcp_server: str
:param share_address: int
:param allowed_start: str
:param allowed_end: str
:rtype: object of :class:`Network`
R s /os-networks( t _create( R t kwargst body( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyt createG s
c C sŽ | o | o h d d 6} nF | o h d d 6} n. | o h d d 6} n t i t d ƒ ƒ ‚ | i i i d t i | ƒ d | ƒd S( s
Disassociate a specific network from project and/or host.
:param network: The ID of the :class:`Network`.
:param disassociate_host: Whether to disassociate the host
:param disassociate_project: Whether to disassociate the project
t disassociatet disassociate_projectt disassociate_hosts0 Must disassociate either host or project or boths /os-networks/%s/actionR N( t NoneR t CommandErrorR t apit clientt postR R ( R R R R R ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyR h s c C s1 | i i i d t i | ƒ d h | d 6ƒd S( s¼
Associate a specific network with a host.
:param network: The ID of the :class:`Network`.
:param host: The name of the host to associate the network with
s /os-networks/%s/actionR t associate_hostN( R! R" R# R R ( R R t host( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyR$ ~ s c C s$ | i i i d d h | d 6ƒd S( s¼
Associate a specific network with a project.
The project is defined by the project authenticated against
:param network: The ID of the :class:`Network`.
s /os-networks/addR t idN( R! R" R# ( R R ( ( sA /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/networks.pyt associate_project‰ s c C s; | i i i d d h | o t i | ƒ n d d 6ƒd S( sÕ
Associates the current project with a network. Network can be chosen
automatically or provided explicitly.
:param network: The ID of the :class:`Network` to associate (optional).
s /os-networks/addR R&