Skip to content

Commit 3fd770c

Browse files
committed
Load driver extensions flag
1 parent 04e60ae commit 3fd770c

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
@@ -104,6 +104,9 @@ def __init__( # pylint: disable=R0913
104104
self.onboarding_class = StandaloneOnboarding
105105
self.driver_addon_result = None
106106

107+
# Enable loading driver extensions
108+
self.load_driver_extension = True
109+
107110
def check_reachability(self):
108111
"""Ensure that the device at the mgmt-ipaddr provided is reachable.
109112
@@ -248,7 +251,7 @@ def get_onboarding_facts(self):
248251

249252
module_name = PLUGIN_SETTINGS["onboarding_extensions_map"].get(self.napalm_driver)
250253

251-
if module_name:
254+
if module_name and self.load_driver_extension:
252255
try:
253256
module = importlib.import_module(module_name)
254257
driver_addon_class = module.OnboardingDriverExtensions(napalm_device=napalm_device)

0 commit comments

Comments
 (0)