Home / Cisco Edge Runbooks
freeCisco Edge Runbooks
Write the procedure once. Run it calmly at 03:00.
Five printable runbooks with Jinja2 templates for IOS XE edge routers
Download PDF — freeNo sign-up needed
Placeholder form: no backend is connected yet.
The problem
Edge changes go wrong at 23:00 and 03:00, when you are improvising. These are five one-page procedures, each with a config template, expected show output, rollback and gotchas, so the change window is a checklist instead of a memory test.
What it does
- Drain a border router with BGP graceful shutdown
- RTBH blackhole against volumetric floods
- BFD with OSPF
- EEM interface flap guard
- IP SLA tracked static default routes
- Every runbook: when to use, preconditions, config template, verification with expected output, rollback, gotchas
render.pyrenders the Jinja2 templates in apply or rollback mode; missing variables fail loudly (StrictUndefined)
What's in the box
- PDF of all five runbooks (
cisco-edge-runbooks.pdf) - Five runbooks in Markdown, six Jinja2 templates, example variable files
render.py,build.py, tests- Text under CC BY 4.0, templates and code under MIT
Usage
make venv
.venv/bin/python render.py # all templates -> rendered/*.apply.cfg
.venv/bin/python render.py --mode rollback # rollback configs
.venv/bin/python render.py bfd_ospf --vars my-site.yml --stdout
make test
Requirements
- IOS XE edge/branch routers (ISR, ASR, Catalyst 8000) as the target
- Python with jinja2, pyyaml, pytest, ciscoconfparse2 to render and test templates
- Docker only to rebuild the PDF
Limitations / what it is not
- No Cisco device was available. Templates are validated by rendering and structural tests, which proves they are well-formed, not that every command is accepted by your IOS XE release.
- The "expected output" blocks are representative, not captured from a device.
- Test in a lab or a change window. No vendor certification is claimed.
- IOS XE only; no NX-OS port yet.
FAQ
What is the license?
Text CC BY 4.0, templates and code MIT.
Is it free? Yes. No payment is involved.
How do I get support?
By email: [email protected].
Where it came from
Written up on the blog first:
- Draining a border router without dropping traffic
- Stopping a volumetric flood with RTBH before your upstream picks up the phone
- Fast failure detection with BFD and OSPF on IOS XE
- Catching flapping uplinks with EEM before users do
- Failing over a static default route when the ISP breaks upstream
Download PDF — freeNo sign-up needed
Placeholder form: no backend is connected yet.
Tested Lab-tested
| Product version | 1.0.1 |
|---|---|
| Last run | 2026-11-24 |
| Result (install and tests) | PASS |
| Platforms | Build host; Cisco IOS-XE (CSR1000v 17.3, Catalyst 8000V 17.11) |
What was tested, and how
- Template tests, render all runbooks, build the PDF
How:make test,make render,make pdf; PDF header checked - Every config snippet (apply and rollback variants) pushed to a live virtual router with no IOS error, and each rollback restores the pre-apply running-config exactly
How: SSH push; running-config captured before apply and diffed after rollback (timestamps, ntp clock-period and crypto lines ignored); the diff must be empty
Live device results (same run)
| Check | Result | Detail |
|---|---|---|
| 07 runbooks live push+rollback (CSR1000v 17.3) | PASS | 6/6 snippets applied+rolled back without IOS errors; full restore: 6/6 |
| live matrix: c8000v | PASS | 22 PASS, 0 FAIL |
Not tested
- Snippets that need BGP peers, a cellular interface or optics data were pushed with lab substitutes; their real-world effect is not tested
Method and lab setup: How we test.