You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the redfish plug-in to get NIC information you only get the network Cards Physical MAC address, not the Virtual MAC address, ie. the one it is using right now. By using the following patch you can get both.
-Edit:
Seems like some systems (at least some Poweredge M630) presents the virtual MAC address with different spelling. So the following patch seems to work better:
diff --git a/utils/redfish_utils.py b/utils/redfish_utils.py
index 67f5490..a39eeb9 100644
--- a/utils/redfish_utils.py
+++ b/utils/redfish_utils.py
@@ -843,7 +843,11 @@ class RedfishUtils(object):
nic['IPv6'] = d[u'Address']
for d in data[u'NameServers']:
nic['NameServers'] = d
- nic['MACAddress'] = data[u'PermanentMACAddress']
+ nic['PermanentMACAddress'] = data[u'PermanentMACAddress']
+ try:
+ nic['MACAddress'] = data[u'MacAddress']
+ except:
+ nic['MACAddress'] = data[u'MACAddress']
nic['SpeedMbps'] = data[u'SpeedMbps']
nic['MTU'] = data[u'MTUSize']
nic['AutoNeg'] = data[u'AutoNeg']
The text was updated successfully, but these errors were encountered:
@friggob, thank you for your contribution. I will take a look. I know this is a simple patch should be able to test in no time, but I'm a little backed up on other items so please give me a little time. Thanks again.
When you use the redfish plug-in to get NIC information you only get the network Cards Physical MAC address, not the Virtual MAC address, ie. the one it is using right now. By using the following patch you can get both.
-Edit:
Seems like some systems (at least some Poweredge M630) presents the virtual MAC address with different spelling. So the following patch seems to work better:
The text was updated successfully, but these errors were encountered: