Use this when live config differs from source of truth.
Drift Detection · Source of Truth
Drift detection against a source of truth compares live configuration with the recorded intent and reports devices or settings that differ, so either the device or the record is corrected.
1. Drift detection compares reality with SoT.
2. Config compliance and state checks.
3. Decide: fix device or update SoT.
4. Alert on drift.
5. Track trends.
SoT intent vs actual → drift → remediate
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 Known-good, broken and when it is fixed Verify boundary
Known-good uses a controlled reversible field change: establish no-drift baseline, introduce one known drift, observe exactly that difference, restore desired state and confirm a fresh scan clears it. The report must identify desired revision and observation time. A green scan does not show uncollected state is compliant.
Step 2 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as duplicate labels, stale inventory, conflicting authority, broad filters, race between read and write, orphaned relationships and automation acting on data not yet reconciled, choosing the cases most relevant to scheduled/event-driven desired-versus-actual reads, normalized diff, ignored fields, freshness and creating a reviewable drift record before remediation.
Step 3 Common mistakes Narrow the fault
- Drift detection without remediation process.
Step 4 Native failure isolation and next-check logic Narrow the fault
For one reported field, capture raw desired value, desired revision, raw observed value, observation timestamp and normalization result. If the diff is false, inspect defaults/order/type coercion or ignored-field policy. If the diff is real but intermittent, verify collection consistency and asynchronous convergence. Do not remediate until the comparison can be reproduced from both raw inputs.
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.
- Compare live configuration with recorded intent.
- Decide which one is wrong.
- Fix the device or the record.
- Compare device state with SoT intent — drift
- Drift report per device — results
- Remediation workflow — fix
ReferenceHow it works1 section · depth on demand
How it works
Drift detection compares a named desired/source revision with freshly observed target state after normalization. Desired data, observation freshness, ignored/computed fields and comparison rules all influence the result. A no-drift result says only that covered normalized fields matched at that observation time.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Drift detection against the source of truth compares what the SoT says should exist with what actually exists on the network: devices, interfaces, IP addresses, VLANs, cabling. Every difference is either an undocumented change in the network or wrong data in the SoT.
| Comparison | Source of actual state |
|---|---|
| Devices and serials | Discovery, SNMP, controller inventories |
| Interfaces and descriptions | Device APIs/CLI |
| IP addresses | Device configs, ARP tables |
| VLANs | Switch VLAN tables |
| Cabling | LLDP/CDP neighbours |
Tools such as Nautobot/NetBox plugins (Golden Config, Device Onboarding), SuzieQ or custom scripts produce drift reports. Decide per finding which side is wrong, fix it, and track drift counts over time as a measure of data quality.
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 Source of Truth > Drift Detection. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://netbox.readthedocs.io/en/stable/introduction/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For scheduled/event-driven desired-versus-actual reads, normalized diff, ignored fields, freshness and creating a reviewable drift record before remediation, prefer typed fields and stable IDs over human presentation text.