Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Configuration Generation

Direct answer

Configuration Generation transforms authoritative intent, inventory and variables into candidate device-specific configuration or structured payloads before deployment.

When to use this

Use it when configuring, checking or troubleshooting Configuration Generation in Network Automation.

First 30 seconds

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.

Operational verification

SoT + templates → rendered configs

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
network 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.

Platformnetwork automation · Configuration Generation owns transformation of network intent into candidate config/payloads. Templates/languages may live in other branches; deployment and network protocol behavior remain separate. · POSIX / diff
Key commanddiff -u <expected-file> <actual-file>
Scope / prerequisiteUse it when configuring, checking or troubleshooting Configuration Generation in Network Automation.
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

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 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
  • 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.
Key checks
  • 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.

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 docnetwork automation current

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%
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
network config generationconfiguration templatinggenerated network configuration
Embedded reference data

Quick lookup tables

Configuration Generation Network Automation proof-boundary map

Fast intent/scope, management-operation, device-state and network-acceptance boundaries for Configuration Generation.

BoundaryHealthy evidenceSuspicious evidence
Intent / scopeSource revision and exact targets are explicitStale inventory, hidden selector or wrong variables change scope
Management operationTransport/model/payload and per-device response are traceableAuth/capability/parser differences hide partial or wrong execution
Device stateEffective and persistent state are read backAccepted config/API result is mistaken for convergence
Network proofOriginal control/data-plane or service test passesAutomation summary substitutes for actual network acceptance
Confirmation

Confirm action

Continue?