From 37a11622a96dee50060731caf9fc179b74b81828 Mon Sep 17 00:00:00 2001 From: Kirk Byers Date: Tue, 17 Oct 2023 12:55:31 -0700 Subject: [PATCH] Digi Transport updates --- netmiko/digi/__init__.py | 4 ++-- netmiko/digi/{digi_os.py => digi_transport.py} | 5 +++-- netmiko/ssh_dispatcher.py | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) rename netmiko/digi/{digi_os.py => digi_transport.py} (83%) diff --git a/netmiko/digi/__init__.py b/netmiko/digi/__init__.py index 507cec75c..cc4236d41 100644 --- a/netmiko/digi/__init__.py +++ b/netmiko/digi/__init__.py @@ -1,3 +1,3 @@ -from netmiko.digi.digi_os import DigiOSSSH +from netmiko.digi.digi_transport import DigiTransportSSH -__all__ = ["DigiOSSSH"] +__all__ = ["DigiTransportSSH"] diff --git a/netmiko/digi/digi_os.py b/netmiko/digi/digi_transport.py similarity index 83% rename from netmiko/digi/digi_os.py rename to netmiko/digi/digi_transport.py index 4c6fc832e..0aa832bf8 100644 --- a/netmiko/digi/digi_os.py +++ b/netmiko/digi/digi_transport.py @@ -1,10 +1,11 @@ +"""Digi TransPort Routers""" from typing import Any from netmiko.no_enable import NoEnable from netmiko.no_config import NoConfig from netmiko.cisco_base_connection import CiscoSSHConnection -class DigiOSBase(NoEnable, NoConfig, CiscoSSHConnection): +class DigiTransportBase(NoEnable, NoConfig, CiscoSSHConnection): def __init__(self, *args: Any, **kwargs: Any) -> None: default_enter = kwargs.get("default_enter") kwargs["default_enter"] = "\r\n" if default_enter is None else default_enter @@ -22,5 +23,5 @@ def save_config( return output -class DigiOSSSH(DigiOSBase): +class DigiTransportSSH(DigiTransportBase): pass diff --git a/netmiko/ssh_dispatcher.py b/netmiko/ssh_dispatcher.py index 1061d92c6..31ba526a8 100755 --- a/netmiko/ssh_dispatcher.py +++ b/netmiko/ssh_dispatcher.py @@ -57,7 +57,7 @@ from netmiko.dell import DellPowerConnectSSH from netmiko.dell import DellPowerConnectTelnet from netmiko.dell import DellIsilonSSH -from netmiko.digi import DigiOSSSH +from netmiko.digi import DigiTransportSSH from netmiko.dlink import DlinkDSTelnet, DlinkDSSSH from netmiko.eltex import EltexSSH, EltexEsrSSH from netmiko.endace import EndaceSSH @@ -202,7 +202,7 @@ "dell_powerconnect": DellPowerConnectSSH, "dell_isilon": DellIsilonSSH, "dlink_ds": DlinkDSSSH, - "digi_os": DigiOSSSH, + "digi_transport": DigiTransportSSH, "endace": EndaceSSH, "eltex": EltexSSH, "eltex_esr": EltexEsrSSH,