titom73 / eos-downloader Goto Github PK
View Code? Open in Web Editor NEWPython CLI to download Arista softwares like EOS and CVP
License: Apache License 2.0
Python CLI to download Arista softwares like EOS and CVP
License: Apache License 2.0
This is a wide open feature request that is not well formed.
It would be ideal to add some feature to help users with regards to versions.
IE a couple of options:
ARDL does not run md5sum check and claims file is corrupted.
pypi still has 0.8.1 set as a pre-release
Current error if you do not set an ENV var or pass the token argument:
โ netdb eos-download --image cEOS --version 4.28.3M
๐ช eos-downloader is starting...
- Image Type: cEOS
- Version: 4.28.3M
Traceback (most recent call last):
File "/home/rmerolle/.local/bin/eos-download", line 73, in <module>
my_download.download_local(file_path=cli_options.destination, checksum=True)
File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 402, in download_local
file_downloaded = self._download_file(file_path=file_path, filename=self.filename)
File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 318, in _download_file
remote_file_path = self._get_remote_filepath()
File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 241, in _get_remote_filepath
root = self._get_folder_tree()
File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 227, in _get_folder_tree
folder_tree = (result.json()["data"]["xml"])
KeyError: 'data'
Issue when running ardl on eve-ng or pnetlab
Original exception was:
Traceback (most recent call last):
File "/usr/local/bin/ardl", line 5, in <module>
from eos_downloader.cli.cli import cli
ModuleNotFoundError: No module named 'eos_downloader.cli'
When running new ardl command info, we generate a stacktrace
$ ardl info eos-versions -rtype m --branch 4.28
Traceback (most recent call last):
File "/usr/local/bin/ardl", line 8, in <module>
sys.exit(cli())
File "/local/eos_downloader/cli/cli.py", line 69, in cli
ardl(
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/local/eos_downloader/cli/info/commands.py", line 81, in eos_versions
versions = my_download.get_eos_versions(branch=branch, rtype=release_type)
File "/local/eos_downloader/eos.py", line 145, in get_eos_versions
elif branch is not None and version.is_in_branch(branch) and version.rtype == rtype:
File "/local/eos_downloader/models/version.py", line 255, in is_in_branch
return self.major == branch.major and self.minor == branch.minor
UnboundLocalError: local variable 'branch' referenced before assignment
Currently Click and Pydantic are installed in fixed versions meaning eos-downloader cannot be installed in parallel of another package with different versions of these 2 packages.
"click==8.1.3",
"click-help-colors==0.9.1",
"pydantic==1.10.4",
I ran below command and was expecting the image of CloudEOS64-4.30.4M.swi, but it actually downloaded cEOS64-lab-4.30.4M.tar.xz.
ardl, version 0.9.0
ardl --token xxxx get eos --latest -rtype m --image-type cEOS64 --output ~/download/
Starting begining of April, EOS website requires to not use generic UA from request but use one of the wellknown UA
headers = {
"Content-Type": "application/json",
"User-Agent": "<to be updated>"
}
cleanup local file after importing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.