NetworksΒΆ
Network interface.
-
class
novaclient.v2.networks.
Network
(manager, info, loaded=False, resp=None) Bases:
novaclient.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
- resp – Response or list of Response objects
-
HUMAN_ID
= True
-
NAME_ATTR
= 'label'
-
delete
() DEPRECATED: Delete this network.
Returns: An instance of novaclient.base.TupleWithMeta
-
class
novaclient.v2.networks.
NetworkManager
(api) Bases:
novaclient.base.ManagerWithFind
DEPRECATED: Manage
Network
resources.-
add
(*a, **k) DEPRECATED: Associates the current project with a network. Network can be chosen automatically or provided explicitly.
Parameters: network – The ID of the Network
to associate (optional).Returns: An instance of novaclient.base.TupleWithMeta
-
associate_host
(*a, **k) DEPRECATED: Associate a specific network with a host.
Parameters: - network – The ID of the
Network
. - host – The name of the host to associate the network with
Returns: An instance of novaclient.base.TupleWithMeta
- network – The ID of the
-
associate_project
(*a, **k) DEPRECATED: Associate a specific network with a project.
The project is defined by the project authenticated against
Parameters: network – The ID of the Network
.Returns: An instance of novaclient.base.TupleWithMeta
-
create
(*a, **k) DEPRECATED: Create (allocate) a network. The following parameters are optional except for label; cidr or cidr_v6 must be specified, too.
Parameters: - label – str
- bridge – str
- bridge_interface – str
- cidr – str
- cidr_v6 – str
- 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
Network
-
delete
(*a, **k) DEPRECATED: Delete a specific network.
Parameters: network – The ID of the Network
to delete.Returns: An instance of novaclient.base.TupleWithMeta
-
disassociate
(*a, **k) DEPRECATED: Disassociate a specific network from project and/or host.
Parameters: - network – The ID of the
Network
. - disassociate_host – Whether to disassociate the host
- disassociate_project – Whether to disassociate the project
Returns: An instance of novaclient.base.TupleWithMeta
- network – The ID of the
-
get
(*a, **k) DEPRECATED: Get a specific network.
Parameters: network – The ID of the Network
to get.Return type: Network
-
list
(*a, **k) DEPRECATED: Get a list of all networks.
Return type: list of Network
.
-
resource_class
alias of
Network
-
-
class
novaclient.v2.networks.
NeutronManager
(api) Bases:
novaclient.base.Manager
A manager for name -> id lookups for neutron networks.
This uses neutron directly from service catalog. Do not use it for anything else besides that. You have been warned.
-
find_network
(name) Find a network by name (user provided input).
-
resource_class
alias of
Network
-