Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Network Automation

Direct answer

Network automation is changing and checking network devices with code instead of by hand: an inventory says which devices exist, a transport reaches them (SSH, NETCONF, RESTCONF, an API), and each change is shown as a diff, applied and then verified.

When to use this

Use it as the frame for any automation job — and when a script works on one device and fails on the next.

First 30 seconds

1. Network automation: source of truth → templates → validation → deployment → state verification.

2. Back up configs first.

3. Prefer APIs (NETCONF/RESTCONF/gNMI) over screen scraping.

4. Dry runs and diffs.

5. Verify operational state after changes.

Operational verification

SoT → render → validate → deploy (diff) → verify state

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Network automation / model-driven and controller APIs
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 / model-driven and controller APIs
Scope / prerequisiteUse it as the frame for any automation job — and when a script works on one device and fails on the next.
What next?3 suggested next steps
Child topics (this level)17
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 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/change request → source of truth/revision → inventory/target selection → transport/API/model/capability → generated operation → device acceptance → persisted/effective state → operational/data-plane validation → evidence archive

Healthy evidence: the exact targets and inputs are known, operations are traceable per device, resulting state is read back and independent network acceptance checks match the intended outcome.

Step 2 Target-state verification ladder Verify boundary

Network Automation uses a strict target-state ladder for network config/API change: request accepted → job/task succeeded → target object changed → effective runtime state confirmed → original workload verified.

Step 3 Failure modes and next checks Narrow the fault

Suspicious evidence: a green job or returned payload is treated as success without proving actual target selection, persistence, operational state or end-to-end network behavior.

It does not show every adjacent device, protocol dependency, traffic path or future network condition. A completed automation run shows only the recorded automation path and device responses, but it does not show convergence, persistence, end-to-end forwarding, policy correctness or future network health.

Next check: Continue from the first step that has not been verified: reproduce the same source revision, inventory selection and target context, preserve the raw management operation and response, then read back effective device state and rerun the original bounded network acceptance test before retrying or widening scope.

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
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Network Automation Fundamentals

Network Automation Fundamentals defines the core operating model for safely automating network discovery, configuration, validation and recovery across heterogeneous devices and control planes.

Subtopic Device Inventory

Device Inventory is the authoritative automation view of network targets, identities, addresses, platform metadata, groups and variables used to select and parameterize work.

Subtopic SSH Automation

SSH Automation uses authenticated encrypted sessions to execute network management operations, commonly CLI commands or subsystem protocols, against selected devices.

Subtopic CLI Automation

CLI Automation drives device command-line interfaces programmatically while handling prompts, privilege modes, command ordering, parsing and platform-specific output.

Subtopic API Automation

API Automation uses structured device or controller APIs to query and modify network resources through explicit endpoints, schemas, authentication and response semantics.

Subtopic NETCONF

NETCONF in Network Automation is the model-driven management interface used to retrieve and edit YANG-modeled configuration and state over a capability-negotiated session.

Subtopic RESTCONF

RESTCONF in Network Automation exposes YANG-modeled network configuration and operational resources through HTTP-based resource operations.

Subtopic YANG

YANG in Network Automation provides the data-model contract that gives structured network configuration and state predictable paths, types, constraints and module identities.

Subtopic SNMP Automation

SNMP Automation uses MIB/OID-based polling or controlled set operations to collect or modify network management data within SNMP security and access constraints.

Subtopic Configuration Backup

Configuration Backup automates collection and retention of device configuration snapshots with enough identity, timestamp and integrity context to support recovery, audit and comparison.

Subtopic Configuration Generation

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

Subtopic Configuration Deployment

Configuration Deployment applies approved candidate configuration or structured changes to network devices/controllers with bounded scope, transaction semantics and recovery criteria.

Subtopic Configuration Validation

Configuration Validation checks candidate or deployed network configuration against syntax, schema, policy, intent and selected operational invariants before or after change.

Subtopic Compliance Checking

Compliance Checking compares network configuration or state against explicit technical policies, baselines or required controls and records exceptions with scope and evidence.

