Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Automation, Orchestration & AI

Direct answer

Good automation rests on idempotency (running a change twice gives the same result), a source of truth (one authoritative record of intended state), validation before and after changes, orchestrated workflows, and human review of AI-generated suggestions.

When to use this

Use it when designing an automation workflow, or when automated changes behave differently from what was intended.

First 30 seconds

1. Which interface fails: script, API, controller or tool?

2. Reach and authenticate: curl -i to the API — 401/403 means credentials or permissions.

3. Request valid? 400 → check the JSON body against the model.

4. Dry run (Ansible --check, Terraform plan) shows the expected change only?

5. After the change, read back state through the API and compare with intent.

Operational verification

source of truth → data validated → API or tool authenticated → change applied idempotently → state read back → matches intent

Failure signatureGenerated configuration breaks a device when pushed directly

Configuration produced by a template or AI tool is applied and causes an outage or unexpected change.

Possible stored cause: The output was applied without validation, a diff against the running configuration, or a staged test.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when designing an automation workflow, or when automated changes behave differently from what was intended.
What next?3 suggested next steps
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.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Configuration produced by a template or AI tool is applied and causes an outage or unexpected change.

Step 1 Verification & evidence Verify boundary

Use dry-run/diff, schema validation, test environment, explicit approval and post-change verification.

Step 2 Common failure modes Narrow the fault

Directly applying generated config, missing source-of-truth conflict, non-idempotent scripts, silent partial failure or unverified API response.

Step 3 Troubleshooting workflow Narrow the fault

Focus for this topic: Directly applying generated config, missing source-of-truth conflict, non-idempotent scripts, silent partial failure or unverified API response.

Step 4 Common mistakes Narrow the fault
  • Automating a process that is not standardised yet.
  • No rollback step in the workflow.
  • Letting AI tools change production without human approval.
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
Command lookup Jump straight to Cisco syntax
Key points

Desired state lives in the source of truth (NetBox, Git), not on devices. Every run: render config from data → validate (lint, schema) → dry run → apply → verify by reading state back. Treat AI-generated configuration like code from a new colleague: review and test it before use.

Key checks
  • curl -sk -u <user>:<pw> -H 'Accept: application/yang-data+json' https://<device>/restconf/data/ietf-interfaces:interfaces — RESTCONF read.
  • curl -i — HTTP status code and headers (200 OK, 201 Created, 204 No Content, 400, 401, 403, 404).
  • python3 -m json.tool < file.json / jq . file.json — JSON valid and readable.
  • show netconf-yang status / show platform software yang-management process — device API agents running.
  • show ip http server status — HTTPS server for RESTCONF.
ReferenceWhat it is1 section · depth on demand

Concept overview

Idempotency, source of truth, validation, orchestration workflows and responsible use of AI-generated suggestions.

Key ideas: Good automation separates source of truth, desired state, rendered change, validation and controlled apply. AI can assist analysis/content generation but should not bypass deterministic checks and human review for network changes.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Good automation separates source of truth, desired state, rendered change, validation and controlled apply. AI can assist analysis/content generation but should not bypass deterministic checks and human review for network changes.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

A reliable automation workflow, with or without AI

A robust workflow treats every change the same way, whoever or whatever produced it: source of truth, rendered change, validation, dry run and diff, approval, deployment, and verification. Adding AI to that workflow, for example to draft changes or analyse results, adds risks that need managing. NIST's AI RMF is a voluntary framework designed to build trustworthiness into the design, development, use and evaluation of AI systems. Its Generative AI Profile (NIST AI 600-1) focuses on the risks specific to generative models.

Workflow stages

StagePurposeTools
Source of truthIntended state: inventory, IPAM, variablesNetBox, Git, YAML files
RenderTurn intent into configuration or API callsJinja2, Ansible, Terraform
ValidateSchema checks and policy rulesYANG validation, linters, unit tests
Dry runShow exactly what would change--check --diff, test-only, plan
ApproveA human or a policy decisionPull request review
DeployApply, ideally transactionallyNETCONF candidate/commit, Ansible
VerifyProve the outcomepyATS, show commands, monitoring

Orchestration compared with automation

AutomationOrchestration
ScopeOne task (configure a VLAN)A multi-step process across systems (new site)
StatePer deviceAcross devices, controllers and ticketing
Error handlingStop on errorCompensate, roll back, notify

Using AI safely in the workflow

AI roleGuardrail
Suggests a changeGoes through the same validation, dry run and review
Interprets verification outputRaw outputs are kept, and conclusions can be checked
Runs commands itselfRead-only credentials by default, an allow-list of commands, audit logging
Learns from historyNo secrets in prompts or training data
dev$ yamllint inventory/ && python3 -m jsonschema -i vars/site-17.json schema/site.json
dev$ ansible-playbook deploy.yml --limit site-17 --check --diff | tee plan.txt
dev$ ansible-playbook deploy.yml --limit site-17
dev$ pyats run job verify_site.py --testbed testbed-site17.yaml

The plan output (plan.txt) becomes part of the review record. It shows the approved change was exactly what was deployed.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Automation, orchestration and AI describe increasing levels of help for operations. Automation performs a single task reliably — configure a VLAN, back up configs. Orchestration chains tasks across systems into a workflow — provision a new site: allocate IP space in IPAM, create VLANs, update the firewall, register in monitoring. AI adds analysis and suggestions — spotting anomalies, correlating events or drafting changes for review.

A practical maturity path:

1. Back up configurations and collect state automatically.

2. Generate configuration from templates and a source of truth.

3. Validate before and after every change automatically.

4. Orchestrate multi-system workflows with approval steps.

5. Add AI-driven insight on top of reliable data.

Each step depends on the one before: AI on inconsistent data or orchestration without validation automates mistakes faster. Keep humans approving changes until checks have confirmed reliable.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Automation and Artificial Intelligence → Automation, Orchestration & AI. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · 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.

Depth when you need it

Deep reference

Design & tradeoffs

ENCOR design tradeoffs

Automation increases leverage; guardrails, observability and rollback become more important as leverage grows.

Additional depth

Automation safety loop

A robust automation workflow is source of truth → render/construct request → schema/input validation → dry-run/diff where possible → human/policy approval → apply → API/device error handling → independent operational verification → rollback/reconciliation. Idempotency and partial-failure handling matter more than simply generating commands quickly.

Confirmation

Confirm action

Continue?