ironic.drivers.modules.network.noop module¶
- class ironic.drivers.modules.network.noop.NoopNetwork(*args, **kwargs)[source]¶
Bases:
NetworkInterface
Noop network interface.
- add_cleaning_network(task)[source]¶
Add the cleaning network to a node.
- Parameters:
task – A TaskManager instance.
- add_provisioning_network(task)[source]¶
Add the provisioning network to a node.
- Parameters:
task – A TaskManager instance.
- configure_tenant_networks(task)[source]¶
Configure tenant networks for a node.
- Parameters:
task – A TaskManager instance.
- get_current_vif(task, p_obj)[source]¶
Returns the currently used VIF associated with port or portgroup
We are booting the node only in one network at a time, and presence of cleaning_vif_port_id means we’re doing cleaning, of provisioning_vif_port_id - provisioning of rescuing_vif_port_id - rescuing. Otherwise it’s a tenant network
- Parameters:
task – A TaskManager instance.
p_obj – Ironic port or portgroup object.
- Returns:
VIF ID associated with p_obj or None.
- port_changed(task, port_obj)[source]¶
Handle any actions required when a port changes
- Parameters:
task – a TaskManager instance.
port_obj – a changed Port object.
- Raises:
Conflict, FailedToUpdateDHCPOptOnPort
- portgroup_changed(task, portgroup_obj)[source]¶
Handle any actions required when a portgroup changes
- Parameters:
task – a TaskManager instance.
portgroup_obj – a changed Portgroup object.
- Raises:
Conflict, FailedToUpdateDHCPOptOnPort
- remove_cleaning_network(task)[source]¶
Remove the cleaning network from a node.
- Parameters:
task – A TaskManager instance.
- 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_inspection(task)[source]¶
Validate that the node has required properties for inspection.
- Parameters:
task – A TaskManager instance with the node being checked
- vif_attach(task, vif_info)[source]¶
Attach a virtual network interface to a node
- Parameters:
task – A TaskManager instance.
vif_info – a dictionary of information about a VIF. It must have an ‘id’ key, whose value is a unique identifier for that VIF.
- Raises:
NetworkError, VifAlreadyAttached, NoFreePhysicalPorts