Generating fencing for capitalized MACs
Because the ports are stored in lower case, we need to use lower case MACs as our search key. Change-Id: I7e3727987265ef5222c95678c69cc4a50176dd16 Closes-Bug: #1800504
This commit is contained in:
parent
d6404dd372
commit
84603a06af
@ -394,7 +394,7 @@ class GenerateFencingParametersAction(base.TripleOAction):
|
|||||||
if "ports" in node:
|
if "ports" in node:
|
||||||
# Not all Ironic drivers present a MAC address, so we only
|
# Not all Ironic drivers present a MAC address, so we only
|
||||||
# capture it if it's present
|
# capture it if it's present
|
||||||
mac_addr = node['ports'][0]['address']
|
mac_addr = node['ports'][0]['address'].lower()
|
||||||
node_data["host_mac"] = mac_addr
|
node_data["host_mac"] = mac_addr
|
||||||
|
|
||||||
# If the MAC isn't in the hostmap, this node hasn't been
|
# If the MAC isn't in the hostmap, this node hasn't been
|
||||||
|
Loading…
Reference in New Issue
Block a user