pyATS
JSON →Interact with network devices using Cisco's pyATS and Genie libraries for model-driven automation.
Install
pip install -r Tools · 15
- pyats_list_devices List all devices in the testbed
- pyats_search_devices Fuzzy-search devices by name or alias
- pyats_run_show_command Run a validated show command; returns parsed JSON or raw output
- pyats_run_show_command_on_multiple_devices Run a show command across multiple devices concurrently
- pyats_ping_from_network_device Execute a ping from a network device
- pyats_run_linux_command Run a command on a Linux host
- pyats_configure_device Apply configuration commands with safety guardrails
- pyats_configure_devices_multi Apply configuration across multiple devices concurrently
- pyats_configure_with_diff Apply config and return a before/after diff
- pyats_rollback_config Roll back to the last saved configuration snapshot
- pyats_device_health Snapshot CPU, memory, interfaces, and routing state
- pyats_get_neighbors Retrieve CDP/LLDP neighbors
- pyats_find_interface_by_ip Find which interface owns a given IP address
- pyats_run_dynamic_test Execute a sandboxed pyATS test script
- pyats_get_operation_log Retrieve the in-memory operation log
Environment variables
CORE1_PORTLINUX1_PORT
Links
★ 74 GitHub stars