Pcornel
Automation · NetBox

Circuits

Cheat sheet · https://pcornel.dk/topic.php?topic=5882

Back to the Topic

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

LayerNetBox → Circuits operational reference
Runtime/ownershipNetBox circuit inventory automation · NetBox circuit/provider/termination models and the API client selecting or mutating them
Persistent intentauthoritative circuit inventory containing provider, circuit ID, type, status, tenant, terminations and cable/path relationships
VerificationQuery 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 interpretationExactly 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 boundarypreserve 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

Confirmation

Confirm action

Continue?