Skip to content

Commit fdc65d7

Browse files
authored
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
1 parent 87425a5 commit fdc65d7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

files/image_config/updategraph/updategraph

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#!/bin/bash
22

3-
reload_minigraph()
4-
{
5-
echo "Reloading minigraph..."
6-
config load_minigraph -y -n
7-
config save -y
8-
}
9-
103
# read SONiC immutable variables
114
[ -f /etc/sonic/sonic-environment ] && . /etc/sonic/sonic-environment
125

@@ -18,10 +11,8 @@ fi
1811
. /etc/sonic/updategraph.conf
1912

2013
if [ "$enabled" = "reload_only" ]; then
21-
reload_minigraph
22-
sed -i "/enabled=/d" /etc/sonic/updategraph.conf
23-
echo "enabled=false" >> /etc/sonic/updategraph.conf
24-
exit 0
14+
echo "reload_only will not be supported in file updategraph.conf"
15+
exit 1
2516
fi
2617

2718
if [ "$enabled" != "true" ]; then

0 commit comments

Comments
 (0)