Fix netlab down within the netlab restart command#3354
Open
sjhloco wants to merge 1 commit intoipspace:devfrom
Open
Fix netlab down within the netlab restart command#3354sjhloco wants to merge 1 commit intoipspace:devfrom
sjhloco wants to merge 1 commit intoipspace:devfrom
Conversation
Owner
|
Thanks a million. Never tried "restart" with a topology file name. I would rewrite the whole parsing code to do parsing for "netlab down" and then remove the unparsed arguments from the arguments passed to "netlab down". Would you like to do the rewrite, or should I? |
Author
|
Am happy to rewrite it, but am not sure how you want it doing? Do you mean to try and grab the name of the topology first and then add it to up_only_args and then keep |
Owner
|
We (both) got it all wrong. The lab has to be restarted from the snapshot file, not from a lab topology (that could start a completely different lab). Details in #3359 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using
netlab restartto restart a lab thenetlab downpart of it fails as the topology file name is being passed in to the command (only needed fornetlab up)ste@netlab-dev:~/labs$ netlab restart simple_topo.yml usage: netlab down [-h] [-v] [--cleanup] [--dry-run] [--force] [-i INSTANCE] [--snapshot [SNAPSHOT]] netlab down: error: unrecognized arguments: simple_topo.ymlFixed in
restart.pyby adding the topology file to the filtering for netlab down.