Subtopic Network State Collection

Network State Collection gathers operational network facts such as interfaces, neighbors, routes, sessions, counters and controller/device status for verification, inventory enrichment and decision-making.

Subtopic Network Testing

Network Testing automates bounded checks of reachability, protocol state, configuration intent, path behavior or service acceptance before and after network changes.

Subtopic Network Automation Troubleshooting

Network Automation Troubleshooting isolates failures across source data, target selection, transport/API/model, generated operations, device responses, parsing, persistence and network acceptance without changing unrelated layers.

Key points

Most failures are inventory and access: wrong address, wrong platform type, missing credentials or a transport that is not enabled. Always run a dry run with a diff before applying. Verify the result on the device, not in the tool's return code.

Key checks
  • ansible-inventory -i netbox.yml --graph — device inventory from SoT
  • ansible network -m cisco.ios.ios_facts — gather facts
  • Config backup job status — safety net
ReferenceWhat it is1 section · depth on demand

Core model

Treat the workflow as an evidence chain from intended change and source-of-truth through target selection, transport/API/model resolution, generated payload, device response, persisted state and independent operational validation.

ReferenceWhy it matters1 section · depth on demand

How it works in operation

Path: Automation → Network Automation. Local intent: Network Automation applies repeatable, machine-driven workflows to network intent, inventory, configuration, operational state and verification while keeping device acceptance and end-to-end network behavior as independent limits of what the checks show.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A completed automation run shows only the recorded automation path and device responses, but it does not show convergence, persistence, end-to-end forwarding, policy correctness or future network health.

In depth

Network automation applies software practices to network operations: devices are configured from templates and a source of truth, changes are tested and deployed by tools, and network state is collected and verified automatically.

AreaTools
Source of truthNetBox, Nautobot, YAML in Git
ConfigurationAnsible, Nornir, Terraform providers
Device accessSSH (Netmiko/Scrapli), NETCONF, RESTCONF, gNMI
ValidationBatfish, pyATS, SuzieQ
ObservabilityStreaming telemetry, SNMP

Start with read-only tasks — backups, inventory, compliance reports — before automating changes.

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 / model-driven and controller APIs 2026/current

Lowest-Good remediation source for Network Automation. Documentation authority supports bounded reference claims only; it is not observed lab/production Evidence.

Basis: https://developer.cisco.com/docs/network-automation-delivery-model/network-automation-delivery-model/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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 automationnetwork infrastructure automationautomated network operationsNetDevOps
Embedded reference data

Quick lookup tables

Network Automation Network Automation proof-boundary map

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

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
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Interpret per-device execution, diff and operational read-back

Network Automation output must remain per device and per change boundary. Aggregate success can hide one unreachable or failed node, and a configuration write can succeed while the intended forwarding/control-plane state does not. Preserve stable device identity, platform/version, transport/model, proposed/applied diff, execution state and independent operational read-back.

Normalized fleet result:

change_id=chg-20260916-42 targets=4
r1 changed=true  failed=false diff="ntp server 192.0.2.10 -> 192.0.2.20" readback=ok
r2 changed=false failed=false diff="none (already desired)"                 readback=ok
r3 changed=false failed=true  stage=commit error="lock denied"              readback=old_state
r4 unreachable=true transport=ssh                                            readback=not_observed
summary: converged=2 failed=1 unreachable=1

Interpret changed=false carefully: it can mean already compliant, skipped, no matching target or a failure before mutation; use the per-device reason and read-back. A generated diff is a pre-change artifact until the device confirms the write/commit. failed=true should name the stage—transport, validation, lock, edit/commit, controller task or verification—so remediation starts at the correct boundary. Unreachable is not a configuration failure and must not be counted as verified unchanged. After successful mutation, read the authoritative configuration/state from the same device identity and then verify the operational property that motivated the change (for example neighbor/session/route/policy/telemetry state). For a partial fleet, retry only the unresolved set after current state is rediscovered; do not blindly replay the full fleet and overwrite already-converged devices.

Confirmation

Confirm action

Continue?