Skip to content

Commit

Permalink
Revert "Add load_minigraph option to include traffic-shift-away durin…
Browse files Browse the repository at this point in the history
…g config migration (#11403)" (#11625)

This reverts commit 6c2f99a.
  • Loading branch information
tjchadaga authored Aug 6, 2022
1 parent 663bf00 commit 6d66d9b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions files/image_config/config-setup/config-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6d66d9b

Please sign in to comment.