Use this when tracking provider circuits in NetBox.
Circuits
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.
1. Circuits model WAN/ISP links: provider, type, terminations (sites/interfaces).
2. Link to interfaces.
3. Contract and support data.
4. Used for documentation and monitoring.
5. Keep status current.
provider → circuit → terminations → interfaces
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Verification path Verify boundary
The primary procedure is: 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. Exercise failure-oriented cases such as duplicate provider circuit IDs, only one termination populated, stale status, wrong tenant/site, mismatched cable path and using free-text descriptions as stable identity so the test covers failure cases, not only the happy path.
Step 2 Common mistakes Narrow the fault
- Circuits without provider or termination data.
Step 3 Where it fails Narrow the fault
Failure analysis for NetBox → Circuits should follow the path through the components: external carrier/source data → NetBox circuit object → terminations/cabling → API selection → downstream provisioning/documentation. Tests should include edge cases such as duplicate provider circuit IDs, only one termination populated, stale status, wrong tenant/site, mismatched cable path and using free-text descriptions as stable identity. Recovery should preserve the existing object IDs and path data, correct the smallest wrong relationship/attribute, then query both circuit and terminations before allowing downstream changes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Provider, circuit ID, type, commit rate.
- Terminations at sites or devices.
- Useful for incidents and contracts.
curl -s -H 'Authorization: Token <t>' https://<netbox>/api/circuits/circuits/— circuits- Providers, circuit types, terminations — structure
- Commit rates/contract data — business info
ReferenceWhy it matters1 section · depth on demand
In depth
In NetBox, circuits model connectivity bought from providers — internet, MPLS, dark fibre — with the provider, circuit ID, type, commit rate and the two terminations (A and Z sides) connected to sites or interfaces.
| Object | Content |
|---|---|
| Provider | Carrier name, accounts, contacts |
| Circuit type | Internet, MPLS, transport |
| Circuit | Circuit ID, commit rate, status |
| Termination | Site/location and connected interface |
Automation can use circuit data for interface descriptions, monitoring thresholds based on commit rate, and incident tickets with the right circuit ID and provider contact.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Circuits in NetBox is owned at runtime by NetBox circuit/provider/termination models and the API client selecting or mutating them. The durable intent is authoritative circuit inventory containing provider, circuit ID, type, status, tenant, terminations and cable/path relationships. Reliable automation must carry stable identity across the path: NetBox object ID plus provider/circuit ID and termination side/object IDs. The consumer-visible target is the specific circuit record and its A/Z terminations/path relationships consumed by network automation. The key invariants are provider+circuit identity is unambiguous, terminations reference correct site/device/interface/provider network, lifecycle status is current and automation does not infer physical path from labels alone.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Store and review authoritative circuit inventory containing provider, circuit ID, type, status, tenant, terminations and cable/path relationships; pin or at least record implementation/model versions and keep environment-specific identity outside reusable logic where possible. The stable identity contract is NetBox object ID plus provider/circuit ID and termination side/object IDs.
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 NetBox > Circuits. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://netboxlabs.com/docs/netbox/models/circuits/ · confidence 94%Quick lookup tables
NetBox → Circuits · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for NetBox → Circuits.
| 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 |
Deep reference
Healthy vs suspicious evidence
Output interpretation
At minimum retain circuit ID/object ID, provider, type/status, tenant, termination A/Z IDs, site/device/interface/provider-network targets, path trace IDs and last-updated timestamp. The useful output makes ambiguity visible, links to the target identity from NetBox object ID plus provider/circuit ID and termination side/object IDs, and provides enough context to safely decide whether a retry is permitted.