Skip to main content

Arista Network Test Automation (ANTA) Framework

Project description

Arista Network Test Automation (ANTA) Framework

Code Ruff Numpy Quality Gate Status Coverage
License License
GitHub CI Commit GitHub commit activity (branch) Github release Contributors
PyPi PyPi Version Python Versions Python format PyPI - Downloads

ANTA is Python framework that automates tests for Arista devices.

  • ANTA provides a set of tests to validate the state of your network
  • ANTA can be used to:
    • Automate NRFU (Network Ready For Use) test on a preproduction network
    • Automate tests on a live network (periodically or on demand)
  • ANTA can be used with:

anta nrfu

Install ANTA library

The library will NOT install the necessary dependencies for the CLI.

# Install ANTA as a library
pip install anta

Install ANTA CLI

If you plan to use ANTA only as a CLI tool you can use pipx to install it. pipx is a tool to install and run python applications in isolated environments. Refer to pipx instructions to install on your system. pipx installs ANTA in an isolated python environment and makes it available globally.

This is not recommended if you plan to contribute to ANTA

# Install ANTA CLI with pipx
$ pipx install anta[cli]

# Run ANTA CLI
$ anta --help
Usage: anta [OPTIONS] COMMAND [ARGS]...

  Arista Network Test Automation (ANTA) CLI

Options:
  --version                       Show the version and exit.
  --log-file FILE                 Send the logs to a file. If logging level is
                                  DEBUG, only INFO or higher will be sent to
                                  stdout.  [env var: ANTA_LOG_FILE]
  -l, --log-level [CRITICAL|ERROR|WARNING|INFO|DEBUG]
                                  ANTA logging level  [env var:
                                  ANTA_LOG_LEVEL; default: INFO]
  --help                          Show this message and exit.

Commands:
  check  Commands to validate configuration files
  debug  Commands to execute EOS commands on remote devices
  exec   Commands to execute various scripts on EOS devices
  get    Commands to get information from or generate inventories
  nrfu   Run ANTA tests on devices

You can also still choose to install it with directly with pip:

pip install anta[cli]

Documentation

The documentation is published on ANTA package website.

Contribution guide

Contributions are welcome. Please refer to the contribution guide

Credits

Thank you to Jeremy Schulman for aio-eapi.

Thank you to Angélique Phillipps, Colin MacGiollaEáin, Khelil Sator, Matthieu Tache, Onur Gashi, Paul Lavelle, Guillaume Mulocher and Thomas Grimonet for their contributions and guidances.

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

anta-1.8.0.tar.gz (204.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anta-1.8.0-py3-none-any.whl (261.5 kB view details)

Uploaded Python 3

File details

Details for the file anta-1.8.0.tar.gz.

File metadata

  • Download URL: anta-1.8.0.tar.gz
  • Upload date:
  • Size: 204.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for anta-1.8.0.tar.gz
Algorithm Hash digest
SHA256 c747444967f1288eaba6f7693843fcb6d7fe48bf6e6ad92c8bedb23aa1231ffc
MD5 4854de40a2bf97c01d7a7b64e2f05819
BLAKE2b-256 5e3fbc6c0124121661dd0608e26e736ce86e79b2eb428f8b0c9bc27d1ec065e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for anta-1.8.0.tar.gz:

Publisher: release.yml on aristanetworks/anta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anta-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: anta-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 261.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for anta-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f74a810aa513ff56dcb9343f61f8c710a9d0e96c0a00b2b179b442afe8f2d769
MD5 55724df4964b43c33f6e604ebea89fb0
BLAKE2b-256 21ffef01133899ed8752c3fbac7faa56f7a2c6a2fc1105a61c8b7a5dd1b92b39

See more details on using hashes here.

Provenance

The following attestation bundles were made for anta-1.8.0-py3-none-any.whl:

Publisher: release.yml on aristanetworks/anta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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