Skip to main content

No project description provided

Project description

GitHub Pytest Validation PyPI - Python Version GitHub release (latest SemVer)

Arista Software Downloader

Script to download Arista softwares to local folder, Cloudvision or EVE-NG.

scripts

eos-download

usage: eos-download [-h]

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, (default is arista/ceos)
  --verbose VERBOSE     Script verbosity
  • Token are read from ENV:ARISTA_TOKEN unless you specify a specific token with CLI.

  • Supported platforms:

    • INT: International version
    • 64: 64 bits version
    • 2GB for 2GB flash platform
    • 2GB-INT: for 2GB running International
    • vEOS: Virtual EOS image
    • vEOS-lab: Virtual Lab EOS
    • vEOS64-lab: Virtual Lab EOS running 64B
    • cEOS: Docker version of EOS
    • cEOS64: 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
  • Download Docker image and install
eos-download --image cEOS --version 4.27.1F --import_docker --docker_name test/ceos

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

$ pip install git+https://github.com/titom73/arista-downloader

Author

From an original idea of @Mark Rayson in arista-netdevops-community/eos-scripts

License

Code is under Apache2 License

Project details


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.4.0.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

eos_downloader-0.4.0-py3-none-any.whl (17.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page