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

minimega: `-attach` and `-e` in namespace #970

Closed
jcrussell opened this Issue Sep 5, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@jcrussell
Contributor

jcrussell commented Sep 5, 2017

Change -attach and -e so that you can provide a namespace that gets prepended to all your commands.

@jcrussell jcrussell added this to the 2.5 milestone Sep 5, 2017

@jcrussell jcrussell self-assigned this Jun 12, 2018

jcrussell added a commit to jcrussell/minimega that referenced this issue Jun 12, 2018

minimega/miniclient: add -namespace flag
Prepends the specified namespace to all -e and -attach commands. Because
of how it's implemented, it prevents the -e or -attach command from
changing the active namespace for more than the current command. Example
usage:

        root# bin/minimega -namespace foo -e namespace
        namespace | vlans    | active
        foo       |          | true
        minimega  | 101-4096 | false
        root# bin/minimega -e namespace
        namespace | vlans    | active
        foo       |          | false
        minimega  | 101-4096 | true

Also changes how we build commands from args to avoid errors when args
have spaces.

Fixes sandia-minimega#970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment