Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Drift Detection · Source of Truth

Direct answer

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.

When to use this

Use this when live config differs from source of truth.

First 30 seconds

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.

Operational verification

SoT intent vs actual → drift → remediate

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
source-of-truth automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformsource-of-truth automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when live config differs from source of truth.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Compare live configuration with recorded intent.
  • Decide which one is wrong.
  • Fix the device or the record.
Key checks
  • 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.

ComparisonSource of actual state
Devices and serialsDiscovery, SNMP, controller inventories
Interfaces and descriptionsDevice APIs/CLI
IP addressesDevice configs, ARP tables
VLANsSwitch VLAN tables
CablingLLDP/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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docsource-of-truth automation current

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%
Depth when you need it

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.

Confirmation

Confirm action

Continue?