-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Implement "optional_args" parameter for NAPALM integration #1374
Comments
NAPALM optional args for reference. I think it makes sense to introduce a While we're at it, we should add a |
That works for me. Oddly enough, I don't see the |
Sorry, I pressed the wrong "comment" button. 😉 |
…nfigiuration parameters
Issue type:
Bug Report
Python version:
2.7.12
NetBox version:
2.1.0
First off, let me state that your work with integrating NAPALM into NetBox is outstanding. From what I've found so far, it works perfectly with Juniper devices. However, in my envrionment, when I try to use this new functionality with my IOS devices, I get the following error:
As mentioned in the NetworkToCode Slack channel, I encountered this problem previously and was able to solve it by supplying the
optional_args
dict which contained the parametersecret=[PASSWORD]
to the NAPALM driver for the device (see http://napalm.readthedocs.io/en/latest/base.html for details).I tried to test a solution myself in the
/netbox/netbox/dcim/api/views.py
file of v2.1.0, but was unsuccessful (most likely due to not understanding in depth how the integration took place).My solution is something as simple as this in the
views.py
file mentioned above (in pseudo-code):I'm assuming this is a simple fix due to the great work done by the team developing NAPALM, but if you need help testing a solution, I'd be happy to help.
The text was updated successfully, but these errors were encountered: