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.
Configuration Validation · Validation
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.
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.
rendered config → validators → deploy only if valid
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git diff --exit-code <baseline-ref> -- <managed-path>Primary Commands
Configuration and operational commands for this Topic.
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 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 · 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.
- 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.
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.
| Technique | Example |
|---|---|
| Platform validation | NETCONF validate, nginx -t, sshd -t |
| Policy rules | No telnet, NTP present |
| Model-based analysis | Batfish undefined references, ACL reachability |
| Diff review | Rendered 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.
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 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%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.
Quick lookup tables
Configuration Validation validation proof-boundary map
Fast criteria/scope, execution and effective-outcome proof boundaries for Configuration Validation.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Criteria / input | Criteria, source revision, validator and exact target identity are explicit | A generic pass exists without versioned criteria or target correlation |
| Preconditions / operation | Current authoritative facts are bound to the exact operation | Stale preflight or requested state substitutes for execution-time facts |
| Effective outcome | Authoritative state/read-back and service-relevant evidence match the expected result | Tool/test/validator success substitutes for effective target or workload proof |
| Limits / next action | Coverage limits, unknowns and failures drive the next narrower check | Unknown evidence becomes pass, retries hide failures or broad success is inferred from one check |