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

Add use_cli optional argument to allow for CLI output format for get_config #30

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

johanek
Copy link

@johanek johanek commented Mar 11, 2024

Hello,

Sometimes it's desirable to have CLI style output for get_config - I want it to be able to use nautobot golden config to manage consistency checks and device remediation.

I couldn't find a way for the Aruba API to return the config in this format. So this change adds an optional argument use_cli to get the configs via a SSH session instead. By default the existing behaviour of reporting the JSON output is kept.

I felt this would be the simplest way to get the functionality I needed with minimal changes to current behaviour, but I'm open to suggestions for improvement,

Thanks!

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

Successfully merging this pull request may close these issues.

1 participant