If you run ACI in production, you already know the job isn't really "networking" — it's decision-making under a policy model. Every ticket forces the same question: is this a quick lookup, a known runbook, an investigation, a design choice, or something that needs a second pass before it goes live?
AI agents face the exact same fork in the road. The strategy an agent picks — how much it plans before it acts — determines whether it's useful or dangerous on your fabric. This post walks through the five planning patterns showing up in agentic AI tooling today, each mapped to a real ACI scenario instead of a generic networking example.
Why This Matters More on ACI Than on Traditional Networks
On a traditional CLI-driven network, a bad AI action is usually contained to one box. On ACI, everything is a shared, declarative policy model — an EPG, a contract, or a Bridge Domain change can ripple across every leaf in the fabric in seconds, and a Multi-Site change can ripple across data centers.
That's exactly why how an AI agent plans matters so much here. A tool that fires configuration pushes without a reviewable plan is a liability on APIC. A tool that reasons, drafts a plan, and lets you approve it before touching the MIT (Management Information Tree) is something you can actually trust near production.
1. Single-Step ReAct — One Question, One Answer
This is the simplest pattern: gather what's needed, answer, done. No multi-turn planning required.
ACI scenario: "What's the health score of leaf switch Leaf-103?"
The agent queries the APIC health score API for that node and returns the number — no further steps needed.
Other single-step ACI use cases:
- Pulling the fault count on a specific EPG
- Checking whether a contract is currently applied between two EPGs
- Looking up which leaf a given endpoint is learned on
- Reporting APIC cluster health (
avreadstate across controllers) - Checking the current firmware version on a switch node
Fast, low-risk, read-only. This is where most engineers will first trust an AI agent — because there's nothing to approve, only something to report.
2. Multi-Step ReAct — Following a Known Runbook
Some ACI tasks are a fixed, well-rehearsed sequence. The agent doesn't need to design anything — it needs to execute the checklist correctly, step by step, reacting to what each step returns.
ACI scenario: Onboarding a new leaf switch into the fabric.
- Confirm the leaf is discovered and registered in APIC
- Assign the node ID and confirm it joins the fabric membership policy
- Verify the leaf inherits the correct Pod policy group and interface policies
- Confirm VPC pairing (if applicable) comes up cleanly
- Validate the leaf's health score stabilizes above threshold
- Push a test EPG/BD binding and confirm endpoint learning works
If step 4 fails — say, the VPC doesn't form — the agent reacts, checks the peer-link and policy-group config before moving to step 5, the same way you would.
Other multi-step ACI use cases:
- APIC cluster firmware upgrade sequence (validate → stage → upgrade controllers one at a time → validate cluster health before proceeding)
- Tenant onboarding (create Tenant → VRF → Bridge Domains → EPGs → Contracts, in order)
- Scheduled maintenance window pre-checks and post-checks
- Rolling switch firmware upgrades across a pod without dropping VPCs
3. Plan-and-Execute — For When the Fabric Is Telling You Conflicting Things
This is the pattern that matters most for ACI troubleshooting, because ACI failures are rarely single-cause. A contract issue can look like an endpoint-learning issue. A Bridge Domain flooding setting can look like an application performance problem. Jumping straight into action wastes time and, worse, risks a config change based on a wrong guess.
Plan-and-Execute forces the agent to draft the full investigation before touching anything — and critically, you get to review or edit that plan first.
ACI scenario: Two EPGs that used to communicate fine are now silently dropping traffic after a contract update.
Rather than guessing, the agent proposes a plan like:
- Diff the contract and subject/filter changes against the last known-good version
- Check for
drop_pktscounters on ingress/egress leaf interfaces for the affected EPGs - Confirm the contract scope (VRF vs Tenant vs Global) still matches the endpoints' actual VRF placement
- Check zoning-rule programming on the affected leaves (
show zoning-ruleequivalent) to confirm the contract actually rendered in hardware - Verify no overlapping deny contract or
vzAnyrule is taking precedence - Correlate fault codes on the EPG and contract objects in APIC
Only after you approve (or the agent completes) that plan does it move into fault correlation and root-causing — and because the plan is visible, you can spot immediately if it's about to check the wrong VRF.
Other Plan-and-Execute ACI use cases:
- Multi-Site latency or convergence issue reported across three data centers
- APIC cluster split-brain or quorum-loss investigation
- Migrating a legacy VLAN-based network into ACI EPGs without an outage
- Investigating intermittent BD flooding storms across a Pod
4. Tree of Thoughts — For Architecture and Design Decisions
Good ACI architects don't commit to a design on the first idea — they weigh options against the actual requirements. Tree of Thoughts gives an AI agent that same discipline: generate multiple candidate approaches, evaluate trade-offs, then recommend.
ACI scenario: A customer needs a second data center for DR and asks whether to extend the existing ACI fabric or stand up something new.
The agent lays out and compares several branches:
| Option | Strength | Trade-off |
|---|---|---|
| Stretched Fabric (single APIC cluster, no Multi-Pod) | Simplest operationally | Fragile — single failure domain, not resilient to WAN issues between sites |
| ACI Multi-Pod | Single APIC domain, fast failover, unified policy | Requires low-latency IPN between sites, less DC-to-DC fault isolation |
| ACI Multi-Site | True fault-domain isolation, independent APIC clusters per site, policy orchestrated centrally via Nexus Dashboard Orchestrator | More complex to operate, higher initial design and cost overhead |
| Standalone fabric with VXLAN EVPN + external interconnect | Maximum isolation, vendor-neutral if needed | Loses ACI's centralized policy model between sites; more manual policy reconciliation |
The agent weighs these against stated requirements — RTT between sites, whether independent APIC failure domains are a hard requirement, existing IPN bandwidth — and recommends the best fit, the same way you'd whiteboard it with a customer.
Other Tree of Thoughts ACI use cases:
- Choosing between contract-based (whitelist) vs.
vzAny-based (preferred group) segmentation for a new tenant - Deciding EPG-per-VLAN vs. EPG-per-application microsegmentation strategy
- L3Out design: shared L3Out in common Tenant vs. per-tenant L3Out
- Evaluating Remote Leaf vs. Cloud ACI vs. Multi-Site for a hybrid-cloud expansion
5. Self-Reflection — Catching Mistakes Before They Hit the Fabric
This is arguably the most important pattern for anything that writes to APIC. Self-Reflection means the agent reviews its own output — a proposed contract, a migration plan, a config template — against a checklist before handing it to you.
ACI scenario: An agent drafts a new contract and filter set to allow a application team's new microservice to talk to a database EPG.
Before presenting the contract, it reflects:
- Does this filter scope traffic to only the required ports, or is it accidentally permit-any?
- Is the contract scope set correctly (this VRF only, not Global, unless cross-VRF was actually intended)?
- Does this contract accidentally shadow or conflict with an existing
vzAnyrule? - Does the direction (consumer/provider) match the actual traffic flow, or did roles get reversed?
- Does this change match the customer's segmentation standard (e.g., default-deny between tiers)?
Catching a reversed consumer/provider relationship — a mistake every ACI engineer has made at least once — before it goes to APIC is exactly the kind of check Self-Reflection is built for.
Other Self-Reflection ACI use cases:
- Reviewing an auto-generated Bridge Domain configuration for correct flooding/ARP settings before applying
- Validating a drafted Multi-Site schema template against the target sites' existing object naming conventions
- Auditing a generated compliance report against actual fault/audit logs before it's sent to a customer
- Second-pass review of an AI-suggested firmware upgrade plan for skipped compatibility checks
Which Strategy Fits Your ACI Task?
| ACI Scenario | Recommended Strategy |
|---|---|
| Checking a leaf's health score or fault count | Single-Step ReAct |
| Onboarding a switch or running a known upgrade runbook | Multi-Step ReAct |
| Troubleshooting a Multi-Site latency or contract-drop issue | Plan-and-Execute |
| Choosing Multi-Pod vs. Multi-Site vs. Remote Leaf | Tree of Thoughts |
| Drafting a contract, schema, or migration config for review | Self-Reflection |
Final Thoughts
None of these patterns replace ACI expertise — they formalize it. Single-Step ReAct is how you'd answer a quick Slack question. Multi-Step ReAct is your runbook discipline. Plan-and-Execute is how a senior engineer investigates a messy, multi-cause outage instead of guessing. Tree of Thoughts is the whiteboard session before a design gets signed off. Self-Reflection is the second pair of eyes on a change before it hits production.
As AI agents get closer to actually touching APIC and pushing policy, the strategy behind how they plan matters as much as what they execute. An agent that can show you its plan — and reflect on its own output — is one you can actually let near a production fabric.
FAQ
Q: Which planning strategy should an AI agent use before pushing a config change to APIC? A: Self-Reflection at minimum, and ideally combined with Plan-and-Execute — the agent should draft the change, reflect on it against a checklist (scope, contract direction, filter correctness), and only then present it for approval before anything touches the fabric.
Q: Is Plan-and-Execute overkill for a simple ACI health check? A: Yes. A single health-score lookup only needs Single-Step ReAct. Plan-and-Execute earns its overhead on multi-cause, cross-domain problems like a Multi-Site outage — not routine lookups.
Q: Can Tree of Thoughts be used for troubleshooting, not just design? A: It can, when there are genuinely multiple plausible root causes with different fixes (for example, "is this a contract issue, a BD flooding issue, or an MTU mismatch on the L3Out?") — but for most fault-finding, Plan-and-Execute's linear investigation plan is the better fit.
Related Reading on Networklearner:
- AI Agent Reasoning Loop (ReAct) Explained for Network Engineers
- AI Agent Perception and Context Windows Explained for Network Engineers
- Understanding AI Agents for Network Engineers: LLMs, Prompts, Tokens and Context Explained
- Agentic AI for Network Engineers: What It Actually Means
- Reactive Automation vs Generative AI vs Agentic AI in Networking
- More posts on Networklearner
Need help with Cisco ACI, Nexus, data center networking, or network automation?
I am a CCIE Data Center engineer with 18+ years of enterprise networking experience, working hands-on with production ACI fabrics.
Contact me for consulting, troubleshooting, design reviews, and project support: rockingoa@gmail.com