ironic.drivers.modules.inspect_utils module

ironic.drivers.modules.inspect_utils.create_ports_if_not_exist(task, macs)[source]

Create ironic ports from MAC addresses data dict.

Creates ironic ports from MAC addresses data returned with inspection or as requested by operator. Helper argument to detect the MAC address get_mac_address defaults to ‘value’ part of MAC address dict key-value pair.

Parameters
  • task – A TaskManager instance.

  • macs – A sequence of MAC addresses.