ironic.drivers.modules.inspector.nics module

ironic.drivers.modules.inspector.nics module

ironic.drivers.modules.inspector.nics.add_ports(task, interfaces)[source]

Add ports for all previously validated interfaces.

ironic.drivers.modules.inspector.nics.get_interfaces(node, inventory)[source]

Convert inventory to a dict with interfaces.

Returns:

dict interface name -> interface (for valid interfaces).

ironic.drivers.modules.inspector.nics.get_pxe_mac(inventory)[source]

Get MAC address of the PXE interface.

ironic.drivers.modules.inspector.nics.process_interfaces(task, inventory, plugin_data)[source]

Process network interfaces in the inventory.

ironic.drivers.modules.inspector.nics.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.

ironic.drivers.modules.inspector.nics.validate_interfaces(node, inventory, interfaces)[source]

Validate interfaces on correctness and suitability.

Returns:

dict interface name -> interface.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.