From 8a602c67f9ab18a714ddc9e12c146297b05487ac Mon Sep 17 00:00:00 2001 From: Nazarii Hnydyn Date: Sun, 3 Mar 2019 01:48:28 +0200 Subject: [PATCH] [mellanox]: Remove MAC alignment WA for Mellanox platforms. (#2632) Signed-off-by: Nazarii Hnydyn --- src/sonic-config-engine/sonic_platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-config-engine/sonic_platform.py b/src/sonic-config-engine/sonic_platform.py index 20890d765cab..370f6e3a42ee 100644 --- a/src/sonic-config-engine/sonic_platform.py +++ b/src/sonic-config-engine/sonic_platform.py @@ -56,7 +56,7 @@ def get_system_mac(): mac = mac.strip() # Align last byte of MAC if necessary - if version_info and (version_info['asic_type'] == 'mellanox' or version_info['asic_type'] == 'centec'): + if version_info and version_info['asic_type'] == 'centec': last_byte = mac[-2:] aligned_last_byte = format(int(int(last_byte, 16) & 0b11000000), '02x') mac = mac[:-2] + aligned_last_byte