The Automation Imperative#
To automate or not to automate, that is the question.
Ever since Software-Defined Networking (SDN) and DevOps appeared, engineers have argued about whether network automation is necessary, a luxury, or just overengineering. The answer to that question? It depends. Hyperscalers need it: they started in the early 2010s because they had no choice. Small businesses might not need full automation at all. Most networks sit somewhere in the middle. Many variables (e.g., culture, skills, tool maturity, and business priorities) shape how fast you can adopt automation. Nowadays, all those factors are lining up, and automation is becoming inevitable.
However, an automation strategy requires an accurate design that sets the foundations to evolve (and not only solves the immediate needs): an architectural approach. This mindset could avoid situations like this:
A network team at a small logistics company built their automation platform: Ansible for VLAN provisioning, Border Gateway Protocol (BGP) neighbor configuration, and device hardening. All the artifacts (playbooks and templates) lived in Git, so changes went through a peer review process. The early return was great: configuration deployment went from days to minutes. By every measure they had, they were doing network automation right.
Then, the company acquired a competitor, and the environment changed overnight. New sites, new vendors, new naming conventions conflicting with the existing ones, etc. The first run of the provisioning playbook against the new network environment failed miserably: an edge case. They patched it and re-ran it. It failed on another…
Six weeks after the acquisition, the team was spending more time fixing and maintaining the automation than it would have taken to run the network manually.
As expected, the post-mortem was uncomfortable and exposed the problem. The tools had not failed (Ansible worked as expected). The problem was that the intent was encoded in the code without a clear network model that could adapt to the new environment. In short, data and code lived together. So, when the network changed, every existing assumption in the code broke at once. The team had automated their existing network, but had not built a platform that could adapt to a new network and evolve.
I have seen this pattern many times in automation initiatives that fail to evolve. I do not want you to fail like that. You should not reach a point where the automation built for today’s problem becomes tomorrow’s obstacle. This book will help you with that.
The Perfect Storm#
Automation is not optional anymore. Hyperscalers deal with explosive Artificial Intelligence (AI) growth: hundreds of thousands of Central Processing Units (CPUs) and Graphics Processing Units (GPUs) talking through massive high-speed Ethernet fabrics (with very high operational excellence expectations). Enterprises and service providers juggle legacy infrastructure, new services, cloud/on-prem/edge sprawl, rising costs, and smaller hiring budgets.
Everyone in tech has already moved to API-first, self-service. Developers expect the same from networking: not requesting services via email or long-standing tickets, but getting the same self-service experience. Security and compliance need automated, auditable processes.
The question is not “Should we automate?” anymore. It is “Why haven’t we already?”
Despite clear benefits and motivations, several barriers slowed adoption, and many still apply:
- No intent models: Networks were described by device configs, not “how should the network actually behave?” Without structured and agnostic intent data, automation stays fragile, device-focused, and vendor-specific.
- Messy, inconsistent designs: Automation needs predictability. Networks full of exceptions, ad hoc workarounds, and one-offs are extremely hard to automate. Clean, standardized designs win.
- Vendor sprawl: A mix of vendors, device OSes, and services means constant integration headaches and limited capacity to evolve.
- Wrong skills: Few engineers knew both networking AND software development. That gap made automation hard to design well.
- Fear of change: Networks are critical. Conservative change management made it hard to justify automation.
- No safe test environments: Most teams lack proper labs that match production. Testing automation safely is a complicated endeavor.
These barriers do not operate independently. They reinforce each other: without intent models, automation stays fragile; fragile automation amplifies fear of change; fear of change blocks the investment needed to build the skills and test environments that would reduce fragility. Figure 1.1 shows the cycle.
Good news: by 2026, most of these are dissolving. Companies and vendors are moving forward. The State of Network Automation Survey by Chris Grundemann (Network Automation Forum) shows the shift happening now. Still, there is no single magic formula. Understanding the mindset comes first.
So even when automation is clearly needed, it still needs a structured approach.
How to Approach Network Automation#
This book covers the fundamental architecture concepts you need to implement successful network automation solutions. Do not chase a single tool: no silver bullet exists. Success comes from combining three pillars: People, Process, and Technology (in that order).
Like Maslow’s pyramid, each layer rests on the one below: people first, then process, then technology. Figure 1.2 shows the three.
- People: Automation lives or dies based on the people who design, build, and operate it. Understand their needs, skills, and motivations. Empower them through training and collaboration.
- Process: Organizational alignment matters. Link automation outcomes to measurable value: cost reduction, faster delivery, improved reliability.
- Technology: Tools exist. The challenge is picking the right ones and integrating them within a sound architecture.
Balance these three, and automation stops being a technical project and becomes an organizational capability. Change is iterative. Progress comes one step at a time. You will face the classic buy-versus-build dilemma repeatedly (we tackle it throughout the book), but with the proper understanding, choosing becomes much easier.
That said, every organization follows its own path. Most start with small scripts, then expand to config management, compliance checks, and troubleshooting. Here is a quick overview of the different stages of automation maturity you may find.
What the Reality Looks Like#
There is no single way to do automation, and it is not black or white. In most cases, organizations sit at different levels of automation maturity, from manual operations to autonomous networks.
Figure 1.3 shows the five basic stages you may sit at:
Manual Operations: Every change is a human decision executed by hand over Command Line Interface (CLI). Fast for a single engineer on a familiar device, unreliable at any scale. The network is only as consistent as the person who last touched it. There is no audit trail beyond login records.
Scripted Tasks: Repetitive work gets wrapped in scripts. A script generates configs from a spreadsheet; a loop applies the same change to fifty devices. Fragile at the edges: every variation in device state, vendor behavior, or naming convention requires a new script or a new exception. This is where most teams start, and where many stay.
Workflow Automation: Scripts are replaced by structured playbooks and workflows. Changes are reproducible, auditable, and can be triggered through self-service interfaces. The automation still describes how to configure devices rather than what the network should look like. State reconciliation remains a manual activity. Teams at this stage often describe their automation as working well, until the environment changes.
Intent-Based Systems: The network is described as intent (what you want) instead of configuration (how to achieve it). A Source of Truth holds that intent as structured data. Automation engines translate intent into device state and validate the result. When the environment changes, the intent stays stable and the execution layer adapts. Most of this book is about building this layer well: the seven building blocks of Part 2, from Intent to the Network itself, are the components of an intent-based system.
Autonomous Networks: The system observes its own state, detects deviations from intent, and closes the loop on its own, inside bounds a human sets and with a human still accountable for the result. This requires the intent-based layer to be reliable, well-understood, and operated with discipline. Parts 4 and 5 explore the patterns that enable this: closed-loop automation, self-healing networks, and the organizational conditions that make autonomous operation trustworthy.
Parts 1 through 3 of this book build the architectural foundation for intent-based systems. Parts 4 and 5 address what it takes to step toward autonomous network operation. Most organizations today sit between Scripted Tasks and Workflow Automation. To climb this ladder, you have to do it on top of a solid foundation, so no step requires a complete rebuild.
When the scale grows, the goal stays the same, but the architecture has to adapt. Automation designed for 50 devices exposes its shortcuts at 500. Playbooks that embed implicit naming assumptions fail when the network grows beyond one team’s working knowledge. Part 3 examines what breaks when a network automation platform moves from dozens of devices to thousands, and how to design for it from the start.
Figure 1.4 shows why. The curves and numbers are illustrative.
Scripts are the cheapest way to start, and on a small network they beat a Network Automation Platform (NAP). Each new vendor, site, and naming exception adds a branch to them, so their cost curves upward. A NAP built on intent costs more on day one, then grows slowly, because a new site means new data and no new code. The logistics company from the opening story doubled overnight and jumped past both crossings at once: its scripts became more expensive than doing the work by hand.
A hidden benefit of network automation is that it motivates you to simplify your network architecture as much as possible to facilitate automation. Complexity that was tolerable when managed manually becomes an active obstacle when automation must reason about every exception.
More autonomy is a long-term goal, but it does not remove the human at the end of the chain. Automation amplifies expertise and allows engineers to focus on design and problem-solving. The real wins are consistency, reliability, and speed. In addition, automation enables things impossible to do manually at scale: real-time validation, instant compliance checks, and coordinated changes across hundreds of sites simultaneously.
Here are a few examples of what automation could look like across different environments (spoiler: I have built all of them):
Hyperscalers
- Take a design and expand it into all the data needed for network intent: racks, devices, cables, IP addresses, overlay networks. Use that to generate the Bill of Materials (BOM) and bootstrap configs served via Zero Touch Provisioning (ZTP) when devices connect.
- Correlate observability data (e.g., metrics, logs, and flows) into real-time events enriched with context. Trigger workflows that mitigate user problems: draining connections while keeping capacity within the Service Level Agreement (SLA).
Service Providers
- Full-mesh testing of internet links across transit providers. Keep packet loss and latency within tolerance. Detect issues, drain traffic from suspect links. Bring them back when fixed.
- Watch for circuit maintenance notifications from providers (e.g., email or webhooks). Convert to structured data. Mute alerts or proactively react to minimize impact.
Enterprises
- Self-service portal where users define security policies. Convert them to firewall rules following enforcement policy. Enable a rule lifecycle that cleans up unused rules.
- Device refresh and lifecycle management. Detect End of Life (EOL) devices, flag software vulnerabilities, automate upgrades, and facilitate platform migrations.
The key: identify which processes are most time-consuming, error-prone, or critical. Understand how they support your business. Then evolve them into more efficient, automated versions.
These solutions can be simple or complex, but they share common patterns. This book analyzes those patterns and ends with sophisticated real-world use cases in Part 5.
However, even with good intentions, things go wrong. Here are common pitfalls to watch for.
Common Pitfalls to Avoid#
You will discover many pitfalls throughout this book because I have experienced them firsthand. Here are a few to keep top of mind:
- Trying to automate everything at once: Start small, but pick the high-impact and low-risk use cases to build confidence and expertise.
- Embedding intent inside tools: When naming conventions, IP allocation strategies, and vendor behavior assumptions live inside playbooks and scripts, it is hard to automate because no clear reference exists. When the environment changes, every embedded assumption breaks at once. Intent deserves its own place so other components can use it.
- Underestimating data quality: Automation is only as good as its data. Invest in accuracy and consistency early: data keeps growing, and so does the mess if quality is not enforced.
- Building without testing: Test and validate before deploying to production. It does not need to be 100% accurate (it cannot be), but covering many potential issues before targeting production increases the trustworthiness of the system.
- Automating the current network instead of designing for change: Automation built around the current topology, vendors, and naming conventions works until something changes. Before building any automation component, ask not “does this work now?” but “does this still work when the environment changes?” Encoding the present network in automation creates technical debt that compounds every time the business evolves.
- Building for the engineers who built it, not for the people who use it: An automation platform designed only for the team that built it is destined to fail. Focus on the usability part of it: the application team submitting a service request, the operator approving a change gate, the auditor reviewing a compliance report. Each has different needs, different vocabulary, and different expectations. Keeping those users in mind from the start shapes every architectural decision: how the Application Programming Interface (API) is structured, how errors are surfaced, how status is communicated. Automation that engineers understand but consumers cannot use will be bypassed.
Finally, let your work speak for itself. Define and track measurements that objectively show the benefits of network automation and how they impact the business.
Measuring Automation Success#
Focus on two groups: technical metrics and business metrics. Both matter to leadership and to your team.
Technical Metrics:
- Mean Time to Recovery (MTTR): How quickly can you detect, diagnose, and resolve network issues?
- Change Success Rate: What percentage of network changes are deployed without causing incidents?
- Configuration Drift: How often, and how far, do running configurations diverge from intent?
- Deployment Velocity: How quickly can you implement new services or configuration changes?
Business Metrics:
- Service Availability: Are automation-managed services more reliable than manually managed ones?
- Engineering Productivity: Are teams spending more time on strategic work than on operational tasks?
- Compliance Posture: How quickly can you validate and remediate compliance violations?
- Resource Utilization: Are you making better use of network capacity and performance?
Track these metrics regularly. They justify continued investment and show where to improve. Chapter 12 turns the technical ones into service levels for the automation itself, Chapter 14 adds the adoption metrics that show whether people use it, and Chapter 15 connects them to business value.
Summary#
Network automation is here to stay: the scale and heterogeneity of modern networks, the level of operational excellence expected (including self-service), and the increase in manual costs leave no other option. Acknowledging this, organizations have to tackle the transition by considering the three pillars (People, Process, Technology) and setting a strategy that can evolve.
Evolution is a key aspect. Nothing is perfect on day one, but a plan is necessary to grow in a sustainable way while delivering wins that support the process. In this book, I will share with you what the plan could look like based on my experience, explaining why you have to drop the hero culture and adopt a collaborative approach around a shared intent mentality that promotes shared responsibility and enables scalable automation.
Along this path, you will find many tools (the industry is much more mature now than ten years ago), but you still own the responsibility to define how they work together, and to promote an evolution in maturity, from basic scripts to autonomous networks leveraging agentic models.
But this is not a black-and-white question. Every organization has different needs and use cases. Choose your battles, solve real problems, and start celebrating progress along the way.
The next stop is the basic design principles that will stay at the top of your mind throughout the book. Chapter 2 introduces them and explains what problems they solve.
References#
- Network Programmability and Automation, 2nd Edition, Matt Oswalt, Christian Adell, Scott S. Lowe, and Jason Edelman (O’Reilly, 2023). The comprehensive practical guide to the tooling and skills this book builds an architecture around.
- The Phoenix Project, Gene Kim, Kevin Behr, and George Spafford (IT Revolution, 2013). A narrative account of the cost of manual, unmanaged operations and the case for treating delivery as a system; the organizational forces behind the “perfect storm” in the Perfect Storm section.
- The DevOps Handbook, Gene Kim, Patrick Debois, John Willis, and Jez Humble (IT Revolution, 2016). The practical patterns for flow, feedback, and continuous learning that underpin the People, Process, Technology dependency chain in the How to Approach Network Automation section.
- Accelerate: The Science of Lean Software and DevOps, Nicole Forsgren, Jez Humble, and Gene Kim (IT Revolution, 2018). The empirical research behind measuring delivery performance; the foundation for the automation success metrics in the Measuring Automation Success section.
💬 Found something to improve? Send feedback for this chapter