Skip to content

Commit 284a43b

Browse files
author
Marco Pfatschbacher
committed
Add Moxa support
1 parent 9c6078c commit 284a43b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

netmiko/moxa/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from netmiko.moxa.moxa import MoxaSSH
2+
from netmiko.moxa.moxa import MoxaTelnet
3+
4+
__all__ = ["MoxaSSH", "MoxaTelnet"]

netmiko/moxa/moxa.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from netmiko.cisco_base_connection import CiscoSSHConnection
2+
3+
4+
class MoxaBase(CiscoSSHConnection):
5+
"""MOXA base driver"""
6+
7+
pass
8+
9+
10+
class MoxaSSH(MoxaBase):
11+
"""MOXA SSH driver"""
12+
13+
pass
14+
15+
16+
class MoxaTelnet(MoxaBase):
17+
"""MOXA telnet driver"""
18+
19+
pass

netmiko/ssh_dispatcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
from netmiko.mikrotik import MikrotikRouterOsSSH, MikrotikRouterOsFileTransfer
122122
from netmiko.mikrotik import MikrotikSwitchOsSSH
123123
from netmiko.mellanox import MellanoxMlnxosSSH
124+
from netmiko.moxa import MoxaSSH, MoxaTelnet
124125
from netmiko.mrv import MrvLxSSH
125126
from netmiko.mrv import MrvOptiswitchSSH
126127
from netmiko.netapp import NetAppcDotSSH
@@ -297,6 +298,7 @@
297298
"mikrotik_switchos": MikrotikSwitchOsSSH,
298299
"mellanox": MellanoxMlnxosSSH,
299300
"mellanox_mlnxos": MellanoxMlnxosSSH,
301+
"moxa": MoxaSSH,
300302
"mrv_lx": MrvLxSSH,
301303
"mrv_optiswitch": MrvOptiswitchSSH,
302304
"nec_ix": NecIxSSH,
@@ -406,6 +408,7 @@
406408
CLASS_MAPPER["ipinfusion_ocnos_telnet"] = IpInfusionOcNOSTelnet
407409
CLASS_MAPPER["juniper_junos_telnet"] = JuniperTelnet
408410
CLASS_MAPPER["maipu_telnet"] = MaipuTelnet
411+
CLASS_MAPPER["moxa_telnet"] = MoxaTelnet
409412
CLASS_MAPPER["nec_ix_telnet"] = NecIxTelnet
410413
CLASS_MAPPER["nokia_sros_telnet"] = NokiaSrosTelnet
411414
CLASS_MAPPER["oneaccess_oneos_telnet"] = OneaccessOneOSTelnet

0 commit comments

Comments
 (0)