We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cdcfd8 commit 2e2ddafCopy full SHA for 2e2ddaf
syncd/scripts/syncd_init_common.sh
@@ -52,7 +52,7 @@ config_syncd_mlnx()
52
# Read MAC address and align the last 6 bits.
53
MAC_ADDRESS=$(ip link show eth0 | grep ether | awk '{print $2}')
54
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
+ aligned_last_byte=$(python -c "print format(int(int('$last_byte', 16) & 0b00000000), '02x')") # put mask and take away the 0x prefix
56
ALIGNED_MAC_ADDRESS=$(python -c "print '$MAC_ADDRESS'[:-2] + '$aligned_last_byte'") # put aligned byte into the end of MAC
57
58
# Write MAC address into /tmp/profile file.
0 commit comments