Skip to content

Add 'traffic_shift_away' option to config load_minigraph#2240

Merged
tjchadaga merged 6 commits intosonic-net:masterfrom
tjchadaga:tsa_reload
Jul 8, 2022
Merged

Add 'traffic_shift_away' option to config load_minigraph#2240
tjchadaga merged 6 commits intosonic-net:masterfrom
tjchadaga:tsa_reload

Conversation

@tjchadaga
Copy link
Contributor

What I did

Add a CLI option to 'config load_minigraph' to keep the device in maintenance

How I did it

Added changes to execute TSA after minigraph is loaded to ensure the device is kept in maintenance.

How to verify it

  1. Execute 'sudo load_minigraph -t'
  2. After the new config is fully applied, execute 'TSC' to ensure the device mode is "Maintenance"

Previous command output (if the output of a command-line utility has changed)

sudo config load_minigraph -h
Usage: config load_minigraph [OPTIONS]

Reconfigure based on minigraph.

Options:
-y, --yes
-n, --no_service_restart Do not restart docker services
-?, -h, --help Show this message and exit.

New command output (if the output of a command-line utility has changed)

sudo config load_minigraph -h
Usage: config load_minigraph [OPTIONS]

Reconfigure based on minigraph.

Options:
-y, --yes
-n, --no_service_restart Do not restart docker services
-t, --traffic_shift_away Keep device in maintenance with TSA
-?, -h, --help Show this message and exit.

@qiluo-msft
Copy link
Contributor

@wen587 Please help review.

@wen587
Copy link
Contributor

wen587 commented Jul 1, 2022

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants