forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sonic-package-manager] implement blocking feature state change (soni…
…c-net#2035) Signed-off-by: Stepan Blyschak [email protected] Motivation for this change is to handle the TODO: # TODO: Replace with "config feature" command. # The problem with current "config feature" command # is that it is asynchronous, thus can't be used # for package upgrade purposes where we need to wait # till service stops before upgrading docker image. # It would be really handy if we could just call # something like: "config feature state <name> <state> --wait" # instead of operating on systemd service since # this is basically a duplicated code from "hostcfgd". What I did Implement blocking feature state change for CLI command and sonic-package-manager. How I did it Implemented a wait loop that blocks till feature reaches desired state. How to verify it Run UT, run on switch.
- Loading branch information
1 parent
b6ca76b
commit 1ce735c
Showing
4 changed files
with
139 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters