Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions netdev/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from netdev.vendors import UbiquityEdgeSwitch
from netdev.vendors import HW1000
from netdev.vendors import Huawei
from netdev.vendors import RuijieOS

# @formatter:off
# The keys of this dictionary are the supported device_types
Expand All @@ -36,6 +37,7 @@
"terminal": Terminal,
"hw1000": HW1000,
"huawei": Huawei,
"ruijie_os": RuijieOS,
}

# @formatter:on
Expand Down
2 changes: 2 additions & 0 deletions netdev/vendors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from netdev.vendors.ubiquiti import UbiquityEdgeSwitch
from netdev.vendors.infotecs import HW1000
from netdev.vendors.huawei import Huawei
from netdev.vendors.ruijie import RuijieOS

__all__ = (
"CiscoASA",
Expand Down Expand Up @@ -45,4 +46,5 @@
"HW1000",
"AlcatelAOS",
"Huawei",
"RuijieOS",
)
2 changes: 1 addition & 1 deletion netdev/vendors/comware_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ComwareLikeDevice(BaseDevice):
_delimiter_list = [">", "]"]
"""All this characters will stop reading from buffer. It mean the end of device prompt"""

_delimiter_left_list = ["<", "["]
_delimiter_left_list = ["<", "[", "*", "~"]
"""Begging prompt characters. Prompt must contain it"""

_pattern = r"[{delimiter_left}]{prompt}[\-\w]*[{delimiter_right}]"
Expand Down
4 changes: 4 additions & 0 deletions netdev/vendors/ruijie/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .ruijie_os import RuijieOS

__all__ = ["RuijieIOS", ]

11 changes: 11 additions & 0 deletions netdev/vendors/ruijie/ruijie_os.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""Ruijie RGOS Support"""
from netdev.vendors.ios_like import IOSLikeDevice


class RuijieOSBase(IOSLikeDevice):
pass


class RuijieOS(RuijieOSBase):
pass