ironic.drivers.modules.inspect_utils.
create_ports_if_not_exist
(task, macs, get_mac_address=<function <lambda>>)[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.
task – A TaskManager instance.
macs – A dictionary of MAC addresses returned by node inspection.
get_mac_address – a function to get the MAC address from mac item.
A mac item is the dict key-value pair of the previous macs
argument.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.