Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Configuration Validation · Validation

Direct answer

Configuration Validation evaluates whether a desired configuration is internally coherent, policy-compliant, compatible with the target and likely to converge before or after it is applied.

When to use this

Use it when gating automation around Configuration Validation. Keep authoritative criteria, immutable source/input, exact target identity, validator version, observed/effective state and workload acceptance as separate proof boundaries.

First 30 seconds

1. Validate configs with native tools before applying.

2. Semantic validation where possible.

3. Device-side validation (candidate).

4. Fail before deploy.

5. Store results.

Operational verification

rendered config → validators → deploy only if valid

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation validation and preflight controls
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.

Platformautomation validation and preflight controls · Configuration Validation owns generic config proof boundaries; network, operating-system, virtualization and application branches own domain semantics. · Git
Key commandgit diff --exit-code <baseline-ref> -- <managed-path>
Scope / prerequisiteUse it when gating automation around Configuration Validation. Keep authoritative criteria, immutable source/input, exa…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

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

5 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 Operational evidence path Verify boundary

desired configuration → target capability/current state → references/dependencies/invariants → policy validation → preview/apply → effective config read-back → service acceptance

Healthy evidence: configuration revision, target capabilities and dependencies align, post-apply read-back matches intent and service acceptance passes.

Step 2 Command read-back and what it shows Verify boundary

For Validation → Configuration Validation, read back with git diff --exit-code <baseline-ref> -- <managed-path>. Success is discriminated by candidate and baseline are for the same target/version, the material delta is fully explained and approved, platform/schema validation accepts it, and post-change discriminators are defined; failure remains when unexplained material changes, stale/wrong baseline, schema/platform rejection or a candidate that passes text comparison but cannot meet defined operational postconditions. The Git diff shows differences between selected configuration artifacts, but it does not show platform acceptance, authorization or runtime behavior.

Step 3 Common mistakes Verify boundary
  • Validating config text, not effective state.
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: validators ignore target version/capability, compare only text, or declare success from accepted changes without runtime read-back.

Configuration Validation shows only the checked configuration constraints and observed effective state; it does not by itself show convergence durability or workload correctness.

Step 5 Observation-driven branch and next-check logic Narrow the fault

Start Validation → Configuration Validation from one identified target/request/artifact and timestamp. Decision path: if baseline or candidate identity is uncertain, resolve provenance first; if diff contains unexpected fields/objects, trace source data/template; if textual delta is expected, run platform/schema semantic checks and define post-change verification before approval.

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
  • Configuration valid ≠ target can converge successfully.
  • Desired configuration ≠ effective runtime configuration.
  • Policy compliant ≠ application healthy.
  • Diff looks expected ≠ hidden defaults or generated state are correct.
Key checks
  • nginx -t / sshd -t / named-checkconf — native config validation
  • Batfish for network configs — semantic
  • Candidate validate (NETCONF) — device-side
ReferenceWhat it is1 section · depth on demand

Core model

Resolve the exact desired configuration and target capabilities, validate references, dependencies, invariants and policy, compare against current state, then after application read back effective configuration and exercise the service-relevant condition.

ReferenceHow it works1 section · depth on demand

How it works

Validation → Configuration Validation owns candidate configuration, approved baseline/current state, normalization of generated/volatile fields and platform-specific semantic constraints used before change approval. Configuration validation compares intended values with a trustworthy baseline and should combine structural/schema checks with semantic/platform checks so the proposed delta is both understandable and executable. Keep these adjacent boundaries separate: source-of-truth freshness, template rendering, credentials, target version and hidden/default settings are separate things to check. A key diagnostic distinction is that a small textual diff is not necessarily safe and a large diff can be legitimate; significance depends on the exact target, semantics and approved change intent.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

Configuration Validation owns generic config limits of what the checks show; network, operating-system, virtualization and application branches own domain semantics.

In depth

Configuration validation checks that generated configuration is correct for the target platform and complies with policy, before deployment: references exist, required settings are present, forbidden settings absent.

TechniqueExample
Platform validationNETCONF validate, nginx -t, sshd -t
Policy rulesNo telnet, NTP present
Model-based analysisBatfish undefined references, ACL reachability
Diff reviewRendered vs current config

Use the tool's own validator when one exists; Ansible's validate: option on template/copy runs it before replacing the file.

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 docautomation validation and preflight controls current

Authoritative/upstream documentation reviewed for bounded claims in Validation > Configuration Validation. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://json-schema.org/learn/getting-started-step-by-step · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
configuration validationconfig validation automationvalidate desired configuration
Embedded reference data

Quick lookup tables

Configuration Validation validation proof-boundary map

Fast criteria/scope, execution and effective-outcome proof boundaries for Configuration Validation.

BoundaryHealthy evidenceSuspicious evidence
Criteria / inputCriteria, source revision, validator and exact target identity are explicitA generic pass exists without versioned criteria or target correlation
Preconditions / operationCurrent authoritative facts are bound to the exact operationStale preflight or requested state substitutes for execution-time facts
Effective outcomeAuthoritative state/read-back and service-relevant evidence match the expected resultTool/test/validator success substitutes for effective target or workload proof
Limits / next actionCoverage limits, unknowns and failures drive the next narrower checkUnknown evidence becomes pass, retries hide failures or broad success is inferred from one check
Confirmation

Confirm action

Continue?