ironic_inspector.plugins.physnet_cidr_map module

Port Physical Network Hook

class ironic_inspector.plugins.physnet_cidr_map.PhysnetCidrMapHook[source]

Bases: BasePhysnetHook

Process port physical network

Set the physical_network field of baremetal ports based on a cidr to physical network mapping in the configuration.

get_physnet(port, iface_name, introspection_data)[source]

Return a physical network to apply to a port.

Parameters:
  • port – The ironic port to patch.

  • iface_name – Name of the interface.

  • introspection_data – Introspection data.

Returns:

The physical network to set, or None.