No project description provided
Project description
Arista Software Downloader
Script to download Arista softwares to local folder, Cloudvision or EVE-NG.
pip install eos-downloader
scripts
eos-download
usage: eos-download [-h]
--version VERSION
[--token TOKEN]
[--image IMAGE]
[--destination DESTINATION]
[--eve]
[--noztp]
[--import_docker]
[--docker_name DOCKER_NAME]
[--verbose VERBOSE]
[--log]
EOS downloader script.
optional arguments:
-h, --help show this help message and exit
--token TOKEN arista.com user API key - can use ENV:ARISTA_TOKEN
--image IMAGE Type of EOS image required
--version VERSION EOS version to download from website
--destination DESTINATION
Path where to save EOS package downloaded
--eve Option to install EOS package to EVE-NG
--noztp Option to deactivate ZTP when used with EVE-NG
--import_docker Option to import cEOS image to docker
--docker_name DOCKER_NAME
Docker image name to use
--verbose VERBOSE Script verbosity
--log Option to activate logging to eos-downloader.log file
-
Token are read from
ENV:ARISTA_TOKEN
unless you specify a specific token with CLI. -
Supported platforms:
INT
: International version64
: 64 bits version2GB
for 2GB flash platform2GB-INT
: for 2GB running InternationalvEOS
: Virtual EOS imagevEOS-lab
: Virtual Lab EOSvEOS64-lab
: Virtual Lab EOS running 64BcEOS
: Docker version of EOScEOS64
: Docker version of EOS running in 64 bits
Examples
- Download vEOS-lab image and install in EVE-NG
$ eos-download --image vEOS-lab --version 4.25.7M --eve --noztp
- Download Docker image
$ eos-download --image cEOS --version 4.27.1F
๐ช eos-downloader is starting...
- Image Type: cEOS
- Version: 4.27.2F
โ
Authenticated on arista.com
๐ Searching file cEOS-lab-4.27.2F.tar.xz
-> Found file at /support/download/EOS-USA/Active Releases/4.27/EOS-4.27.2F/cEOS-lab/cEOS-lab-4.27.2F.tar.xz
๐พ Downloading cEOS-lab-4.27.2F.tar.xz โโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100.0% โข 17.1 MB/s โข 451.6/451.6 MB โข 0:00:19 โข
๐ Running checksum validation
๐ Searching file cEOS-lab-4.27.2F.tar.xz.sha512sum
-> Found file at /support/download/EOS-USA/Active
Releases/4.27/EOS-4.27.2F/cEOS-lab/cEOS-lab-4.27.2F.tar.xz.sha512sum
๐พ Downloading cEOS-lab-4.27.2F.tar.xz.sha512sum โโโโโโโโโโโโโโโโโโโโโโโโโโโ 100.0% โข ? โข 154/154 bytes โข 0:00:00 โข
โ
Downloaded file is correct.
Note: ARISTA_TOKEN
should be set in your .profile and not set for each command. If not set, you can use --token
knob.
# Export Token
export ARISTA_TOKEN="xxxxxxx"
Cloudvision Image uploader
Create an image bundle on Cloudvision.
cvp-upload -h
usage: cvp-upload [-h]
[--token TOKEN]
[--image IMAGE]
--cloudvision CLOUDVISION
[--create_bundle]
[--timeout TIMEOUT]
[--verbose VERBOSE]
Cloudvision Image uploader script.
optional arguments:
-h, --help show this help message and exit
--token TOKEN CVP Authentication token - can use ENV:ARISTA_AVD_CV_TOKEN
--image IMAGE Type of EOS image required
--cloudvision CLOUDVISION
Cloudvision instance where to upload image
--create_bundle Option to create image bundle with new uploaded image
--timeout TIMEOUT Timeout connection. Default is set to 1200sec
--verbose VERBOSE Script verbosity
Requirements
Repository requires Python >=3.6
with following requirements:
cvprac
cryptography
paramiko
requests
requests-toolbelt
scp
tqdm
Installation
Python PIP
# Development version from github
$ pip install git+https://github.com/titom73/eos-downloader
# Stable versions
pip install eos-downloader
Docker Image
A docker image is also available when Python cannot be used.
$ docker pull titom73/eos-downloader:edge
$ docker run -it -rm -v ${PWD}:/download titom73/eos-downloader:edge bash
$ cd /download
$ eos-download --image cEOS --version 4.27.1F
Available TAGS
edge
: Latest version built from the main branchlatest
: Latest stable Versionsemver
: Version built from git taglatest-dind
: Latest stable Version with docker CLIsemver-dind
: Version built from git tag with docker CLI
Author
From an original idea of @Mark Rayson in arista-netdevops-community/eos-scripts
License
Code is under Apache2 License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eos_downloader-0.6.0.dev1.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for eos_downloader-0.6.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9e7ea7be76c3804b8b3399de5b3c3456e9abe3de3eccf59268921757bd7b3e |
|
MD5 | 36544289f1c55bea1c9ef9615dc7c832 |
|
BLAKE2b-256 | 30b34dfe8ec25a7f6832f196502a351bdc35a7ea190c87ff6f8d1e93e75feed3 |
Close
Hashes for eos_downloader-0.6.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ab4fda683533c4445c829927d43630c72fd950aec0827f65e68803e8ea2e9b |
|
MD5 | a9610c5909aa279714d58e3f517b9b0a |
|
BLAKE2b-256 | 8efb530757a6917fe68a1d8a82a92f90cbbb96516eb51f0931a452a331f2bc37 |