Use it when designing an automation workflow, or when automated changes behave differently from what was intended.
Automation, Orchestration & AI
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.
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.
source of truth → data validated → API or tool authenticated → change applied idempotently → state read back → matches intent
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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.
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
| Stage | Purpose | Tools |
|---|---|---|
| Source of truth | Intended state: inventory, IPAM, variables | NetBox, Git, YAML files |
| Render | Turn intent into configuration or API calls | Jinja2, Ansible, Terraform |
| Validate | Schema checks and policy rules | YANG validation, linters, unit tests |
| Dry run | Show exactly what would change | --check --diff, test-only, plan |
| Approve | A human or a policy decision | Pull request review |
| Deploy | Apply, ideally transactionally | NETCONF candidate/commit, Ansible |
| Verify | Prove the outcome | pyATS, show commands, monitoring |
Orchestration compared with automation
| Automation | Orchestration | |
|---|---|---|
| Scope | One task (configure a VLAN) | A multi-step process across systems (new site) |
| State | Per device | Across devices, controllers and ticketing |
| Error handling | Stop on error | Compensate, roll back, notify |
Using AI safely in the workflow
| AI role | Guardrail |
|---|---|
| Suggests a change | Goes through the same validation, dry run and review |
| Interprets verification output | Raw outputs are kept, and conclusions can be checked |
| Runs commands itself | Read-only credentials by default, an allow-list of commands, audit logging |
| Learns from history | No 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.
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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.