mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Merge branch 'develop-2.3' into v2.3-beta1
This commit is contained in:
commit
47991a3097
@ -263,12 +263,7 @@ class DeviceViewSet(CustomFieldModelViewSet):
|
|||||||
import napalm
|
import napalm
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ServiceUnavailable("NAPALM is not installed. Please see the documentation for instructions.")
|
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
|
from napalm.base.exceptions import ConnectAuthError, ModuleImportError
|
||||||
except ImportError:
|
|
||||||
from napalm_base.exceptions import ConnectAuthError, ModuleImportError
|
|
||||||
|
|
||||||
# Validate the configured driver
|
# Validate the configured driver
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user