gnetcli-adapter 2.0.4__tar.gz → 2.0.5__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.0.4
3
+ Version: 2.0.5
4
4
  Summary: Gnetcli-server adapter for Annet
5
5
  Author-email: Aleksandr Balezin <gescheit12@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -33,6 +33,7 @@ breed_to_device = {
33
33
  "bcom-os": "bcomos",
34
34
  "pc": "pc",
35
35
  "cuml2": "pc",
36
+ "moxa": "pc",
36
37
  "jun10": "juniper",
37
38
  "eos4": "arista",
38
39
  "h3c": "h3c",
@@ -283,13 +284,14 @@ class GnetcliFetcher(Fetcher, AdapterWithConfig, AdapterWithName):
283
284
  return b"\n".join(dev_result).decode()
284
285
 
285
286
  async def adownload_dev(self, device: Device, files: List[str]) -> Dict[str, str]:
287
+ gnetcli_device = breed_to_device.get(device.breed, device.breed)
286
288
  ip = get_device_ip(device)
287
289
  downloaded = await self.api.download(
288
290
  hostname=device.fqdn,
289
291
  paths=files,
290
292
  host_params=HostParams(
291
293
  credentials=self.conf.make_dev_credentials(),
292
- device="pc",
294
+ device=gnetcli_device,
293
295
  ip=ip,
294
296
  ),
295
297
  )
File without changes