ironic.drivers.modules.inspector.hooks.physical_network module

Port Physical Network Hook

class ironic.drivers.modules.inspector.hooks.physical_network.PhysicalNetworkHook[source]

Bases: InspectionHook

Hook to set the port’s physical_network field.

Set the ironic port’s physical_network field based on a CIDR to physical network mapping in the configuration.

dependencies = ['validate-interfaces']

An ordered list of hooks that must be enabled before this one.

The items here should be entry point names, not classes.


Return a physical network to apply to an ironic port.


interface – The interface from the inventory.


The physical network to set, or None.