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

[config] Add subcommand to configure the status of auto-restart feature for each container #801

Merged
merged 3 commits into from
Feb 7, 2020

Conversation

yozhao101
Copy link
Contributor

  • What I did
    Since we introduced the auto-restart feature for each container, we need add a config subcommand to change the current status (enabled/disabled) of auto-restart feature for a specific container.

  • How I did it
    We define a function named autorestart to change the status of a container. This function will accept two parameters which are the container name and new status. If one of parameters is not specified, this function will show the information and then exit.

  • How to verify it
    We can run the command config container feature autorestart container_name autorestart_status.

subcommand to provide a method for user to enable/disable the
autorestart feature for specific container.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>
@yozhao101 yozhao101 requested a review from jleveque February 5, 2020 00:16
Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please also add this command and the show command to the Command Reference guide (https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md) as part of this PR? I forgot to ask for this in the other PR.

@yozhao101
Copy link
Contributor Author

@jleveque Sure.

config/main.py Outdated Show resolved Hide resolved
config/main.py Outdated Show resolved Hide resolved
…and feature().

Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
@jleveque
Copy link
Contributor

jleveque commented Feb 6, 2020

Retest this please

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.

3 participants