Revert "Add load_minigraph option to include traffic-shift-away during config migration (#11403)" (#14881)
This reverts commit 0c7f0aa9b7
.
This commit is contained in:
parent
2e26d965b9
commit
a3a041a3cd
@ -109,15 +109,7 @@ run_hookdir() {
|
||||
reload_minigraph()
|
||||
{
|
||||
echo "Reloading minigraph..."
|
||||
if
|
||||
[[ "$(sonic-cfggen -d -v DEVICE_METADATA.localhost.subtype | tr [:upper:] [:lower:])" == *"dualtor"* ]] ||
|
||||
[[ "$(sonic-cfggen -d -v DEVICE_METADATA.localhost.type | tr [:upper:] [:lower:])" == *"leafrouter"* ]];
|
||||
then
|
||||
#Keep device isolated with traffic-shift-away option on LeafRouter and Dualtor
|
||||
config load_minigraph -y -n -t
|
||||
else
|
||||
config load_minigraph -y -n
|
||||
fi
|
||||
config load_minigraph -y -n
|
||||
config save -y
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user