File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ case $reason in
33 if [ -n "$new_minigraph_url" ]; then
44 echo $new_minigraph_url > /tmp/dhcp_graph_url
55 else
6- echo "default " > /tmp/dhcp_graph_url
6+ echo "N/A " > /tmp/dhcp_graph_url
77 fi
88 if [ -n "$new_acl_url" ]; then
99 echo $new_acl_url > /tmp/dhcp_acl_url
Original file line number Diff line number Diff line change @@ -82,16 +82,8 @@ if [ "$src" = "dhcp" ]; then
8282 sleep 1
8383 done
8484
85- if [ " ` cat /tmp/dhcp_graph_url` " = " default" ]; then
86- echo " No graph_url option in DHCP response. Skipping graph update and using existing minigraph."
87- if [ " $dhcp_as_static " = " true" ]; then
88- sed -i " /enabled=/d" /etc/sonic/updategraph.conf
89- echo " enabled=false" >> /etc/sonic/updategraph.conf
90- fi
91- exit 0
92- fi
9385 if [ " ` cat /tmp/dhcp_graph_url` " = " N/A" ]; then
94- echo " 'N/A' found in DHCP response. Skipping graph update and generating an empty configuration."
86+ echo " No graph_url option in DHCP response. Skipping graph update and generating an empty configuration."
9587 PLATFORM=` sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`
9688 if [ -f /etc/sonic/minigraph.xml ]; then
9789 sonic-cfggen -H -m /etc/sonic/minigraph.xml --preset empty > /tmp/device_meta.json
You can’t perform that action at this time.
0 commit comments