Projects › Templated Branch Router Rollout with Jinja2
Templated Branch Router Rollout with Jinja2
Three branch routers have been racked and staged with only a management address. Render each one's configuration from templates/branch.j2 and the per-site data in sites.json, save the rendered configs for review, push them, and prove the result: HQ must learn every branch LAN over OSPF.
Difficulty: intermediate · Time: about 60 minutes
Why it matters
Templates plus per-site data is how branch rollouts scale from three sites to three hundred without three hundred hand-typed configs. Verifying routing from the hub afterwards is the post-check that says the rollout actually worked.
Technologies
- Python
- Netmiko
- Jinja2
- OSPFv2
- Templating
- JSON
Related projects
- Automated Multi-Device Configuration Backup with Python & Netmiko
- Ansible Playbooks for Infrastructure as Code (IaC) & Compliance
- Model-Driven Programmability: RESTCONF & YANG Automation with Python
- Automated Network Validation & Pre/Post Checks with pyATS & Genie
- Python Config Backup with Change Detection
- VLAN Rollout to Access Switches from a CSV
- Configuration Compliance Audit and Drift Remediation
- Pre/Post Change Verification with Automatic Rollback