-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add module for Cisco IOS configuration manipulation #48859
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
Conversation
rallytime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have 2 small requests. Thank you for writing tests for this! 🎉
There's also a pylint warning.
salt/modules/iosconfig.py
Outdated
|
|
||
| # Import python stdlib | ||
| import difflib | ||
| from collections import OrderedDict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the OrderedDicrt from salt.utils.odict.
tests/unit/modules/test_iosconfig.py
Outdated
|
|
||
| # Import Python libs | ||
| import textwrap | ||
| from collections import OrderedDict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here. :)
|
Wasn't aware of |
|
@mirceaulinic Can you fix the lint error too? https://jenkinsci.saltstack.com/job/pr-lint/job/PR-48859/2/warnings52Result/ |
|
Alright, seems like ca254fb fixed the lint. |
What does this PR do?
Adds a new module for Cisco IOS style configuration manipulation, and use the functionality into the NAPALM module to have the features directly applied on the configuration(s) of the managed device.