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
This commit is contained in:
jingwenxie 2022-06-20 17:57:57 -07:00 committed by GitHub
parent 87425a5b2b
commit fdc65d7600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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