Learning paths › Automation › Plan and build the automation lab
Plan and build the automation lab
Planning and standing up the lab a longer series assumes: what the lab actually needs, a hosted vendor sandbox as an alternative, nested virtualization enabled, where the emulator, the Linux VM and the editor each run, a legacy device's SSH accepted, a virtual environment per project and scripts versioned to a remote — then a first read-only Netmiko script, and Paramiko's shell, with the bytes a channel returns decoded, unknown host keys decided on, a key pair used for Linux login, and a loop kept running when one device fails. Explanation and checks; four written exercises.
Lessons
- See what a script can do to a device
- Find your way around the course material
- Decide what your automation lab actually needs
- Practise against a Cisco DevNet sandbox
- Enable CPU virtualization for nested labs
- Choose where GNS3, Ubuntu and the editor run
- Let your SSH client talk to legacy IOS
- Keep the editor local and the workspace remote
- Version your scripts and push them to GitHub
- Use a remote lab and keep your tools local
- Reach the Ubuntu desktop over RDP
- Isolate project packages in a virtual environment
- Commit from PyCharm with a desktop Git client
- Run your first read-only Netmiko script
- Edit faster with IDE shortcuts
- Paramiko: open an SSH shell on a device
- Decode the bytes a channel returns
- Send a list of commands in one session
- Wrap connect and send in one function
- Decide what to do with unknown host keys
- Run one command and read stdout and stderr
- Log in to Linux with a key pair
- Keep the loop running when one device fails
- Authorise your public key on a Cisco device
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
- 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
- NX-API, pyATS and Genie
- 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