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.13.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for ck_apstra_api-0.2.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d495431f30388cbd834787a7663efc9d9af76c2b84c621f10ec143e12cf23cb |
|
MD5 | 5e032a61e4a1dedca49a5c69c9e9820d |
|
BLAKE2b-256 | 6d7f66824c9c600e15f0bcb372a3872a6290a1a96ce802639aeb578cab8cb02a |