Skip to content

Commit 2ac223b

Browse files
committed
Load driver extensions flag
1 parent 37d3c73 commit 2ac223b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

netbox_onboarding/netdev_keeper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def __init__( # pylint: disable=R0913
106106
self.onboarding_class = StandaloneOnboarding
107107
self.driver_addon_result = None
108108

109+
# Enable loading driver extensions
110+
self.load_driver_extension = True
111+
109112
def check_ip(self):
110113
"""Method to check if the IP address form field was an IP address.
111114
@@ -293,7 +296,7 @@ def get_onboarding_facts(self):
293296

294297
module_name = PLUGIN_SETTINGS["onboarding_extensions_map"].get(self.napalm_driver)
295298

296-
if module_name:
299+
if module_name and self.load_driver_extension:
297300
try:
298301
module = importlib.import_module(module_name)
299302
driver_addon_class = module.OnboardingDriverExtensions(napalm_device=napalm_device)

0 commit comments

Comments
 (0)