Skip to content

Commit 639a33c

Browse files
author
Marco Pfatschbacher
committed
Add Moxa support
1 parent 9c6078c commit 639a33c

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

PLATFORMS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
- Fortinet
104104
- Garderos GRS
105105
- Genexis Saturn SOLT33 (telnet only)
106+
- Moxa EDS
106107
- MRV Communications OptiSwitch
107108
- MRV LX
108109
- Nokia/Alcatel SR-OS
@@ -227,6 +228,7 @@
227228
- mellanox_mlnxos
228229
- mikrotik_routeros
229230
- mikrotik_switchos
231+
- moxa
230232
- mrv_lx
231233
- mrv_optiswitch
232234
- netapp_cdot

netmiko/moxa/__init__.py

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

netmiko/moxa/moxa.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

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)