Network Automation Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5603
Answer
Network Automation Troubleshooting isolates failures across source data, target selection, transport/API/model, generated operations, device responses, parsing, persistence and network acceptance without changing unrelated layers.
Remember
- Last red task ≠ root cause boundary.
- Retry success ≠ cause understood.
- Automation failure ≠ network failure, and network failure ≠ automation failure.
- Changed symptom ≠ original requirement restored.
First checks
ansible-playbook play.yml -vvvv --limit <dev>— verbosessh -vvv <dev>— transport debug- Device logs (show logging) — device side
Commands
show ip interface brief- Compact IPv4 interface/address/protocol state.
Verify in this order
controller → transport → device → command/API → error
Where it usually breaks
Troubleshooting closes only when the first failed boundary is explained and the original automation plus network acceptance test passes after a controlled correction.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Network Automation Troubleshooting Network Automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5603