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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gnetcli_adapter
3
- Version: 2.8.0
3
+ Version: 2.8.2
4
4
  Summary: Gnetcli-server adapter for Annet
5
5
  Author-email: Aleksandr Balezin <gescheit12@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -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 == "routeros":
103
- return ["/export verbose", "/user export verbose", "/file print terse detail", "/user ssh-keys print terse"]
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