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:
parent
87425a5b2b
commit
fdc65d7600
@ -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
|
||||
|
Reference in New Issue
Block a user