Skip to content

Commit 2e2ddaf

Browse files
committed
*** Temp workaround for MLNX mac truncating bug
1 parent 8cdcfd8 commit 2e2ddaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syncd/scripts/syncd_init_common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ config_syncd_mlnx()
5252
# Read MAC address and align the last 6 bits.
5353
MAC_ADDRESS=$(ip link show eth0 | grep ether | awk '{print $2}')
5454
last_byte=$(python -c "print '$MAC_ADDRESS'[-2:]")
55-
aligned_last_byte=$(python -c "print format(int(int('$last_byte', 16) & 0b11000000), '02x')") # put mask and take away the 0x prefix
55+
aligned_last_byte=$(python -c "print format(int(int('$last_byte', 16) & 0b00000000), '02x')") # put mask and take away the 0x prefix
5656
ALIGNED_MAC_ADDRESS=$(python -c "print '$MAC_ADDRESS'[:-2] + '$aligned_last_byte'") # put aligned byte into the end of MAC
5757

5858
# Write MAC address into /tmp/profile file.

0 commit comments

Comments
 (0)