The ironic.drivers.modules.network.flat Module

The ironic.drivers.modules.network.flat Module

Flat network interface. Useful for shared, flat networks.

class 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
unconfigure_tenant_networks(task)[source]

Unconfigure tenant networks for a node.

Unbind the port here/now to avoid the possibility of the ironic port being bound to the tenant and cleaning networks at the same time.

Parameters:task – A TaskManager instance.
Raises:NetworkError
validate(task)[source]

Validates the network interface.

Parameters:task – a TaskManager instance.
Raises:InvalidParameterValue, if the network interface configuration is invalid.
Raises:MissingParameterValue, if some parameters are missing.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.