An implementation to use Apstra API
Project description
ck-apstra-api
prepare venv
python3.11 -m venv venv
source venv/bin/activate
pip install ck-apstra-api
var/.env file example
apstra_server_host=local-apstra.pslab.link
apstra_server_port=443
apstra_server_username=admin
apstra_server_password=zaq1@WSXcde3$RFV
excel_input_file=./tests/fixtures/ApstraProvisiongTemplate.xlsx
config_yaml_input_file=tests/fixtures/config.yaml
logging_level=DEBUG
main_blueprint=terra
cabling_maps_yaml_file=tests/fixtures/sample-cabling-maps.yaml
Link the env file
ls -s var/.env .env
run the commands
Help message
(venv) ckim@ckim-mbp:ck-apstra-api % ck-api --help
Usage: ck-api [OPTIONS] COMMAND [ARGS]...
Options:
--logging-level TEXT
--help Show this message and exit.
Commands:
add-bp-from-json
add-generic-systems
add-ip-endpoints
assign-connectivity-templates
get-bp-into-json
get-lldp-data Get LLDP data between managed switches
import-routing-zones
import-virtual-networks
pull-device-configurations pull produced configurations from Apstra
read-generic-systems
(venv) ckim@ckim-mbp:ck-apstra-api %
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
ck_apstra_api-0.2.17.tar.gz
(21.4 kB
view details)
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 ck_apstra_api-0.2.17.tar.gz.
File metadata
- Download URL: ck_apstra_api-0.2.17.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9168907ecbd3c5c776446a9dca3639cce4e90b4228711b3998f892361d68ec54
|
|
| MD5 |
6e65a53020872b2e6c74987e7cccc314
|
|
| BLAKE2b-256 |
9b0793c46877b2b28a1ab84221399b000458738ece2dbcd28816c9fcb51ca889
|
File details
Details for the file ck_apstra_api-0.2.17-py3-none-any.whl.
File metadata
- Download URL: ck_apstra_api-0.2.17-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae51cc52fec3384736014e90b9dc782c3f1debf7e4bf2d1d9523d3e58bca5c94
|
|
| MD5 |
bb272565a13eeec8d71317b0a48fd3b6
|
|
| BLAKE2b-256 |
931c88ebc3b76d0b032ccf952727c1ee4599d44a5048a3e3b0ff8e076bcfa97b
|