1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Removed support for NAPALM 1.x

This commit is contained in:
Jeremy Stretch
2018-01-25 14:35:19 -05:00
parent f2c9135b96
commit 5037283b62

View File

@ -263,12 +263,7 @@ class DeviceViewSet(CustomFieldModelViewSet):
import napalm
except ImportError:
raise ServiceUnavailable("NAPALM is not installed. Please see the documentation for instructions.")
# TODO: Remove support for NAPALM < 2.0
try:
from napalm.base.exceptions import ConnectAuthError, ModuleImportError
except ImportError:
from napalm_base.exceptions import ConnectAuthError, ModuleImportError
from napalm.base.exceptions import ConnectAuthError, ModuleImportError
# Validate the configured driver
try: