Pcornel
Automation · Network Automation

Configuration Validation

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

Back to the Topic

Answer

Configuration validation checks that a configuration is right: before a change, that the candidate is valid and does what is intended; after it, that the device actually holds that configuration and the network behaves as expected.

Remember

Validate in two layers: configuration (is the intended text in the running configuration?) and state (are neighbours up, routes present, interfaces up?). A tool that reports success only knows the commands were accepted. Compare against state captured before the change.

First checks

  • Batfish analysis (batfish/pybatfish) — pre-deployment validation
  • Syntax check on device (candidate validate) — device-side
  • Pre/post state comparison (pyATS/Genie) — behaviour

Commands

show archive
Lists the configuration files saved in the IOS configuration archive and which one is the most recent.
show archive log config all
Lists the configuration commands logged by the config change logger, with session, user and line.
show archive config differences nvram:startup-config system:running-config
Read-only/validation observation for configuration differences between startup and running state.
show archive config differences

Verify in this order

config → static analysis → deploy → state comparison

Where it usually breaks

Validation proves only the configured rule set against the evaluated input/context; it cannot prove omitted rules, dynamic dependencies or full network behavior.

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

Configuration Validation 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=5599

Confirmation

Confirm action

Continue?