We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c17d6a7 commit 84cbfd5Copy full SHA for 84cbfd5
files/image_config/interfaces/interfaces-config.sh
@@ -12,6 +12,9 @@ fi
12
13
sonic-cfggen -d -a '{"hwaddr":"'$SYSTEM_MAC_ADDRESS'"}' -t /usr/share/sonic/templates/interfaces.j2 > /etc/network/interfaces
14
15
+# Also store the system mac to configDB switch table. User configured switch_mac is not supported for now.
16
+/usr/bin/docker exec database redis-cli -n 4 hset SWITCH\|SWITCH_ATTR switch_mac $SYSTEM_MAC_ADDRESS
17
+
18
[ -f /var/run/dhclient.eth0.pid ] && kill `cat /var/run/dhclient.eth0.pid` && rm -f /var/run/dhclient.eth0.pid
19
20
systemctl restart networking
0 commit comments