Automation · NetBox
Circuits
Cheat sheet · https://pcornel.dk/topic.php?topic=5882
Answer
Circuits in NetBox model WAN and internet links from providers, with circuit ID, type, commit rate and terminations at sites or devices, useful for tracking carriers and contracts.
Remember
- Provider, circuit ID, type, commit rate.
- Terminations at sites or devices.
- Useful for incidents and contracts.
First checks
curl -s -H 'Authorization: Token <t>' https://<netbox>/api/circuits/circuits/— circuits- Providers, circuit types, terminations — structure
- Commit rates/contract data — business info
Verify in this order
provider → circuit → terminations → interfaces
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
NetBox → Circuits · operational reference
| Layer | NetBox → Circuits operational reference |
|---|---|
| Runtime/ownership | NetBox circuit inventory automation · NetBox circuit/provider/termination models and the API client selecting or mutating them |
| Persistent intent | authoritative circuit inventory containing provider, circuit ID, type, status, tenant, terminations and cable/path relationships |
| Verification | Query a known circuit by provider/circuit ID, inspect both terminations and traced paths, make one bounded metadata update, then GET the circuit/termination objects again by ID. |
| Expected interpretation | Exactly one intended circuit resolves, its provider/type/status and A/Z terminations match physical documentation, and downstream automation uses stable object IDs and current relationships. |
| Recovery boundary | preserve the existing object IDs and path data, correct the smallest wrong relationship/attribute, then query both circuit and terminations before allowing downstream changes |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5882