Network Automation
Automate network configuration and verification with Python, Jinja2 and Ansible, driven by a source of truth and tested before deployment.
4 objectives 6 steps about 145 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Model network intent as structured data (YAML or JSON) in a source of truth and render device configurations with Jinja2 templates.
- Write Python scripts that connect to devices (SSH libraries such as Netmiko or Scrapli, or device APIs), collect state and parse it into structured data.
- Write idempotent Ansible playbooks with inventories and variables to deploy configuration, using check and diff modes.
- Validate changes automatically with pre- and post-change checks and CI tests against a Containerlab topology before touching production.
Lesson plan
6 steps, about 145 min · 0 of 5 lessons available so far
- From CLI to code: intent as data and a source of truth Concept · 20 min · coming later
- Worked example: render router configs from YAML with Jinja2 Worked example · 25 min · coming later
- Lab: Python collects interface and route state from lab routers Lab · 30 min · coming later
- Lab: deploy and diff configuration with Ansible Lab · 30 min · coming later
- Testing network changes: pre/post checks and CI with Containerlab Worked example · 25 min · coming later
- Check: review an automation change for safety Knowledge check · 8 questions
Practise it
Keep the OSPF lab's intent (interfaces, addresses, areas) in YAML, generate FRR configurations with Jinja2, deploy them with Ansible, and add a CI job that starts the topology in Containerlab and fails if any OSPF adjacency or ping test fails. Inject a configuration that removes management reachability in the lab; use a timed rollback or equivalent recovery channel and require pre/post-change policy checks before accepting the change.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.