A collection of cli scripts to use pyavd
Project description
PyAVD cli tools
A set of tools on top of PyAVD to process AVD configurations with python.
Quick start
Install with pip inside a virtual environment:
$> python -m venv .venv
$> source .venv/bin/activate
$> pip install pyavd==<pyavd version> pyavd-cli
$> pyavd-build -i inventory.yml -f FABRIC -v
pyavd-build
It "builds" EOS cli configs from AVD config. Similar to the process done by an ansible playbook that invokes the AVD roles eos_designs and eos_cli_config_gen.
It uses ansible Inventory Manager to read the AVD inventory so ansible features work out of the box. It supports inline jinja templates and custom interface description/ip addressing via python modules.
$> pyavd-build --help
usage: pyavd-build [-h] -i INVENTORY_PATH [-o CONFIG_OUTPUT_PATH] [--avd-facts-path AVD_FACTS_PATH] -f
FABRIC_GROUP_NAME [-l LIMIT] [-m MAX_WORKERS] [--strict] [--vault-id [VAULT_ID ...]] [-v]
Build AVD fabric.
options:
-h, --help show this help message and exit
-i INVENTORY_PATH, --inventory-path INVENTORY_PATH
Path to the inventory file.
-o CONFIG_OUTPUT_PATH, --config-output-path CONFIG_OUTPUT_PATH
Path to the output directory.
--avd-facts-path AVD_FACTS_PATH
If provided AVD facts will be written to this path.
-f FABRIC_GROUP_NAME, --fabric-group-name FABRIC_GROUP_NAME
Name of the fabric group.
-l LIMIT, --limit LIMIT
Limit filter for inventory.
-m MAX_WORKERS, --max-workers MAX_WORKERS
Maximum number of parallel workers.
--strict Use strict mode and fail if there is validation errors
--vault-id [VAULT_ID ...]
Vault ID used to decrypt the inventory. Multiple vault IDs can be provided.
-v, --verbose
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyavd_cli-0.2.1.tar.gz.
File metadata
- Download URL: pyavd_cli-0.2.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84f409f06dc4c701ad033ea89c2501c86bfc20ed7b688511eab161fcaa230c84
|
|
| MD5 |
5c7986987096750fdf1fa5baf0928633
|
|
| BLAKE2b-256 |
de156ad190c391488b6d32d735fab72bdc528b8349ebfc8f20d6d8abfd368e06
|
Provenance
The following attestation bundles were made for pyavd_cli-0.2.1.tar.gz:
Publisher:
publish-to-pypi.yml on arista-eosplus/pyavd-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyavd_cli-0.2.1.tar.gz -
Subject digest:
84f409f06dc4c701ad033ea89c2501c86bfc20ed7b688511eab161fcaa230c84 - Sigstore transparency entry: 768458680
- Sigstore integration time:
-
Permalink:
arista-eosplus/pyavd-cli@ccb0becf8dd9ea22198f3f4061eeb511a263ae5c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/arista-eosplus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ccb0becf8dd9ea22198f3f4061eeb511a263ae5c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyavd_cli-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyavd_cli-0.2.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
438a35204e2c1c50641b14ff68a3e7650db6047d5b0b6688800d6333adea2516
|
|
| MD5 |
25e30d2ac6bb05d4170126caa8b309a9
|
|
| BLAKE2b-256 |
29be4df03844b1f06f694b709da0209e6d28ddf01726bd46189c8e36b6ecb450
|
Provenance
The following attestation bundles were made for pyavd_cli-0.2.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on arista-eosplus/pyavd-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyavd_cli-0.2.1-py3-none-any.whl -
Subject digest:
438a35204e2c1c50641b14ff68a3e7650db6047d5b0b6688800d6333adea2516 - Sigstore transparency entry: 768458684
- Sigstore integration time:
-
Permalink:
arista-eosplus/pyavd-cli@ccb0becf8dd9ea22198f3f4061eeb511a263ae5c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/arista-eosplus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ccb0becf8dd9ea22198f3f4061eeb511a263ae5c -
Trigger Event:
push
-
Statement type: