Skip to content

Commit

Permalink
Digi Transport updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Oct 17, 2023
1 parent 298af41 commit 37a1162
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions netmiko/digi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from netmiko.digi.digi_os import DigiOSSSH
from netmiko.digi.digi_transport import DigiTransportSSH

__all__ = ["DigiOSSSH"]
__all__ = ["DigiTransportSSH"]
5 changes: 3 additions & 2 deletions netmiko/digi/digi_os.py → netmiko/digi/digi_transport.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -22,5 +23,5 @@ def save_config(
return output


class DigiOSSSH(DigiOSBase):
class DigiTransportSSH(DigiTransportBase):
pass
4 changes: 2 additions & 2 deletions netmiko/ssh_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 37a1162

Please sign in to comment.