You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NAPALM integration in Netbox is not working with latest versions.
Not sure whether it has something to do with reunification (=>2.0.0). exceptions.py full path: /usr/local/lib/python2.7/dist-packages/napalm/base/exceptions.py
Current:
/opt/netbox-2.2.4/netbox# ./manage.py nbshell
NetBox interactive shell
Python 2.7.9 | Django 1.11.7 | NetBox 2.2.4
lsmodels() will show available models. Use help(<model>) for more info.
>>> import napalm
>>> from napalm_base.exceptions import ConnectAuthError, ModuleImportError
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named napalm_base.exceptions
>>>
Fixed:
/opt/netbox-2.2.4/netbox# ./manage.py nbshell
NetBox interactive shell
Python 2.7.9 | Django 1.11.7 | NetBox 2.2.4
lsmodels() will show available models. Use help(<model>) for more info.
>>> import napalm
>>> from napalm.base.exceptions import ConnectAuthError, ModuleImportError
>>>
Changing napalm_base to napalm.base/netbox-path/netbox/dcim/api/views.py fixes the issue.
Happy to submit a PR, too.
Note: even with the fix "Status" tab is not working and throws out an error:
But it doesn't seem like an issue with Netbox.
The text was updated successfully, but these errors were encountered:
Issue type
Bug report
Environment
pip install napalm
)Description
NAPALM integration in Netbox is not working with latest versions.
Not sure whether it has something to do with reunification (=>2.0.0).
exceptions.py
full path:/usr/local/lib/python2.7/dist-packages/napalm/base/exceptions.py
Current:
Fixed:
Changing
napalm_base
tonapalm.base
/netbox-path/netbox/dcim/api/views.py fixes the issue.Happy to submit a PR, too.
Note: even with the fix "Status" tab is not working and throws out an error:
But it doesn't seem like an issue with Netbox.
The text was updated successfully, but these errors were encountered: