Revert "Add load_minigraph option to include traffic-shift-away during config migration (#11403)" (#14881)

This reverts commit 0c7f0aa9b7.
This commit is contained in:
Tejaswini Chadaga 2023-05-03 17:10:15 -07:00 committed by GitHub
parent 2e26d965b9
commit a3a041a3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,15 +109,7 @@ run_hookdir() {
reload_minigraph() reload_minigraph()
{ {
echo "Reloading minigraph..." echo "Reloading minigraph..."
if config load_minigraph -y -n
[[ "$(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 save -y config save -y
} }