Learning paths › Automation › NX-API, pyATS and Genie
NX-API, pyATS and Genie
Three unrelated stretches the source course left adjacent: NX-API on a Nexus switch, parsed as JSON where the field exists and as ASCII where it does not, with config commands submitted and on-box scripting; pyATS and Genie as test structure, a job run through Easypy, devices described in a testbed, a whole feature learned rather than one command, and before-and-after snapshots diffed; then a microcontroller checking a TCP port over Wi-Fi, throughput measured with iperf3, and a small generative-AI page assembled in Streamlit. Explanation and checks; four written exercises.
Lessons
- Parse ASCII output when JSON lacks the field
- Submit cli_conf commands as JSON
- Run Bash on the switch through NX-API
- Script on-box with the NX-OS CLI module
- pyATS: organise automated network tests
- Run a job file through Easypy
- Describe devices in a testbed YAML
- Load a testbed and parse in Python
- Point the IDE at the pyATS environment
- Test against a mock device
- Learn a whole feature, not one command
- Configure a device through pyATS
- Diff before and after snapshots
- Select a named connection with via
- Take device and command as CLI arguments
- Check a TCP port from a Pico W over Wi-Fi
- Light an LED when the service is down
- Retry Wi-Fi and validate the address you got
- Make HTTP requests from MicroPython
- Measure throughput with iperf3
- Layer a GenAI app from runtime to UI
- Make the prompt reusable with variables
- Build a Streamlit page with inputs and output
- Wire the chain to a translate button
More in Automation
- First scripts that configure devices
- NAPALM: structured data across vendors
- Concurrency, and the Python types device output returns
- Parsing show output and testing conditions
- Readable code, branching and loops
- Build the workstation and the toolchain
- Files, CSV, JSON and pickle
- Paramiko: SSH to devices from Python
- Netmiko at fleet scale
- Tuples, sets and dictionaries for device records
- Exceptions and your first classes
- Plan and build the automation lab
- Files, formatting and regular expressions
- Addresses, functions, modules and classes
- CSV inventories, logging and scheduling
- Netmiko, SCP and structured parsing
- Agents, async and model-driven workflows
- NETCONF, YANG and RESTCONF
- A small GenAI app, end to end
- macOS, Linux and the virtual lab
- Agile delivery and Python fundamentals
- REST APIs, authentication and requests
- Flask, Docker and Jenkins
- Managing a router with NETCONF and RESTCONF
- Ansible: inventory, ad-hoc commands and first playbooks
- Roles and zero-touch provisioning for Linux switches
- Installing the controller and applying a project
- Setting up Python 3
- The Ansible lab and the controller
- Vault, variables and config changes
- Parsing output and knowing which variable wins
- Jinja filters and PAN-OS automation
- Loops, callbacks, strategy and run control
- Roles, imports and writing your own module
- Running playbooks from AWX