Pcornel
Automation · Network Automation

Configuration Generation

Cheat sheet · https://pcornel.dk/topic.php?topic=5597

Back to the Topic

Answer

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

Remember

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

First checks

  • ansible-playbook render.yml — render configs from SoT
  • Templates per platform/role — structure
  • Rendered config artefacts — review

Commands

diff -u <expected-file> <actual-file>
Read-only/validation observation for line-level differences between the selected expected and actual/generated/restored…

Verify in this order

SoT + templates → rendered configs

Where it usually breaks

Generated configuration proves a transformation result; it does not prove the source intent, platform semantics or eventual device/network outcome are correct.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Configuration Generation Network Automation proof-boundary map

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5597

Confirmation

Confirm action

Continue?