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

Allow for commands to be run in user mode (not enabled) #254

Open
aecro opened this issue Mar 3, 2016 · 2 comments
Open

Allow for commands to be run in user mode (not enabled) #254

aecro opened this issue Mar 3, 2016 · 2 comments

Comments

@aecro
Copy link

aecro commented Mar 3, 2016

Hey,

a lot of commands don't need to be run in exec mode/enabled and I like to run my scripts with the least permissions possible. This is especially useful for testing as I don't have a dedicated testing environment and would like to avoid running harmful commands by accident.

I would love to see another method for Commando like rundisabled() which executes the command without enabling after connect.

@jathanism
Copy link
Member

Thanks for the request! We've had a few related to non-enabled/read-only support on Cisco-like devices. This is definitely something we will be tackling soon. :)

@coxley
Copy link
Contributor

coxley commented Mar 8, 2016

Maybe a kwarg to the normal method to keep the same interface and allow to conditionally supplement value. I'm not a huge fan of conditional method names because it's not something you can variable-ize without doing eval. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants