ironic.drivers.modules.inspector.hooks.ports module
updated: 2023-10-15 11:09
ironic.drivers.modules.inspector.hooks.ports module
-
class ironic.drivers.modules.inspector.hooks.ports.PortsHook[source]
Bases: InspectionHook
Hook to create ironic ports.
-
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.
-
ironic.drivers.modules.inspector.hooks.ports.add_ports(task, interfaces)[source]
Add ports for all previously validated interfaces.
-
ironic.drivers.modules.inspector.hooks.ports.update_ports(task, all_interfaces, valid_macs)[source]
Update ports to match the valid MACs.
Depending on the value of [inspector]keep_ports
, some ports may be
removed.
updated: 2023-10-15 11:09