[sonic boot] disable dhcp during boot up, until updategraph service is running (#2316)
* [sonic] disable management port eth0 during boot up Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [updategraph] enable dhcp client on management port eth0 Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
parent
43f6df4654
commit
84bde1511a
@ -5,6 +5,4 @@
|
|||||||
auto lo
|
auto lo
|
||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
#
|
#
|
||||||
# The management network interface
|
# Disable the management network interface during boot up
|
||||||
auto eth0
|
|
||||||
iface eth0 inet dhcp
|
|
||||||
|
@ -77,6 +77,10 @@ fi
|
|||||||
ACL_URL=$acl_src
|
ACL_URL=$acl_src
|
||||||
|
|
||||||
if [ "$src" = "dhcp" ]; then
|
if [ "$src" = "dhcp" ]; then
|
||||||
|
# Enable dhcp client on management port eth0
|
||||||
|
/sbin/dhclient -4 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0 &
|
||||||
|
disown
|
||||||
|
|
||||||
while [ ! -f /tmp/dhcp_graph_url ]; do
|
while [ ! -f /tmp/dhcp_graph_url ]; do
|
||||||
echo "Waiting for DHCP response..."
|
echo "Waiting for DHCP response..."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user