Use this when checking device state after changes.
State Verification · Cisco Automation
1. Verify state after changes: interfaces, neighbors, routes.
2. Genie learn/diff for comparisons.
3. Automate pass/fail.
4. Rollback on failure.
5. Store evidence.
pre snapshot → change → post snapshot → diff
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip interface briefShow Commands
Read-only and diagnostic commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Verification for Cisco Automation → State Verification must discriminate known-good from broken/suspicious state. With show ip interface brief, known-good is: target interfaces have the intended addressing and up/up state where expected. Broken/suspicious is: wrong address or administratively/operationally down state reveals deployment/state drift. Read back the same target after the minimal approved change, then inspect interface detail/routing and the original service path after configuration read-back.
Step 2 Common mistakes Narrow the fault
- Checking config instead of operational state.
Step 3 Observation-driven troubleshooting tree Narrow the fault
Troubleshoot Cisco Automation → State Verification from one exact failing target, revision/input and timestamp. Capture show ip interface brief before mutation, then branch by the first divergent observation: interface/address is wrong or down, stay local; local interface is correct but peer/route is absent, move to adjacency/control plane; control plane is correct but traffic fails, inspect forwarding/policy; original test succeeds but adjacent service regresses, treat the change as incomplete. Typical failure signatures include configuration present with line protocol down, wrong address/VRF, neighbor not established, route absent, forwarding blackhole, policy drop, or one test passing while a neighboring path regresses.
Step 4 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for Cisco Automation → State Verification: Configuration present with line protocol down, wrong address/VRF, neighbor not established, route absent, forwarding blackhole, policy drop, or one test passing while a neighboring path regresses. Operational guardrail: show ip interface brief is a first local discriminator for interface/IP/line state; it cannot show routing, policy, forwarding or application success. Dependencies that can mimic the same symptom are interface physical state, VLAN/VRF, routing protocols, FIB/CEF, ACL/NAT/QoS policy, DNS and application endpoints depending on the changed network state.
- Check interfaces, neighbours and routes.
- Parse with TextFSM, Genie or pyATS.
- Compare before and after.
pyats learn interface --testbed-file tb.yaml— state snapshotgenie diff before/ after/— compareansible <dev> -m cisco.ios.ios_command -a "commands='show ip ospf neighbor'"— quick check
ReferenceHow it works1 section · depth on demand
How it works
Cisco Automation → State Verification owns the chain from intended configuration through device operational state, neighbor/control-plane state, forwarding/data-plane behavior and the original consumer path. Execution mechanics: Post-change verification first shows the local object exists in the expected state, then shows the adjacent dependency or peer, then repeats the original end-to-end test and finally checks a nearby known-good path for regression. Keep adjacent dependencies separate: interface physical state, VLAN/VRF, routing protocols, FIB/CEF, ACL/NAT/QoS policy, DNS and application endpoints depending on the changed network state. The mapped read surface show ip interface brief exposes interface identity, IP address and line/protocol state.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
State verification on Cisco devices proves that a change produced the intended operational state, not just that commands were accepted.
1. Define expected state per change (e.g. interface up, VLAN present, OSPF neighbor Full, BGP prefixes received).
2. Capture the same state before the change.
3. Collect after the change with structured parsers or model-based queries.
4. Compare against expectation and against the before snapshot.
5. Fail the job on mismatch and trigger rollback.
after = device.parse("show ip ospf neighbor")
full = [n for i in after["interfaces"].values() for n in i["neighbors"].values() if n["state"].startswith("FULL")]
assert len(full) == expected_neighbors
Check state from more than one angle: control plane (neighbors), data plane (ping/traceroute) and user-facing service.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Cisco Automation > State Verification. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.cisco.com/docs/yangsuite/ · confidence 94%