Skip to content

Commit 97bdc41

Browse files
[Mellanox] Query base MAC address from the syseepromfor Bluefield DPU (#18853)
- Why I did it Query base MAC address from the syseeprom or machine.conf for nvidia-bluefield platform - How I did it Use the same flow as Mellanox platform uses. - How to verify it Run the image and verify the base MAC address in the config DB.
1 parent 987d060 commit 97bdc41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sonic-py-common/sonic_py_common/device_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def get_system_mac(namespace=None, hostname=None):
728728
if platform == VS_PLATFORM:
729729
return generate_mac_for_vs(hostname, namespace)
730730

731-
elif (version_info['asic_type'] == 'mellanox'):
731+
if (version_info['asic_type'] in ['mellanox', 'nvidia-bluefield']):
732732
# With Mellanox ONIE release(2019.05-5.2.0012) and above
733733
# "onie_base_mac" was added to /host/machine.conf:
734734
# onie_base_mac=e4:1d:2d:44:5e:80

0 commit comments

Comments
 (0)