We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87425a5 commit fdc65d7Copy full SHA for fdc65d7
files/image_config/updategraph/updategraph
@@ -1,12 +1,5 @@
1
#!/bin/bash
2
3
-reload_minigraph()
4
-{
5
- echo "Reloading minigraph..."
6
- config load_minigraph -y -n
7
- config save -y
8
-}
9
-
10
# read SONiC immutable variables
11
[ -f /etc/sonic/sonic-environment ] && . /etc/sonic/sonic-environment
12
@@ -18,10 +11,8 @@ fi
18
. /etc/sonic/updategraph.conf
19
20
13
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
25
16
fi
26
17
27
if [ "$enabled" != "true" ]; then
0 commit comments