Networks
Network interface.
-
-
class Novaclient.v2.networks. Network (
manager,
info,
loaded=false )
-
Bases: novaclient.openstack.common.apiclient.base.Resource
A Network.
Populate and bind to a manager.
Parameters: |
- Manager –basemanager Object
- Info –dictionary representing resource attributes
- loaded –prevent lazy-loading if set to True
|
- human_id
= True
-
- name_attr
= ' label '
-
- Delete ( )
-
-
-
class Novaclient.v2.networks. NetworkManager (
API )
-
Bases: novaclient.base.ManagerWithFind
Manage Network resources.
- add (
network=none )
Associates The current project with a network. Network can be chosenautomatically or provided explicitly.
parameter S: |
network , Haven ID of the network to associate (optional). |
- associate_host (
network ,
host )
-
Associate a specific network with a host.
parameter S: |
- network , Haven ID of The network .
- host , haven name of the host to associate the network with
|
- Associate_project (
network )
-
Associate a specific network with a project.
The project is defined by the project authenticated against
Parameters: |
network , Haven ID of the network. |
-
- Create (
**kwargs )
-
Create (allocate) a network. The following parameters areoptional except for label; CIDR or CIDR_V6 must be specified, too.
Parameters: |
- label –str
- bridge –str
- Bridge_interface –str
- CIDR –str
- cidr_v6 –str
- Strong>dns1 –str
- dns2 –str
- fixed_cidr –str
- gateway –str
- gateway_v6 –str
- multi_host –str
- Priority –str
- project_id –str
- VLAN –int
- Vlan_start –int
- Vpn_start –int
- MTU –int
- enable_dhcp –int
- dhcp_server –str
- share_address –int
- Allowed_start –str
- allowed_end –str
|
Return Type: |
Object of the Network |
- Delete (
network )
-
Delete a specific network.
Parameters: |
network , Haven ID of the network to delete. |
- disassociate (
network ,
Disassociate_h Ost=true ,
disassociate_project=true )
-
Disassociate a specific network from Project and/or host.
parameter S: |
- network , Haven ID of The network .
- Disassociate_host –whether to disassociate the host
- Disassociate_project –whether to disassociate the project
|
- get (
network )
-
Get a specific network.
parameter S: |
network , Haven ID of the network to get. |
return type: |
network |
/dl>
- List ( )
-
Get a list of all networks.
Return Type: |
List of the Network. |
- Resource_class
-
Alias of Network
All Python API summaries for the Nova component networks in OpenStack