ironic.drivers.modules.inspector.hooks.local_link_connection module¶
- class ironic.drivers.modules.inspector.hooks.local_link_connection.LocalLinkConnectionHook[source]¶
Bases:
InspectionHook
Hook to process mandatory LLDP packet fields
- __call__(task, inventory, plugin_data)[source]¶
Process LLDP data and patch Ironic port local link connection.
Process the non-vendor-specific LLDP packet fields for each NIC found for a baremetal node, port ID and chassis ID. These fields, if found and if valid, will be saved into the local link connection information (port id and switch id) fields on the Ironic port that represents that NIC.
- 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.