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.
- {gnetcli_adapter-2.0.4 → gnetcli_adapter-2.0.5}/PKG-INFO +1 -1
- {gnetcli_adapter-2.0.4 → gnetcli_adapter-2.0.5}/src/gnetcli_adapter/gnetcli_adapter.py +3 -1
- {gnetcli_adapter-2.0.4 → gnetcli_adapter-2.0.5}/LICENSE +0 -0
- {gnetcli_adapter-2.0.4 → gnetcli_adapter-2.0.5}/README.md +0 -0
- {gnetcli_adapter-2.0.4 → gnetcli_adapter-2.0.5}/pyproject.toml +0 -0
- {gnetcli_adapter-2.0.4 → gnetcli_adapter-2.0.5}/src/gnetcli_adapter/__init__.py +0 -0
|
@@ -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=
|
|
294
|
+
device=gnetcli_device,
|
|
293
295
|
ip=ip,
|
|
294
296
|
),
|
|
295
297
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|