Generating fencing for capitalized MACs
Because the ports are stored in lower case, we need to use lower case
MACs as our search key.
NB: cherry-pick is not entirely clean because we do not want to backport
I74d4178dbb0cfe8c934ce15e3e7c9bb1c469de10
(enrich-ironic-networking-integration) to queens
Change-Id: I7e3727987265ef5222c95678c69cc4a50176dd16
Closes-Bug: #1800504
(cherry picked from commit 84603a06af
)
This commit is contained in:
parent
93b67b0c5f
commit
5f93512ba9
|
@ -365,7 +365,7 @@ class GenerateFencingParametersAction(base.TripleOAction):
|
|||
if "mac" in node:
|
||||
# Not all Ironic drivers present a MAC address, so we only
|
||||
# capture it if it's present
|
||||
mac_addr = node["mac"][0]
|
||||
mac_addr = node["mac"][0].lower()
|
||||
node_data["host_mac"] = mac_addr
|
||||
|
||||
# If the MAC isn't in the hostmap, this node hasn't been
|
||||
|
|
Loading…
Reference in New Issue