ironic.drivers.modules.network.flat module¶
Flat network interface. Useful for shared, flat networks.
- class ironic.drivers.modules.network.flat.FlatNetwork(*args, **kwargs)[source]¶
- Bases: - NeutronVIFPortIDMixin,- NeutronNetworkInterfaceMixin,- 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_inspection_network(task)[source]¶
- Add the inspection network to the node. - Parameters:
- task – A TaskManager instance. 
- Returns:
- a dictionary in the form {port.uuid: neutron_port[‘id’]} 
- Raises:
- NetworkError 
- Raises:
- InvalidParameterValue, if the network interface configuration is invalid. 
 
 - 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 
 
 - add_servicing_network(task)[source]¶
- Add the rescuing network to a node. - Flat network does not use the servicing 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 
 
 - capabilities = ['metadata']¶
 - 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_inspection_network(task)[source]¶
- Removes the inspection network from a node. - Parameters:
- task – A TaskManager instance. 
- Raises:
- InvalidParameterValue, if the network interface configuration is invalid. 
- Raises:
- MissingParameterValue, if some parameters are missing. 
 
 - 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 
 
 - remove_servicing_network(task)[source]¶
- Remove the servicing network from a node. - Flat network does not use the servicing network. Unbind the port again since add_rescuing_network() bound it. - Parameters:
- task – A TaskManager instance. 
- Raises:
- NetworkError 
 
 
