Flat network interface. Useful for shared, flat networks.
ironic.drivers.modules.network.flat.
FlatNetwork
[source]¶Bases: ironic.drivers.modules.network.common.NeutronVIFPortIDMixin
, ironic.common.neutron.NeutronNetworkInterfaceMixin
, ironic.drivers.base.NetworkInterface
Flat network interface.
add_cleaning_network
(task)[source]¶Add the cleaning network to a node.
Parameters: | task – A TaskManager instance. |
---|---|
Returns: | a dictionary in the form {port.uuid: neutron_port[‘id’]} |
Raises: | NetworkError, InvalidParameterValue |
add_provisioning_network
(task)[source]¶Add the provisioning network to a node.
Parameters: | task – A TaskManager instance. |
---|---|
Raises: | NetworkError when failed to set binding:host_id |
add_rescuing_network
(task)[source]¶Add the rescuing network to a node.
Flat network does not use the rescuing network. Bind the port again since unconfigure_tenant_network() unbound it.
Parameters: | task – A TaskManager instance. |
---|---|
Returns: | a dictionary in the form {port.uuid: neutron_port[‘id’]} |
Raises: | NetworkError, InvalidParameterValue |
configure_tenant_networks
(task)[source]¶Configure tenant networks for a node.
Parameters: | task – A TaskManager instance. |
---|
remove_cleaning_network
(task)[source]¶Remove the cleaning network from a node.
Parameters: | task – A TaskManager instance. |
---|---|
Raises: | NetworkError |
remove_provisioning_network
(task)[source]¶Remove the provisioning network from a node.
Parameters: | task – A TaskManager instance. |
---|
remove_rescuing_network
(task)[source]¶Remove the rescuing network from a node.
Flat network does not use the rescuing network. Unbind the port again since add_rescuing_network() bound it.
Parameters: | task – A TaskManager instance. |
---|---|
Raises: | NetworkError |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.