gnetcli-adapter 2.8.0__tar.gz → 2.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/PKG-INFO +1 -1
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/src/gnetcli_adapter/gnetcli_adapter.py +6 -3
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/LICENSE +0 -0
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/README.md +0 -0
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/pyproject.toml +0 -0
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/src/gnetcli_adapter/__init__.py +0 -0
- {gnetcli_adapter-2.8.0 → gnetcli_adapter-2.8.2}/src/gnetcli_adapter/progress_tracker.py +0 -0
|
@@ -41,6 +41,7 @@ except ImportError:
|
|
|
41
41
|
|
|
42
42
|
breed_to_device = {
|
|
43
43
|
"routeros": "ros",
|
|
44
|
+
"routeros7": "ros7",
|
|
44
45
|
"ios12": "cisco",
|
|
45
46
|
"bcom-os": "bcomos",
|
|
46
47
|
"pc": "pc",
|
|
@@ -99,8 +100,10 @@ class AppSettings(BaseSettings):
|
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
async def get_config(breed: str) -> List[str]:
|
|
102
|
-
if breed == "
|
|
103
|
-
return ["/export
|
|
103
|
+
if breed == "routeros7":
|
|
104
|
+
return ["/export show-sensitive", "/user export verbose show-sensitive", "/file print terse detail", "/user ssh-keys print terse"]
|
|
105
|
+
elif breed == "routeros":
|
|
106
|
+
return ["/export", "/user export verbose", "/file print terse detail", "/user ssh-keys print terse"]
|
|
104
107
|
elif breed.startswith("ios") or breed.startswith("bcom") or breed.startswith("eltex") or breed.startswith("nxos"):
|
|
105
108
|
return ["show running-config"]
|
|
106
109
|
elif breed.startswith("jun"):
|
|
@@ -110,7 +113,7 @@ async def get_config(breed: str) -> List[str]:
|
|
|
110
113
|
elif breed.startswith(("h3c", "vrp")):
|
|
111
114
|
return ["display current-configuration"]
|
|
112
115
|
elif breed.startswith("aruos"):
|
|
113
|
-
return ["show ap-env", "show running-config"]
|
|
116
|
+
return ["show ap-env", "show running-config no-encrypt"]
|
|
114
117
|
raise Exception("unknown breed %r" % breed)
|
|
115
118
|
|
|
116
119
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|