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.VIFPortIDMixin, 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
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.
unconfigure_tenant_networks(task)[source]

Unconfigure tenant networks for a node.

Parameters:task – A TaskManager instance.
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.