add transport telnet
lethalwp opened this issue · 2 comments
lethalwp commented
This is maybe a bit dirty.
To facilitate the telnet "transport" instead of ssh.
When port 23 is selected, add automatically the transport:telnet option
diff:
--- a/netbox_onboarding/onboard.py
+++ b/netbox_onboarding/onboard.py
@@ -321,6 +321,10 @@ class NetdevKeeper:
driver = get_network_driver(driver_name)
optional_args = settings.NAPALM_ARGS.copy()
optional_args["secret"] = self.secret
+
-
if self.ot.port == 23:
-
optional_args["transport"] = "telnet"
-
dev = driver( hostname=mgmt_ipaddr, username=self.username,