Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'traffic_shift_away' option to config load_minigraph #2240

Merged
merged 6 commits into from
Jul 8, 2022

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.

config/main.py Outdated Show resolved Hide resolved
@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