Use it when configuring, checking or troubleshooting Configuration Generation in Network Automation.
Configuration Generation
Configuration Generation transforms authoritative intent, inventory and variables into candidate device-specific configuration or structured payloads before deployment.
1. Configuration generation: SoT data + templates → device configs.
2. Separate data and templates.
3. Deterministic output.
4. Review rendered diffs.
5. Test with sample devices.
SoT + templates → rendered configs
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
diff -u <expected-file> <actual-file>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
intent/source of truth → inventory/variables → template/model revision → rendering → syntax/schema validation → semantic/policy validation → normalized diff → approved candidate
Healthy evidence: inputs and template versions are pinned, output is deterministic, validated per platform and reviewed against current state before deployment.
Step 2 Command read-back and what it shows Verify boundary
For Network Automation → Configuration Generation, read back with diff -u <expected-file> <actual-file>. Success is discriminated by identical versioned inputs render deterministically, the diff contains only approved target-specific changes, and a platform-aware validation stage accepts the generated configuration before deployment; failure remains when repeated renders differ, wrong device/platform values appear, unapproved lines are introduced/removed, or validation rejects output that looked acceptable in a text diff. diff -u <expected> <generated> shows textual differences between two chosen artifacts, but it does not show either artifact is valid for a device or safe to deploy.
Step 3 Common mistakes Verify boundary
- Templates without validation.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: hidden defaults, precedence, stale inventory or platform mismatch create syntactically plausible but semantically wrong configuration.
Step 5 Observation-driven branch and next-check logic Narrow the fault
Start Network Automation → Configuration Generation from one identified target/request/artifact and timestamp. Decision path: if output changes with identical inputs, isolate ordering/default/time-dependent rendering; if diff shows unexpected target/platform sections, validate inventory/template selection; if generated output matches expectation but deployment fails, move to syntax/device capability and runtime state.
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.
- Template rendered ≠ configuration valid on the device.
- Deterministic text ≠ correct intent.
- Variable present ≠ correct effective value after precedence/merge.
- Diff looks small ≠ blast radius small.
ansible-playbook render.yml— render configs from SoT- Templates per platform/role — structure
- Rendered config artefacts — review
ReferenceWhat it is1 section · depth on demand
Core model
Separate source data, template/model version, variable precedence, platform rendering, deterministic output, semantic validation and deployment.
ReferenceHow it works1 section · depth on demand
How it works
Network Automation → Configuration Generation owns input data, template/version, rendering engine, generated artifact and the expected golden or previously approved output used for review. Generation transforms structured source-of-truth data through templates and filters into device-specific configuration; deterministic generation requires stable input ordering, explicit defaults and versioned templates. Keep these adjacent boundaries separate: inventory freshness, secrets, custom filters, platform selection and downstream device syntax are independent dependencies. A key diagnostic distinction is that a syntactically plausible generated file can still be semantically wrong for the target, and differences from a golden file can be either intended change or nondeterministic rendering.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Generated configuration shows a transformation result, but it does not show the source intent, platform semantics or eventual device/network outcome are correct.
In depth
Configuration generation renders device configuration from templates and data — typically Jinja2 templates fed by NetBox or YAML — so every device of a role gets consistent configuration and differences are driven only by data.
hostname {{ hostname }}
{% for vlan in vlans %}
vlan {{ vlan.id }}
name {{ vlan.name }}
{% endfor %}
{% for intf in interfaces if intf.mode == 'access' %}
interface {{ intf.name }}
switchport mode access
switchport access vlan {{ intf.vlan }}
{% endfor %}
Render in CI, diff rendered output against the current device config, and review that diff — it shows the real effect of a template change.
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 Network Automation > Configuration Generation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.cisco.com/site/networking/ · 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 Generation Network Automation proof-boundary map
Fast intent/scope, management-operation, device-state and network-acceptance boundaries for Configuration Generation.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |