Skip to content

Commit 1a6b61b

Browse files
ktbyersMarco Pfatschbacher
andauthored
Add Moxa NOS Support (#3751)
* Add Moxa support * Sort platform entries * Add Moxa autodetect support * Moxa Nos Cleanup * Add note --------- Co-authored-by: Marco Pfatschbacher <marco.pfatschbacher@narrowin.ch>
1 parent 908bb68 commit 1a6b61b

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

PLATFORMS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
- Garderos GRS
115115
- Genexis Saturn SOLT33 (telnet only)
116116
- Lancom LCOS SX4
117+
- Moxa EDS
117118
- MRV Communications OptiSwitch
118119
- MRV LX
119120
- Nokia/Alcatel SR-OS
@@ -254,6 +255,7 @@
254255
- mellanox_mlnxos
255256
- mikrotik_routeros
256257
- mikrotik_switchos
258+
- moxa_nos
257259
- mrv_lx
258260
- mrv_optiswitch
259261
- nec_ix

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_nos import MoxaNosSSH
2+
3+
__all__ = ["MoxaNosSSH"]

netmiko/moxa/moxa_nos.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""
2+
Tested with
3+
4+
EDS-508A
5+
EDS-516A
6+
7+
Note:
8+
This only works in CLI mode. If the device is in Menu mode, you need to change that first.
9+
"""
10+
11+
from netmiko.cisco_base_connection import CiscoSSHConnection
12+
13+
14+
class MoxaNosBase(CiscoSSHConnection):
15+
"""MOXA base driver"""
16+
17+
pass
18+
19+
20+
class MoxaNosSSH(MoxaNosBase):
21+
"""MOXA SSH driver"""
22+
23+
pass

netmiko/ssh_autodetect.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@
349349
"priority": 99,
350350
"dispatch": "_autodetect_std",
351351
},
352+
"moxa_nos": {
353+
"cmd": "",
354+
"dispatch": "_autodetect_remote_version",
355+
"search_patterns": [r"[Mm]oxa"],
356+
"priority": 99,
357+
},
352358
"huawei_smartax": {
353359
"cmd": "display version",
354360
"search_patterns": [r"Huawei Integrated Access Software"],

netmiko/ssh_dispatcher.py

Lines changed: 2 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 MoxaNosSSH
124125
from netmiko.mrv import MrvLxSSH
125126
from netmiko.mrv import MrvOptiswitchSSH
126127
from netmiko.netapp import NetAppcDotSSH
@@ -299,6 +300,7 @@
299300
"mikrotik_switchos": MikrotikSwitchOsSSH,
300301
"mellanox": MellanoxMlnxosSSH,
301302
"mellanox_mlnxos": MellanoxMlnxosSSH,
303+
"moxa_nos": MoxaNosSSH,
302304
"mrv_lx": MrvLxSSH,
303305
"mrv_optiswitch": MrvOptiswitchSSH,
304306
"nec_ix": NecIxSSH,

0 commit comments

Comments
 (0)