Skip to content

Commit

Permalink
[mellanox]: Remove MAC alignment WA for Mellanox platforms. (sonic-ne…
Browse files Browse the repository at this point in the history
…t#2632)

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
  • Loading branch information
nazariig authored and tiantianlv committed Apr 10, 2019
1 parent c024be1 commit 3d18f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-config-engine/sonic_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d18f46

Please sign in to comment.