From fdc65d7600ed401bc0344fb4bf5a11847e07927d Mon Sep 17 00:00:00 2001 From: jingwenxie Date: Mon, 20 Jun 2022 17:57:57 -0700 Subject: [PATCH] Remove minigraph loading in updategraph script (#11146) Why I did it Minigraph will be deprecated in the future. So minigraph related reload should be deleted. How I did it Remove unused load_minigraph --- files/image_config/updategraph/updategraph | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/files/image_config/updategraph/updategraph b/files/image_config/updategraph/updategraph index 061d8e1133..905831ae75 100755 --- a/files/image_config/updategraph/updategraph +++ b/files/image_config/updategraph/updategraph @@ -1,12 +1,5 @@ #!/bin/bash -reload_minigraph() -{ - echo "Reloading minigraph..." - config load_minigraph -y -n - config save -y -} - # read SONiC immutable variables [ -f /etc/sonic/sonic-environment ] && . /etc/sonic/sonic-environment @@ -18,10 +11,8 @@ fi . /etc/sonic/updategraph.conf if [ "$enabled" = "reload_only" ]; then - reload_minigraph - sed -i "/enabled=/d" /etc/sonic/updategraph.conf - echo "enabled=false" >> /etc/sonic/updategraph.conf - exit 0 + echo "reload_only will not be supported in file updategraph.conf" + exit 1 fi if [ "$enabled" != "true" ]; then