Jul 16, 2026 · 14535 words · 69 min read

Platform Engineering: Building the Network Automation Platform#

A network engineer just received a request to create a new firewall rule. A new service had to reach the internal authentication endpoint on TCP 636. The rule design took ten minutes, but getting it deployed, nine days.

There was automation in place: a Source of Truth defined the firewall policy, an Orchestrator had a deployment workflow ready, and the Observability stack verified the outcome of the operation. However, the network team did not have a clear way to get in.

The engineer opened a ticket in the IT service management (ITSM) tool, and then a separate request for change approval in another system. Then, she ran the pre-check script on her laptop and updated the ticket accordingly. Finally, the change reviewer (in another time zone) noticed that the output was wrong because the script had been updated, so she had to run it again. You see, the change took six days just to get approved, and then it had to wait for the next maintenance window on Saturday at 02:00, three days later.

On Saturday, during the maintenance window, the high-availability (HA) firewall pair failed the config sync process, so the deployment workflow had to change one device at a time. First, it updated the primary unit, and when the job for the second one was ready to start, the Orchestrator stopped because the virtual machine where it was running ran out of disk (the collector on the same machine had been retrieving all the debug logs for a week). The result was a secondary firewall without the rule, but no one was alerted because the alerting was running on the same problematic VM.

Lastly, on the Tuesday after the change, an unrelated firewall firmware update failed, traffic shifted to the secondary box, and the new service lost access to the authentication endpoint. It took almost one hour until someone found the missing rule by comparing both configurations, and also noticed that the Orchestrator was down. To make it worse, when trying to recover it, the team found that the only engineer who knew how to build and operate the VM was no longer at the company, and he had not left any documentation or code in a repository describing how to do it. Recovering the VM took four days, and during that time, the team ran all changes manually.

This may sound familiar to you. I have seen many scenarios like that. Everything was there for a good reason: the ticket, the review, and the maintenance window. The story contains two basic failures: the lack of a cohesive Network Automation Platform (the building blocks existed, but they were not glued together), and the flaky runtime environment, without an Internal Developer Platform behind it. They deserve different approaches, but they have to be addressed together to build a capable network automation solution.

This chapter tackles both, the contract between them, and their differences. You need the two platforms to build your network automation strategy, each one solving different problems and having different expectations.

Two Platforms, One Stack#

The word “platform” carries too many meanings in network automation, and this chapter cannot work until we separate them. This section names the two platforms, defines each one, and states what each promises the layer above it.

Read any automation design document and you meet “platform” in three senses. “The platform team upgraded the runners” means shared software infrastructure. “The platform rejected my change” means the network automation system. “The platform field says EOS” means a device operating system. Each is correct in context. Mixing them causes real mistakes: a network team asks the infrastructure team for “a platform” and receives CI runners, with no idea how to deploy a network change on them.

From here on, the book uses three distinct terms:

  • Internal Developer Platform (IDP): the shared base that builds, deploys, and runs any software.
  • Network Automation Platform (NAP): the Part 2 building blocks, deployed and wired into one product that operates the network.
  • Device OS or cloud service: the network operating system a device runs, or the cloud network service the NAP configures. Part 2 sometimes called either one a platform.

The bare word “platform” survives only inside established names, such as platform engineering or the Platform Contract pattern. Figure 11.1 shows how the three layers stack.

Two platforms, one stack

Figure 11.1: Two platforms, one stack.

The Internal Developer Platform

An IDP is the shared base one team builds so that other teams can ship and run software without building the plumbing themselves. It bundles source hosting, CI runners, an artifact registry, a secrets store, a compute runtime, telemetry for running software, and single sign-on. Many add a self-service portal on top. A product team at a company that develops software (most of them) does not build its own CI system or container cluster. It ships its service onto the IDP, and the team that owns the IDP keeps the base working as dozens of teams grow on it.

The industry sometimes uses “IDP” for the portal alone. This book uses the broader meaning: everything a team needs to build, deploy, and run software it did not have to host.

Assume another team owns the IDP. This book calls it the developer productivity team, as Chapter 3 did; your organization may call it platform engineering, cloud engineering, or developer experience. Most organizations of the size this book targets already have one, running the IDP for application developers. The network automation team is one more tenant. That is this chapter’s point of view: you consume the IDP, you negotiate with its owners, and you do not rebuild it.

The Network Automation Platform

The NAP is what Part 2 designed, put into service. The Source of Truth, the Executor, the Collector, Observability, the Orchestrator, and the Presentation layer, grounded in the Network block, are deployed and wired together. A network engineer can submit a change and follow it to production without knowing how each block works. The network automation team owns it.

The NAP is software, so it runs on the IDP. But it is not just one more application. It reaches into the management network, holds credentials to every device, runs rollouts that last hours, and needs a lab of emulated devices to test against. Those needs shape what you ask of the IDP, as the What to Expect From the IDP section shows.

The Contracts Between Layers#

Each layer exists to make a promise to the layer above it, and the two promises share a verb. The IDP deploys software. The NAP deploys network changes.

The IDP promises the network automation team that its code builds the same way every time, its components run on a reproducible runtime, its artifacts are versioned and retrievable, and its jobs receive short-lived credentials. The NAP promises network engineers that their change is validated, rolled out safely, observed, and recorded, through a path they can use on their own.

Two consequences follow, and the rest of the chapter depends on them.

  • “Deployment” has two meanings. Deploying a new Orchestrator version is a software deployment on the IDP. Deploying a firewall rule is a network change through the NAP. They have different mechanics and different blast radius. The Deploying the NAP on the IDP section covers the first, and One Network Change, End-to-End covers the second.
  • A failure in a lower layer surfaces in every layer above it. The opening story’s orchestrator crash was an IDP-shaped failure, with no reproducible runtime, that surfaced as a network failure: a half-changed firewall pair. Different teams own the layers, but a failure in one still reaches the others.

Those are the two layers when both exist. Few teams have both from the start, and which one is missing decides what to build next. Next, I show you the four combinations.

Four Ways to Run Network Automation#

Chapter 1 placed teams on a maturity spectrum by how far their automation goes, from scripted tasks to autonomous networks. This section adds the second axis: what that automation runs on. The two move together. Scripted tasks usually live in the first cell below, workflow automation tends to stall in one of the two half-steps, and intent-based systems need the target cell underneath them.

Teams reach the target, an IDP with a NAP on top, through a recognizable arc, and where they stand on it decides what they build next. Figure 11.2 places the four combinations on a grid: with or without an IDP underneath, with or without a NAP on top.

Four ways to run network automation

Figure 11.2: Four ways to run network automation.

We take the four cells in the order teams usually move through them.

Neither IDP nor NAP: Scripts A network engineer writes a script to provision VLANs. It works. A second engineer writes one for firewall rules, a third for Border Gateway Protocol (BGP) peers. The scripts accumulate and start to contradict each other, because each assumes something different about the state of the network. One was written for Python 3.8 and fails silently on 3.11. Another embeds a credential that expired last spring. A new engineer cannot tell which script is canonical, or whether any of them was tested this year.

Nothing here is shared, so nothing is reproducible. The code lives on laptops and runs wherever someone happens to run it.

An IDP Without a NAP: Pipelines as Islands The usual next step is to move the scripts into the company’s CI/CD system, which the IDP already provides. Changes go through a pipeline. Tests run automatically. The scripts become more reliable because they run consistently, on a runner instead of a laptop.

But the pipeline only runs the scripts; it does not organize them. Each workflow is an island, with its own intake, its own validation, and its own idea of the network. Nothing connects the VLAN pipeline to the Source of Truth the firewall pipeline reads, and every pipeline repeats the same checks slightly differently. In my experience, most teams that call themselves automated stand here today. The opening story’s nine days came from this cell: plenty of tooling, no single path.

A NAP Without an IDP: The Accidental Infrastructure Team The other half-step is rarer and more dangerous. A capable automation team builds the Part 2 blocks properly: a modeled Source of Truth, an orchestrator with durable workflows, a collector stack. With no IDP to run them on, the team hosts them itself, on virtual machines built by hand, configured interactively, and backed up when someone remembers.

The NAP works until the infrastructure under it does not. Every VM is a snowflake: upgrades wait because nobody knows what else lives on the host. Credentials sit in environment files because there is no secrets store. Within two years the team spends more time patching hosts than improving workflows. It has become an infrastructure team by accident, without the skills, the on-call rotation, or the mandate of one. The opening story’s four-day rebuild is this cell on its worst day: restoring the orchestrator took manual research rather than automation.

Both: The Target, and Retiring What Came Before In the fourth cell, the network automation team builds and runs the NAP, and the NAP runs on an IDP that someone else keeps healthy. The automation team spends its time on network problems. The developer productivity team spends its time on runtime, registry, and runner problems, for every tenant at once.

Moving between cells adds layers; it does not throw earlier work away. A team in the target cell still has scripts, now as versioned, tested artifacts inside the NAP. A team that reaches the governed system of Chapter 13 still has its NAP; governance adds control layers on top.

Do not forget that reaching the target requires an explicit plan to retire what came before. Scripts and island pipelines running beside the NAP create confusion about which path is authoritative, and they split the team’s attention. The move is complete when the old paths are switched off (not when the NAP is built). The Migration Strategies section covers how to get there without a big-bang cutover.

The rest of this chapter assumes the target cell. Chapter 12 asks what happens when the NAP runs at scale, and Chapter 13 asks how it proves it can be trusted.

The opening story’s team had both half-steps’ problems at once: blocks never wired into one path, running on hosts nobody could rebuild. The target cell has two layers with two owners. The next two sections take them from the bottom up: first what the network automation team should expect from an IDP it does not own, then what it must build into the NAP.

What to Expect From the IDP#

As a network automation engineer, you are a tenant of the IDP, not its builder. Your job is to know what to expect, to recognize the gaps that network automation exposes, and to ask for them early. Table 11.1 summarizes the contract.

CapabilityWhat you should getWhat the NAP needs on top
Source hostingRepositories, reviews, branch protection, webhooksMerges to an intent repository that can call the Orchestrator
CI runnersJobs started by commits, API calls, or timersRunners that reach the lab, to test templates and workflow definitions
Artifact registryVersioned images and packages with promotionRendered configurations and device snapshots, with provenance and retention
Secrets and identityShort-lived credentials per job, single sign-onDevice credentials scoped per run and per site
Compute runtimeReproducible hosting for servicesStateful services, workflows that wait for hours, and workers that reach the management network
ObservabilityLogs, metrics, and traces for running softwareAlerts that still reach you when the NAP’s own collectors fail
Lab capacityNon-production environmentsCompute to start emulated device topologies on demand
Table 11.1: The IDP contract.

The subsections take each row in order. Each one closes with the question to put to the developer productivity team.

Source Hosting and Version Control#

You should get repositories with review, branch protection, and a record of who merged what. Everything that governs the NAP lives there: workflow definitions, templates, gate definitions, and the infrastructure code that deploys the NAP’s components. The Version Control System (VCS) state is the record of what the NAP should do, and if there is a divergence, it is a bug.

There are two types of repositories, side by side, each one with different governance. One holds network intent: the data files and schemas the Source of Truth uses, under the data discipline of Chapter 4. The other holds the NAP’s own code: workflow definitions, the Executor’s adapters with their templates, pipeline definitions, and deployment manifests. Keep them structurally separate. Both are software in one sense: a change to a template or a workflow definition triggers an IDP pipeline that tests it, and nothing in that pipeline touches the production network.

Network changes are a different matter: they run as change workflows in the NAP’s Orchestrator, not in IDP pipelines. That holds whether intent sits in a relational Source of Truth or in an intent repository, the GitOps variation; the Reduce Friction with a Golden Path section compares the two. Either way, the change meets the same gates. If not, the entry point becomes a side door around all of them.

Ask: can a merge to our intent repository call the Orchestrator’s Application Programming Interface (API)?

CI Runners#

A pipeline runner is a scheduler that executes pipeline stages on demand, triggered by a commit, an API call, or a timer. You should get pools of them, sized and patched by someone else. The NAP uses runners for its own software: building and testing its components, and testing templates and workflow definitions before they are released. In the GitOps variation, runners may also run the data checks a commit to the intent repository triggers.

Network changes do not run here. The Orchestrator’s workers run them, on the compute runtime, and those workers are what need to reach into the device management network. The runners’ gap is narrower: shared runners usually sit in an application network that cannot see your lab, and testing a template against emulated devices needs it.

Some teams skip that separation and run their change workflows on CI runners, using the CI system as the Orchestrator. That is a valid implementation: one tool hosting the Orchestrator block. The runners then need the management network reach this section reserves for workers, and the CI system has to provide what Chapter 8 asks of an Orchestrator: durable state for runs that last hours, approval gates, and per-device results. Check the job time limit first; the Intake section shows where it breaks.

Ask: can we have a runner pool that reaches our lab, built from the same images and patched on the same schedule as the shared pools?

Artifact and Container Registry#

An artifact store is a versioned repository for the outputs that pipeline stages produce and promote. You should get one for container images and software packages, with immutable versions and a promotion state for each (built, tested, released). It answers the question every incident asks: what is running in production, and when was it validated?

The NAP stores two more kinds of artifact there: rendered device configurations and pre-change device snapshots. Both need provenance (which run produced them, from which inputs) and retention long enough for rollback and audit. Many registries handle images well and arbitrary files poorly, so check before you build on one. The Promotion and the Maintenance Window section shows why the artifact store carries so much weight in a network change.

Version everything you publish with Semantic Versioning: a patch for a backward-compatible fix, a minor for new backward-compatible behavior, a major for anything consumers must adapt to.

Ask: can we store non-image artifacts with our own metadata and a retention policy we control?

Secrets and Identity#

A secrets management system stores credentials and issues short-lived ones on demand. You should get one, along with workload identity: each job proves who it is when it starts and receives credentials scoped to that run. You should also get single sign-on, so engineers reach the NAP with the identity they use everywhere else.

What the NAP adds is narrower scope. A credential for a VLAN deployment to Building B should not work on any other site, and it should expire when the run ends. Static credentials in pipeline files are the most common security failure in network automation, because one leaked key reaches the whole fleet. Scan for them in CI: gitleaks and TruffleHog both search the full commit history. Chapter 13 defines the model in its Workload Identity and Secrets Management and Lifecycle sections.

If per-run credentials are not available yet, the floor is to move every long-lived credential out of pipeline files and into the secrets store. There it is centrally controlled, access-audited, and rotatable from one place.

Ask: can our jobs receive device credentials scoped to one site, with a lifetime that matches the run?

Compute Runtime#

You should get a reproducible place to run services: a container platform or managed virtual machines, deployed from code, restarted when they fail, rebuilt from scratch when needed. This is the row the opening story was missing.

A container orchestrator (e.g., Kubernetes or a managed equivalent) gives you more than a place to run. Three of its features map directly onto NAP needs:

  • Autoscaling adds workers when the job queue grows, for example when a maintenance window releases 200 changes at once, and removes them afterwards.
  • Rollout strategies replace a component a few copies (replicas) at a time and stop if health checks fail. The Deploying the NAP on the IDP section builds on them.
  • Anti-affinity places replicas of the same component on different hosts or zones, so one hardware failure cannot take down the Orchestrator and its standby together.

You declare these features in a manifest, the configuration file that describes how a component runs; you do not build them. That is the strongest argument for running the NAP on the IDP’s runtime.

The NAP strains a runtime in two ways. Some of its components hold state, such as the Source of Truth database and the Orchestrator’s workflow state, and they must survive a node failure without losing a run in progress. Some of its jobs are long: a rollout that runs through a whole window, or ten waves over several nights, lasts hours or days. A runtime tuned for stateless web services with five-minute job timeouts will kill both.

The Orchestrator’s workers add one more need. They are the part of the NAP that logs into devices, so they must run in an isolated pool that reaches the device management network, shared with no other tenant.

Ask: what do you offer for stateful services, what is the longest job you will let run, and can we have an isolated worker pool in our management network segment?

Observability for Running Software#

You should get logs, metrics, and traces for the software you run, collected and stored without operating the stack yourself. The NAP’s components use it like any tenant: Orchestrator queue depth, runner job duration, API error rates.

Keep it separate from network telemetry. The Observability block of Chapter 7 watches the network; the IDP’s observability stack watches the NAP. Chapter 7’s Observability of the Automation System section already lists what to watch, including jobs that succeed without changing anything. It also recommends a separate, minimal stack for those signals. The IDP’s observability stack is the natural home for it, because it runs outside the NAP. If the NAP’s alerts depend on the NAP’s own collectors, an outage blinds you to itself, as the opening story’s silent crash showed. Chapter 12 defines the metrics to send there.

Ask: will NAP alerts still reach us if the NAP’s own observability stack is down?

Lab and Emulation Capacity#

No IDP ships a network lab. It can still host one. The simulation gate of Chapter 10 needs emulated topologies on demand: dozens of network OS containers or virtual machines, wired to match a slice of production. A change workflow, or a pipeline that tests a template, starts them and tears them down afterwards. An emulation tool such as containerlab runs those nodes as ordinary workloads, on the compute runtime or on a runner. So you are asking for capacity, not for a lab product.

Two details decide whether the IDP’s compute fits. Network OS images come with vendor licenses that the developer productivity team will not manage for you. And some images need nested virtualization, or more memory per node than a standard worker offers.

Ask: can we schedule lab topologies on your runtime, or do we need dedicated hosts?

When There Is No IDP

Sometimes nobody else runs one. The contract in Table 11.1 does not go away; you become its owner, and you are in the third cell of Figure 11.2. Keep that cell as small as you can. Build the rows in the order the NAP needs them: repository and runners, then registry and secrets, then runtime. Describe every host in code from the first day, and treat the arrangement as temporary while you make the case for an IDP. The goal is narrower than becoming the developer productivity team: make sure a full disk never costs you four days again.

The short summary is to rely on someone else when possible, and if not, to build something small. The next section moves up one layer, to what the network automation team builds on top of it and owes its own users.

What the NAP Provides#

The NAP turns the Part 2 blocks into something a team can use. This section looks at it from the user’s side. It starts with the stance behind every design choice: treat the NAP as a product. Then it covers the doors engineers use to reach the NAP, the golden path behind those doors, how to measure whether the path works, and the contract that lets the NAP change without breaking its users. The two sections after it cover the mechanics.

The Platform as Product for Engineers pattern applies to the NAP the product thinking that Chapter 15 applies to every network service. The team that owns a platform treats it as a product, its users as customers, and cognitive load, self-service, and feedback speed as its service levels. For the NAP, the customers are network engineers, operators, site reliability engineers (SREs), and automation developers. The product is the path from a change request to a verified network change.

The pattern changes the question from “Is the NAP running?” into a set of product questions: Are engineers adopting it? Does it remove friction or add it? When a change fails, can the engineer act on the error without asking us? How long does a new engineer take to ship a first change? If an engineer gives up and returns to a manual process, that is a product failure, not a user failure.

Apply the pattern as soon as anyone outside the building team depends on the NAP. It also runs one layer down: the developer productivity team applies it to you, and the questions in What to Expect From the IDP are how you hold it to that. Chapter 15 adds what surrounds the product: service contracts, internal Service Level Agreements (SLAs), and a roadmap.

A product starts where its users meet it, so the first question is how engineers reach the NAP.

Multiple Entry Points#

Engineers reach the NAP through different doors. One developing a workflow wants a Command Line Interface (CLI) with instant feedback. One watching a long rollout wants a dashboard. A ticketing system wants an API that submits changes and receives status without a human in the loop. An Artificial Intelligence (AI) agent wants the same operations through the Model Context Protocol (MCP).

Chapter 9 designed these surfaces as the Presentation layer. This chapter adds one new rule: every surface calls the same API. The other functions (validation, artifacts, and deployment logic) live behind it. A CLI that runs its own checks drifts from the web form the first time one of them changes.

Behind that external API sits a second, internal one: how the Orchestrator hands tasks to workers, how workers report back, how the artifact store announces a new artifact. It can change faster than the external API, but it still needs explicit schemas and versions, because the NAP’s components are deployed independently.

Whatever door a request uses, it then crosses the same path behind the API, and the NAP should make that crossing easy. What matters is how many steps, and how many people, it passes on the way.

Reduce Friction with a Golden Path#

Easy things should be easy, and hard things should be possible.

Larry Wall

The opening story’s nine days were not nine days of work. The total human time was a few hours, spread across five people. The calendar time came from handoffs: each one waited for the next person to notice the queue, find the context, and act.

Shortening that time is a workflow design problem more than a tooling problem. Every human handoff adds calendar time and loses context. The NAP should perform the handoffs itself: intake, validation, gate, notification, deployment. The engineer’s interface should be simple enough to use correctly on the first attempt. Figure 11.3 sets the path the NAP should offer against the way around it.

Two routes from a request to a network change: the golden path, wide, direct, and recorded, and the way around it, narrow, slow, and unrecorded; each detour improves the path

Figure 11.3: The golden path and the way around it.

The fix is a golden path: a well-lit, tested, documented route through the most common workflows. An engineer submitting a standard firewall rule follows it and never needs help. An engineer with a legitimate reason to leave it, such as an unusual dependency or a custom validation step, can do so without dismantling the NAP. The team tracks each deviation as feedback. That is Larry Wall’s rule applied: the standard request is easy, and the unusual one stays possible.

In my experience, a golden path that covers fewer than 80% of the team’s actual change requests is not a golden path yet. Below that line, more changes live outside the path than inside, and maintaining the path costs more than the consistency it buys. Measure the coverage. If it is low, the gap tells you what the path is missing; it is not evidence that engineers are non-compliant.

The golden path is a recommendation. Enforcement is a different tool, covered in Chapter 13. The aim here is a path attractive enough that engineers choose it.

The golden path encodes what the team has learned: the lessons from failed deployments, and the conventions that make someone else’s workflow readable. Which of those conventions deserve enforcement? Spend enforcement where it buys safety, not uniformity. A naming convention for workflow stages makes the NAP tidier and prevents nothing. A rule that every production change passes its gates prevents a whole class of incidents.

The golden path also changes what needs approval. Chapter 15 introduces the Pre-Approved Automation Pattern in its Service Levels for Network Services section: approval applies once to the workflow design, not to every run. A workflow on the golden path is such a design. Its gates were reviewed when it was onboarded, so a request that stays inside them is a service call. The review board does not see it as a new change.

But a path only helps if engineers can get onto it. Two roles from the access model of Chapter 9 meet it: the engineer, who writes and manages workflows, and the operator, who requests runs of them. They are roles, not job titles: the same person often holds both, and each organization draws the line between them differently. The first workflow is the highest-friction moment for a new engineer. Without help, an engineer learns undocumented conventions by trial, or writes code that fails at CI time. How do you ease that onboarding? With a scaffold: a reference skeleton that encodes the team’s conventions, so the engineer starts from something that already works. An engineer who copies the scaffold follows the golden path by default.

Listing 11.1 shows a VLAN workflow scaffold for the campus example.

workflow-vlan-add/
├── workflow.yaml            # declares the adapter versions it needs
├── inputs/
│   └── change.yaml          # sample request, used by tests
└── tests/
    └── test_vlan_render.py  # renders the sample through each adapter, in CI
Listing 11.1: The file structure of a VLAN workflow scaffold.

The scaffold carries no templates. The templates that turn a VLAN into each platform’s syntax live in the Executor’s adapters (Chapter 6), shared by every workflow that touches VLANs and released with the adapter. When the network automation team fixes one, every workflow picks up the fix with the next adapter release, where a template copied into each workflow would drift from the original within months. A workflow that needs syntax no adapter renders yet asks for a new adapter version instead of carrying its own template.

The workflow.yaml file declares what the workflow is and how the NAP must treat it; the Before the Request section shows a complete one. Requesting a run needs none of this. The operator fills in a short input file, or the same fields in a form, and submits it:

$ nap submit --workflow vlan-add --input change.yaml
job-20260315-0042
  sot_integrity_check   passed   1.2s
  schema_validation     passed   0.4s
  render_tests          passed   2.3s
  simulation            skipped  no template change
Track: https://nap.example.net/changes/job-20260315-0042
Listing 11.2: Requesting a run of the VLAN workflow.

The operator has a job identifier and three results in under 5 seconds, before switching context, and a link to follow the deployment. Had the Source of Truth (SoT) integrity check failed, the message would name the missing record: not “validation failed” but “device sw-b-acc-01: not found in SoT, register it before resubmitting”. The operator can fix that alone.

Where does the submitted change live? Separate the workflow from the request. The workflow (the scaffold’s workflow.yaml and tests) is code: it lives in a Git repository and reaches the NAP as a released version. The request (change.yaml) is one run of that workflow, and where it lands depends on whether it changes network intent:

  • Intent kept in files. nap submit opens a pull request to an intent repository, and Git keeps the history and the review. This works while the data model is small enough to live in files.
  • Intent kept in a relational Source of Truth. The NAP writes the intent as a proposed change, and the Source of Truth keeps the history. This is the default for a relational model, and the Intake section follows it.
  • No intent change. A request that only runs an operation, such as bouncing a port or collecting diagnostics, must not touch the Source of Truth. The Presentation layer records it, for tracking, and the Orchestrator stores its input with the run in its own database.

Never take the third path for a configuration change. A change recorded only in the Orchestrator leaves the network different from its intent, with no record of why.

Whichever path a request takes, the Orchestrator keeps the run record (the job identifier and every gate result) and links to the intent, and the artifact store keeps the rendered output. In the campus example, nap submit writes the VLAN to the Source of Truth as a proposed change, and job-20260315-0042 is the Orchestrator’s record of the run.

A scaffold and a fast first answer make the path easy to start. Whether engineers stay on it is something to measure.

Measuring Adoption and Cognitive Load#

A golden path that engineers do not use is useless, and the team needs numbers to know whether people adopt it. Adoption is the lagging signal: the share of changes that go through the NAP, which the 80% coverage line above already measures. Cognitive load is the leading signal: it rises before adoption falls. Figure 11.4 draws the boundary those numbers measure: the engineer sees three steps, and the NAP hides the rest.

What the engineer sees and what the NAP does

Figure 11.4: What the engineer sees and what the NAP does.

Four questions turn that boundary into metrics:

  • How many steps does a new operator need to submit a first request?
  • How many systems do they log into?
  • How long after submission do they get a pass or a fail? This is the time-to-feedback metric of the NAP Health Metrics section.
  • When a check fails, can they act on the message without asking the network automation team?

One calibration point helps. A new engineer who still needs help after a full working day is hitting structural friction, not a learning curve. Measure against your own baseline from before the NAP.

Metrics show whether the NAP works for its users today, but not how to keep it working while the NAP itself changes.

The Platform Contract Pattern#

As more teams depend on the NAP, its owners face a new problem: how to change it without breaking the people who rely on it. An engineer who built an integration against the submit API, and finds it broken six months later without warning, has had a service failure, whatever the reasons for the change.

The Platform Contract pattern: the owner of a platform makes an explicit, versioned commitment to what it provides, how it behaves, and how it changes. The contract has three parts: a versioned API with documented semantics, a deprecation policy that announces breaking changes with a migration path, and a date after which a deprecated version stops working. It reads like a changelog entry:

POST /v1/changes is deprecated from 1 March in favor of /v2/changes, which adds the required site field. v1 keeps working until 1 September. Workflows on scaffold 1.x keep rendering; run nap scaffold upgrade to move to 2.0.

The contract lives at the one API every entry point calls, from the Multiple Entry Points section, and Chapter 9, in its Versioning and Stability section, covers the mechanics. Workflow definitions and scaffolds are part of the contract too, versioned in their own repositories, but consumers meet them through that API.

Apply it from the first consumer outside the team. In this chapter the pattern runs in both directions: the NAP owes it to network engineers, and the IDP owes it to the NAP, for runner images, registry APIs, and runtime versions. Chapter 15 places it inside the full product lifecycle.

Workflow definitions need two answers before their first version change. First, what counts as breaking. Adding a required field is breaking, and so is removing any field or changing what an existing field means, even when the schema itself is unchanged. Adding an optional field with a default is not. Second, what happens to a run that started on version 1.2 when 1.3 is released. Let it finish on the version that started it, and retire 1.2 only when no run still uses it. If a run cannot finish on its version, the NAP must offer a migration path for it; the simplest option is to schedule the cutover when no run is active.

The contract is what the NAP promises about change. Keeping it depends on how the network automation team ships those changes, which is the next topic.

Deploying the NAP on the IDP#

The NAP is software and the IDP deploys software. This section covers that first kind of deployment: how the NAP’s own components reach production. It starts with the foundation, code and GitOps, then testing. Next come the three release techniques for components that cannot simply be restarted. It ends with what happens when the IDP itself fails.

Describe every NAP component in Infrastructure as Code (IaC): the Source of Truth application and its database, the Orchestrator, the workers, the collectors, the runner configuration. An orchestrator built by hand and configured interactively can only be restored by whoever built it. The opening story shows the price: four days.

Treat pipeline definitions the same way. The stages, the gates, and the approval logic are code. They go through review, and every change to them is visible, reversible, and tested. Automation teams routinely automate everything except their own infrastructure.

Pin external dependencies: Ansible collections, Python packages, container base images, schema definitions. An unpinned dependency makes the NAP behave differently depending on the day it runs. Update dependencies through the same review as any other change. Chapter 13 covers the supply chain side.

GitOps makes the repository the authoritative record of what should be deployed, and corrects any divergence automatically. Tools such as Argo CD and Flux reconcile a container platform against a repository continuously. Git-backed job runners approximate the model by running from a versioned source on each qualifying commit. GitOps is a good default for every NAP component from the first day. Every runner configuration traces to a commit. Every policy update has a review record. Rolling back a bad NAP release means reverting a commit, not reconstructing a host. For this class of artifact, GitOps gives strong guarantees at low cost.

Network devices are a different case. The NAP changes them only through reviewed requests, and when a device diverges from intent it raises an alert rather than correcting it. Automatic correction of the network is a separate decision, covered by the closed loop of Chapter 16.

Testing NAP Software#

NAP components are software, and they get software tests. These run in CI on IDP runners and need no network devices:

  • Unit tests cover the smallest pieces: a function in a shared library, or a validation rule that must flag the invalid case and pass the valid one. They are fast and have no dependencies. A test that takes ten seconds and needs a database is a slow integration test.
  • Integration tests check that components work together: the Orchestrator enqueues a task the workers accept, the adapter reads what the Source of Truth returns. They run against test instances of each block, never production.
  • Compatibility tests run the existing workflow definitions against the new component version. They catch the release that passes its own tests and breaks every workflow written for the old one.

Testing the network itself needs devices, so it belongs to the change path, in the Validation Gates section.

Tests tell you a new version is correct. They do not tell you how to put it into production while it is busy running network changes. That is the next problem.

Rolling Out NAP Releases#

If it hurts, do it more often.

Martin Fowler

Restarting a NAP component is not like restarting a web server. Some components hold network changes in flight, some hold the schema every workflow reads, and some run at 40 sites. Each case has its own release technique: blue/green with draining for stateful components, canary releases and expand-migrate-contract for workers and schemas, and waves for components that run as a fleet. Releasing the NAP hurts, which is why you should do it often, in small steps. Figure 11.5 contrasts the first two.

Blue/green with draining, where new runs go to version 2 while version 1 finishes its in-flight runs, and canary, where a small share of runs goes to version 2 and is compared with version 1

Figure 11.5: Blue/green with draining, and canary.

Blue/Green and Draining Stateful Components

Some NAP components cannot be restarted at will. Picture the Orchestrator midway through a multi-wave workflow: it has changed wave 1 and is waiting to validate before wave 2. Interrupt it, and the devices sit half-changed with nothing tracking them. A blue/green deployment avoids this. It runs the old (blue) and new (green) versions together, routes new work to green, and lets blue drain.

Invest in it before the first multi-wave workflow runs in production. Until then, a scheduled pause is fine, because short, single-step workflows can be interrupted and restarted. After that, a NAP upgrade that interrupts in-flight work is an incident, not maintenance.

Draining needs a number. The Orchestrator must expose a live count of active workflows per instance, and the dashboard must show blue trending to zero. A timer or an assumption is not a drain signal. For network workflows the rule is strict: a change in progress completes on the version that started it. Schedule cutovers when no multi-wave workflow is active, or wait for those workflows to reach a checkpoint.

Canary Upgrades and Schema Migration

For stateless components, such as a new Executor worker image, a canary deployment routes a small share of runs to the new version first. If its error rate and duration match the stable version over enough runs, it replaces the old one. If not, traffic moves back and the release is held.

Stateful upgrades are harder, and Source of Truth schema changes are the hardest. A schema change that breaks compatibility touches every workflow that reads or writes the affected fields. The safe sequence is expand, migrate, contract: add the new fields beside the old ones, move workflows to the new fields one at a time, and remove the old fields once nothing reads them. Changing schema and workflows in one release is the upgrade mistake I see most often: a failure then has two possible causes and no clean way back.

Version Changes and Configuration Changes

Not every NAP release replaces code. A version change replaces a component or reshapes the architecture: a new Orchestrator release, a schema migration, a new message bus. A configuration change keeps the code and changes what it does: a collector’s target list, a worker pool’s size, a gate’s tolerance. Give them different release paths. Configuration changes are smaller and easier to reverse, so they can ship more often and on a lighter path: reviewed and versioned like everything else, since GitOps covers both, but without draining or canaries.

The lighter path has two exceptions. A configuration change that every workflow depends on, such as the rollout policy or a gate definition, is reviewed like code, because it behaves like code. And a configuration change that needs a restart to take effect is a version change in disguise.

Upgrading a Distributed NAP

Some NAP components run as a fleet: a collector per site, a worker pool per regional hub, a provisioning service at the edge. Upgrade the collector at all 40 sites at once, and a parsing bug in the new version blinds every site in the same window.

Upgrade them in waves, with the same logic as a network change: pilot sites, then a regional subset, then the rest, each wave gated on the new collectors reporting healthy. The stakes are higher than they look. A failed network change hits a subset of devices. A failed NAP upgrade can remove the NAP’s ability to validate and recover every change that follows.

Each of these techniques assumes the IDP underneath is working. Sometimes it is not.

When an IDP Service Fails#

The NAP depends on IDP services it does not control. The registry can be unreachable mid-promotion. The runtime can lose the node a worker runs on between two gates. The secrets store can refuse a credential. These are not workflow errors but failures beneath the NAP.

Design every stage to fail closed. If a service a stage needs is unavailable, the stage fails and the run halts. A deployment that cannot confirm its artifact is stored does not proceed. Make each dependency explicit in the workflow’s failure handling, so the error says “registry unreachable” rather than “deployment failed”.

Write the response down before you need it: one short entry per IDP service, saying what the NAP does without it, who is paged, and how a halted run resumes. Then test it. Take the registry away in a staging environment and confirm the run halts with the right message, and update the entry after every real failure. Chapter 12 covers retries and circuit breakers, and its NAP Unavailability and Manual Continuity section has the runbook for the day the NAP is down.

That completes the first meaning of deployment: software onto the IDP. Next, the second.

One Network Change, End-to-End#

The NAP is deployed. Now it does its real job: deploying a network change. This section follows the firewall change from the opening story through a working NAP, with the same rule, the same high-availability pair, and the same maintenance window. Part 2 owns most of the mechanics, so each step names the chapter that owns it and adds only what the NAP contributes when the blocks run as one.

Figure 11.6 shows the whole path, in three parts.

One change end-to-end

Figure 11.6: One change end-to-end.

Intake turns a request into intent, in the Presentation layer and the Source of Truth. From there the Orchestrator runs one change workflow to the end. Its validation stages are short and stateless, and answer “is this change correct?” Its deployment stages are long and stateful, and answer “should it be applied now, and how?” The artifact store sits between the two.

Where intake ends depends on where intent lives, as the Intake section explains. What matters is that every way in passes the same gates.

Each step has an owner:

  1. Request. The engineer submits through any entry point (Chapter 9).
  2. Intent. The request becomes a proposed change where intent lives: branch, propose, check, approve, merge in the Source of Truth (Chapter 5), or a pull request to an intent repository.
  3. Validate and render. Gates check the data, and the Executor renders the configurations through its render-only call (Chapter 6).
  4. Simulate. When the workflow requires it, the rendered change runs against an emulated topology (Chapter 10).
  5. Promote. The artifact is labeled and, if its risk tier requires it, waits for a deployment approval (this chapter).
  6. Waves. The Orchestrator sequences the rollout and judges each health gate (Chapter 8).
  7. Execute and verify. The Executor applies the change idempotently and verifies it, with Observability supplying the data (Chapter 6, Chapter 7). A retried step must not apply the change twice; Chapter 12 covers idempotency under retries.
  8. Record. The run’s evidence joins the change record (Chapter 13).

Validation and deployment fail differently, which is why they are separate. A validation failure means the change is wrong: fix it and resubmit. A deployment failure may mean nothing is wrong with the change at all: the window has not opened, a device is unreachable, or a wave gate saw something else move. Mixing the two produces workflows that fail ambiguously and need the network automation team to diagnose.

The rest of this section walks the path in order, starting before the network engineer makes the request.

Before the Request: Onboarding the Workflow#

The firewall rule can take the golden path only because someone onboarded its workflow first. In this chapter, a workflow is a class of network operation the NAP knows how to run: “add a firewall rule”, “add a VLAN to a site”, “bounce a port”. Some change intent, some do not. Onboarding means writing the workflow’s definition and gates, adding to the adapters any syntax they do not render yet, and testing it all, once. Every request afterwards is one run of it.

The workflow definition is the contract between the workflow and the NAP. It declares what is specific to this workflow, so that nobody decides gates or risk at 02:00. Listing 11.3 shows the one for the firewall rule.

Listings 11.3 and 11.4 are illustrations, not the syntax of any product. They show which decisions a workflow definition and a rollout policy must capture. Your Orchestrator will express the same decisions in its own format.

name: firewall-rule-add
version: "2.1"
risk_tier: standard
risk_evaluation: security_policy
adapters: { vendor-fw: ">=3.4" }
scope:
  unit: site
  attribute: site_code
validation:
  before_deploy:
    - sot_integrity_check
    - schema_validation
    - render_tests
    - simulation:
        when: high_risk
  per_wave:
    before:
      - drift_check:
          attributes: [security_policy]
    after:
      - health_gate:
          checks: [requested_flow_reachable, other_rule_hits_stable]
          convergence_seconds: 60
Listing 11.3: The workflow definition for the firewall rule.

The definition separates two sets of gates. The before_deploy gates judge the change before it reaches the artifact store, and the Validation Gates section walks through them. The per_wave gates run during deployment, around each wave, as the Promotion and the Maintenance Window section shows.

Four fields deserve a closer look:

  • risk_tier is the starting tier for every request, and risk_evaluation names the policy the NAP checks each request against. A rule that fits the security policy stays standard; one outside it becomes high. The tier decides how the change rolls out and which approvals it needs, as Listing 11.4 shows.
  • adapters names the Executor adapter versions the workflow was tested with. The NAP refuses to run it on an older adapter, and an adapter release that drops a version the workflow needs fails the workflow’s tests before it ships.
  • simulation.when decides which requests need a lab run. This workflow simulates high-risk requests, because a rule outside the security policy can interact with the rules already on the pair in ways no render test sees. For a VLAN workflow it would be template_changed: a new VLAN ID through a proven template needs render tests and no lab.
  • convergence_seconds is part of the gate specification. Networks take time to settle; a BGP policy reaches its peers over seconds to minutes. A gate that runs before convergence certifies a wave that has not stabilized. Set it per workflow, and do not shorten it when the workflow feels slow.

The risk_tier in the definition is a floor, set at onboarding, never chosen by the operator. Some requests are riskier than their workflow: a firewall rule that opens a whole subnet, or a VLAN added to a core trunk instead of an access port. The NAP evaluates each request against its scope and content, and it can raise the tier, never lower it. Chapter 13 covers it in its Tiered Risk Classification section.

The workflow does not say how to roll out. Wave sizes and abort thresholds are fleet decisions: they depend on how the network is built, not on what the change does. A hundred workflows each choosing their own would give a hundred rollout behaviors. The network automation team defines them once, in a rollout policy that the Orchestrator applies to every run, keyed by risk tier.

rollout_policy:
  wave_selection: site
  vendor_stratified: true
  redundant_pairs:
    default: standby_first
    removes_access: active_first
    on_failure: unwind_all
  tiers:
    standard:
      intent_review: none
      deploy_approval: none
      abort_ratio: 0.05
      on_failure: halt
    high:
      intent_review: peer
      deploy_approval: manual
      abort_ratio: 0.0
      on_failure: unwind_all
Listing 11.4: The fleet rollout policy.

It settles the questions that Chapter 8 left to this chapter:

  • Wave selection sizes and scopes the rollout. Site-based selection contains blast radius geographically. Vendor-stratified selection puts every vendor in an early wave, so vendor-specific behavior shows up before it reaches the whole fleet. Size that first wave by coverage, not by percentage: three switches, one per vendor, catch more than forty switches of a single vendor. Members of a redundant pair never share a wave, and the standby goes first unless the change removes access, so the firewall pair’s waves are simply its two units. A pair that syncs its configuration is one unit to the rollout: push to the active, and let the gate verify that the standby received it.
  • abort_ratio sets when a rollout stops. One failed device in a 5-device wave is a different signal from one in a 400-device wave, so express the threshold as a ratio and write it down before the run starts. For high-risk changes it is zero: any failure stops the change.
  • on_failure is the unwind policy: what happens to the waves that already passed when a later one fails. halt keeps them, because they passed their gate. unwind_all compensates every completed wave, for changes where a partial result is worse than none. A firewall pair is that case, as the opening story’s failover showed. A redundant pair overrides its tier: a pair is never left with the change on one unit only, so it always unwinds.

A workflow that truly needs a different rollout gets a new tier, reviewed like any policy change. It never gets a private override in its definition.

Because the workflow is code, it is tested like code before any request uses it. Chapter 4 deferred the testing strategy for design patterns to this chapter. Here it is, in three steps, cheapest first:

  1. Render tests feed fixture data through the adapters the workflow uses and compare the output with expected configurations, one fixture per device OS. They run in seconds and catch most template logic errors.
  2. Integration tests render from a test instance of the Source of Truth, catching assumptions about the data model that fixtures hide.
  3. A lab run executes the whole workflow, gates included, against the emulated topology described in the Validation Gates section. When the merge changes only workflow logic, such as sequencing, gates, or compensation, mocked devices that answer like the real ones are enough and cost a fraction of an emulated topology. Templates, and anything that depends on how a device actually answers, still need the emulated images.

A change to one design changes every site built from it, so every merge to the workflow runs all three. The first two are software tests, and they run in an IDP pipeline; the lab run is the one step that needs the Orchestrator and a lab. Only then is the workflow released for requests.

With the workflow released, the engineer can make the request.

Intake#

The engineer’s firewall request arrives through the Presentation layer, here an ITSM form, which calls the NAP’s API. Intent can land in either of the two places the Reduce Friction with a Golden Path section described. This team keeps it in a relational Source of Truth, so the request becomes a proposed change there: a new policy entry that references the new service’s subnet and the authentication endpoint.

The NAP checks it against the security policy. A new source subnet reaching the authentication tier is outside it, so the request becomes high risk, and it needs two approvals. The first is an intent review at the proposal: another engineer, never the requester, checks that this is the right change, the separation of duties that Chapter 13 requires. The second is a deployment approval after simulation, covered in the Promotion and the Maintenance Window section. Merging the proposal starts the change workflow: the Source of Truth emits an event when the proposal merges, and the Orchestrator accepts it at the intake gate.

Why not keep intent as files in Git? For a small data model, that works. Network data is relational, though, and the Data Persistence section of Chapter 5 explains when files stop being enough.

Where does the change workflow run? In the Orchestrator, from the first gate to the last wave, as Figure 11.6 shows. Its two halves have different needs:

  • Validation (rendering, tests, gates, simulation) is short and stateless.
  • Deployment (waves through the window, health gates, compensation) is long and stateful. The durable workflow state of Chapter 8 exists for this.

Running both in one workflow gives one run, one record, and one identity from intake to verification. The handoff between the halves is the promoted artifact. In the GitOps variation, the validation half can run in an IDP pipeline and hand the artifact to the Orchestrator. That works as long as the gates are the same. What does not work is the whole path as one CI job: teams that try find out at their first multi-hour rollout, when the job times out mid-wave.

Once the merge starts the workflow, its validation half checks that the change is correct.

Validation Gates#

The change workflow runs the change through the before_deploy gates of its definition, cheapest first. They judge the change before it exists anywhere but the artifact store. The per_wave gates come later, during deployment. Figure 11.7 shows the validation gates in order of cost, and what each failure tells the engineer to fix.

Validation gates in order of cost

Figure 11.7: Validation gates in order of cost.

Each gate catches a class of problem the earlier ones cannot see:

  • SoT integrity. Every object the change references exists and is complete. For the firewall rule, both units are registered with management addresses, the source subnet exists as a service object, and the authentication endpoint is a known destination. A rule that references a service object renamed three weeks ago fails here, with the stale name in the message, days before deployment would have found it.
  • Schema validation. The rendered artifact has the expected structure. A malformed artifact never enters the artifact store.
  • Request render tests. The render tests from onboarding used fixture data. This gate runs them again on this request’s own values, so a value the fixtures never covered, such as a rule description with a character the template does not escape, fails here.
  • Simulation, if needed. The change runs in the lab when its definition says so, covered below.

The order is about cost, not dependency. Checks that do not depend on each other run in parallel: the integrity check and the schema checks for three configuration types can all run at once. The workflow is a DAG (i.e., a directed acyclic graph, where each stage depends only on earlier ones), and the DAG patterns of Chapter 8 apply directly.

Drift is not a validation gate. Whether a device still matches its intent is a question about the network, not about the change, and the Source of Truth cannot answer it: it knows intent, not actual state. Observability answers it in two places. It compares observed state with intent continuously and raises drift as its own alert (Chapter 7). And the deployment checks each wave’s devices just before touching them, through the per_wave drift check. On a device about to change, some drift is expected: the data this change modifies differs from the device until the wave applies it. The check sets that difference aside. Whatever remains comes from another part of intent, and that is the dangerous drift.

The last gate, simulation, is the most expensive, so it runs only when the definition asks for it. That means high-risk requests, and requests that change a template or bring in a feature the lab has not seen, such as a new protocol. The opening story’s rule is high risk, so it runs. It deploys the rendered rule to an emulated copy of the site: the same workflow, the same Executor, the same verification, aimed at a lab instead of production. Chapter 10 designed this gate. The NAP’s part is to run it without a human whenever it is needed, which takes three things:

  • Topologies in version control. Each lab topology is a file in the NAP’s repository, reviewed like code.
  • Topologies synced from the Source of Truth. A scheduled job exports the relevant slice of the Source of Truth (devices, links, device OS versions) and regenerates the topology files. The lab then lags production by a day at most. For firewall rules, the topology is not enough: whether a new rule is shadowed, or shadows another, depends on the rules already on the pair. The lab needs a snapshot of the production rulebase, or the gate runs a model-based analysis against that snapshot instead of emulating the devices.
  • Labs started by the workflow. The simulation stage requests capacity from the IDP, starts the topology, runs the workflow, collects the result, and tears the lab down. A gate that needs a person to start the lab gets skipped under pressure.

The lab does not need production’s scale; it needs production’s diversity. Cover each vendor and device role in the fleet. For brownfield fleets, also cover each firmware generation with known management-plane differences, as the Timeouts, Retries, Circuit Breakers, and Back-Pressure section of Chapter 12 explains. Five switches spanning three vendors catch more than fifty identical ones.

A change that passes its validation gates is correct. Whether now is the time to apply it is a separate question.

Promotion and the Maintenance Window#

The firewall rule passed its intent review and simulation on Tuesday afternoon: one day from request to a validated change, instead of six. The site’s window is Saturday at 02:00. The NAP keeps apart two questions that the opening story’s team kept tangled: “is this change correct and approved?” and “is now the right time to apply it?” The artifact store sits between them, as Figure 11.8 shows.

The artifact store between validation and the window

Figure 11.8: The artifact store between validation and the window.

The workflow labels the artifact production-approved: it passed every gate, and it can go to production once its tier allows. The artifact waits, as validated. Releasing it to the Orchestrator is the deployment approval: an engineer promotes it, with the gate and simulation results in hand, when the site’s maintenance window opens.

Notice the phrase “the site’s window”. A window is a site attribute in the Source of Truth, not a setting in the Orchestrator, and a NAP that spans regions holds dozens of them: Saturday 02:00 in Frankfurt is Friday evening in New York. Store each window in the site’s local time, with its time zone, and let the Orchestrator evaluate them in UTC, the clock Chapter 7 asks every timestamp to use. A rollout across regions then releases each wave as its own sites’ windows open, and a daylight-saving change stays a data question, not a scheduling bug.

Waiting is a decision per risk tier, not a law. For a standard request, such as adding a VLAN to an access port or a firewall rule that fits the security policy, a deployment approval and a window add delay and no safety: the gates already did the checking. Promote those automatically, as soon as they pass. That is continuous deployment for the network, and it is where the Pre-Approved Automation Pattern and the product view of Chapter 15 lead.

Change managers already know this model as an ITIL standard change: a class of low-risk change the change board approves once, for every future instance. Regulation does not remove the approval record; the NAP produces it from the policy that classified the request and the gates it passed, and Chapter 13 covers the evidence auditors ask for. Keep both approvals, and the window, for high-risk requests, like this rule on a firewall pair, where a failure takes a service down and someone should be awake when it runs. The tiers in Listing 11.4 record that decision once, for every workflow.

Trust moves requests between the two modes. Every correct gate decision is evidence. Over time the pre-approved policy grows, more kinds of request qualify as standard, and the rest move from monthly windows to weekly, then nightly.

Two rules keep the wait safe. First, promotion is gated: an artifact that failed a validation gate cannot be promoted, whoever tries, and the NAP records who promoted what. Second, time passes, and both intent and the network move. Just before each wave, the NAP re-runs the SoT integrity check and runs the wave’s drift check. If the Source of Truth changed (a device removed, a site attribute renamed) or a device drifted, the change stops. Without that recheck you get the stale snapshot failure: an artifact rendered against data that is no longer true, deployed successfully, and wrong.

In brownfield networks, scope the drift check to the attributes the change touches: a VLAN workflow checks the VLAN table, not spanning tree or Network Time Protocol (NTP). Otherwise it blocks everything on the first day, because almost every device deviates somewhere.

A device that fails its pre-wave drift check is not touched, and it counts as a failed device toward the wave’s abort ratio. A firewall pair stops, because each of its waves is a single unit. A campus VLAN wave skips that switch, and the gap stays on the change record. The alternative is a force deploy: discard whatever the device holds for those attributes and apply what the Source of Truth says. It overwrites the cause of the drift too, including an emergency fix nobody has recorded yet, so treat it as a high-risk request that an engineer approves, never an operator.

At 02:00 the Orchestrator releases the artifact. Chapter 8 owns the rollout: the Saga Pattern that compensates a failed wave, and the health gate that asserts config, operational, and service state, plus that nothing else moved, after the convergence window. Its Figure 8.4 shows the shape. The NAP’s part is to enforce what the workflow definition and the rollout policy declare:

  • A snapshot per wave, not per job. The Executor captures each device’s configuration immediately before its wave. By the time wave 3 starts, wave 1’s devices may have taken unrelated changes, and a snapshot from the start of the job would revert those too.
  • Progression only through the gate. The next wave starts only on a passing gate, and nobody can skip it from the CLI under time pressure. If anyone can override a wave boundary, it stops protecting anything.
  • The abort ratio and the unwind policy. When failures cross the risk tier’s ratio, the Orchestrator compensates the failed wave and then applies the tier’s unwind policy to the waves before it.

For the firewall change, the scope is one HA pair, so the waves are the standby unit, then the active one. Wave 1 applies the rule to the standby and verifies it. Wave 2 applies it to the active unit. Suppose the active unit rejects the commit. The Executor restores that unit from its snapshot. The target is a redundant pair, so its unwind policy is unwind_all, and the Saga then compensates wave 1 and removes the rule from the standby. The pair ends the night unchanged and consistent, with a named failure waiting for the morning, instead of half-changed and silent until the next failover.

And if the Orchestrator dies mid-run, as it did in the story? Three pieces from earlier in this chapter now meet. Anti-affinity has kept a replica on another host, so the Orchestrator survives the loss of one machine. The run’s durable state records that wave 1 finished and wave 2 has not started, so the replica resumes the run where it stopped: it continues to wave 2, or it compensates if the window has closed. And the IDP’s observability stack, which does not run on the NAP, pages someone within minutes. The worst case is a pair known to be half-changed, with an open alert and an owner. It is never a silent one found at the next failover.

The wave order matters for that worst case. With the standby first, a run that stops between waves leaves the rule only on the unit that is not passing traffic. For a permit rule, that is the safe side: if the pair fails over before anyone fixes it, the service gains access instead of losing it. For a deny rule it is the opposite, because a failover would apply the block early. That is why the rollout policy in Listing 11.4 orders pairs by what the change does: standby first by default, active first when the change removes access.

The 800-switch campus VLAN is a standard-tier change, so its policy is halt. If the third wave fails, the buildings in the first two waves keep a VLAN they validated, and nobody is worse off.

Whatever the waves decide, the run ends in one of two ways: a verified change or a verified rollback.

Verify, Record, or Roll Back#

Rollback in a network is not the software kind. Rolling back a container means restarting the old image. Rolling back an artifact in the store changes nothing on the devices. A network rollback has to be designed before the change starts. Of the four rollbacks Part 2 names (Figure 8.7 in Chapter 8), two touch devices. Execution rollback restores the devices where the Executor’s own task failed, from the snapshot it took (Chapter 6). Saga compensation undoes whole steps that had already completed (Chapter 8). The NAP adds four rules on top:

  • A rollback is verified like a change. The same gate runs after it. Until it is verified, a rollback is only a claim.
  • A failed rollback halts. If a device is unreachable during rollback, the run stops and pages someone, as the on_failure: halt_and_page setting in Chapter 8’s Listing 8.2 declares. A fleet split between two states with no record of which device is where is worse than one known problem.
  • Snapshots live in the artifact store. Each one carries the same provenance as the forward artifact, so the rollback baseline is the state the wave found. It is never a fresh render from a Source of Truth that has moved on since.
  • The Source of Truth keeps the intent. A rollback restores the network, not the intent. When the firewall change unwinds, the Source of Truth still holds the new rule. It is what the engineer asked for, and it stays the reference even when it turns out to be wrong. The NAP marks the change as failed and rolled back, so the gap between intent and network is known and attributed. The engineer closes the gap through the same path as any change: a new proposal with a corrected rule, or one that reverts the original. Until then, the next request for those devices stops at its drift check. That is deliberate: nobody stacks a new change on top of an unresolved one.

I found confirmed commit particularly useful: the device rolls a change back on its own unless it is confirmed within a set time. It gives the gate a clear confirmation step, and it protects you when the change cuts off the management path itself.

Whatever the outcome, the NAP closes the run by attaching the evidence to the change record: who asked, which gates passed, the artifacts and snapshots, and the result per device. Chapter 13 turns that record into the Provenance Chain an auditor can query.

Everything so far assumes the path is open. The last step covers what engineers do when it is not.

When the Path Is Blocked#

Sometimes the golden path is unavailable: the NAP is down, the change workflow is broken, or the change cannot wait for a window. If no legitimate way around exists, engineers find an illegitimate one, and the result is an untracked change. Main-branch protection stops casual bypass. It does not stop a 03:00 emergency.

Most urgent changes do not need to leave the path at all. An emergency lane keeps the automated gates and compresses the people. The on-call engineer gives both approvals on the spot, and another engineer repeats the intent review on the next business day. Simulation runs only if it fits the urgency. Blocking an attacking prefix during an incident takes minutes this way, with the same record as any other change, and the late review either confirms the rule or opens a request to remove it. Break-glass is for when the NAP itself cannot run.

When the NAP is down, the designed alternative is a break-glass procedure: direct device access, restricted to named people, explicitly authorized, and logged to a separate tamper-evident trail. A break-glass event raises an alert and triggers a review, and the Source of Truth is reconciled with the manual change before the NAP touches those devices again. The pre-wave drift check enforces it: until the Source of Truth matches the manual change, every request for those devices stops at that check. Both paths belong in the on-call runbook, written and rehearsed before the night they are needed. Chapter 12 covers that runbook for a full NAP outage, and Chapter 13 covers the governance and the runbook for a compromised NAP.

That completes the path. Step back from it, and much of it should look familiar from the layer below.

Patterns Shared by Both Platforms#

The IDP and the NAP serve different users and are built by different teams, but they solve the same problem at different layers: delivering a change safely through a path other people can use. So most patterns in this chapter appear twice. Figure 11.9 shows the clearest case: both platforms move artifacts through the same lifecycle, with different gates.

Both platforms promote artifacts the same way

Figure 11.9: Both platforms promote artifacts through the same lifecycle.

Table 11.2 lists the rest. If you know a pattern on one platform, it tells you what the same pattern looks like on the other.

PatternOn the IDPOn the NAP
Platform as Product for EngineersApplication teams and the network automation team are the customersNetwork engineers and operators are the customers
Golden pathA service template that deploys on the first dayA workflow scaffold that ships a first change
Platform ContractVersioned runner images, registry and runtime APIsVersioned submit API, workflow definitions, and scaffolds
GitOpsNAP components reconciled from a repositoryIntent changed only through reviewed requests; divergence raises an alert, not an automatic correction
Artifact promotionImage built, tested, staged, releasedConfiguration rendered, validated, simulated, deployed
Progressive rolloutCanary: a share of runs on the new versionWaves: a share of devices, gated on network health
Observing the pathPipeline job duration, failure rate, queue depthTime-to-feedback per change, failure rate per gate
Short-lived credentialsA token per jobA device credential per run and per site
Table 11.2: The same patterns on both platforms.

Where the patterns diverge, the network is the reason. Software rollback restores a previous version; network rollback must be designed before the change, and it can fail on an unreachable device. Software blast radius is a share of requests; network blast radius is physical, a building or a firewall pair. And software is ready the moment the process starts, while a network needs a convergence window before any gate can judge it. Reuse the pattern, but never assume its mechanics carry over unchanged.

Knowing which patterns carry over helps with the last part of the job: running the NAP for years.

Operating and Evolving the NAP#

Once the NAP runs changes, the team operates it as a service and keeps it evolving. This section covers, in order: how to observe it, how to keep feedback fast, how to work with the teams around it, and how to migrate existing automation.

Observation comes first, because every other decision in this section depends on its data.

NAP Health Metrics#

A team that cannot observe its own NAP is in the position of a network team that cannot observe its network. Chapter 7, in its Observability of the Automation System section, lists the signals, and the Observability for Running Software section of this chapter puts the stack that holds them on the IDP. Chapter 12 defines the NAP’s health metrics and turns them into service levels: completion time, successful change rate, time-to-feedback, and queue drain time.

One of them belongs here, because it is a product metric before it is an operational one. Time-to-feedback runs from submission to the first result someone can act on, which usually arrives long before the final one. For the campus example, a VLAN request for Building B’s 24 switches should return its SoT integrity result within 60 seconds and, when its templates changed, its simulation result within 8 minutes. If that result starts taking 20 minutes, something in the path has slowed. Find it before it reaches the 40-minute line where engineers stop waiting.

Time-to-feedback shapes behavior more than any other metric. A change workflow that answers in three minutes lets an engineer glance at something else and come back to a clear result. One that answers in forty minutes is past the point where most engineers can hold the problem in their heads. They move on, and they must rebuild context before they can even read a failure.

Engineers respond in two ways, both bad. Some batch changes to save round trips, which concentrates risk and makes failures harder to isolate. Others skip the NAP for changes they feel sure about, which breaks the audit trail and removes the gates. Feedback speed is not a performance tweak. It decides whether engineers trust the NAP or route around it.

Working With Other Teams#

The network automation team works with three kinds of team, as Figure 11.10 shows.

The network automation team and the teams around it

Figure 11.10: The network automation team and the teams around it.

Above it are the network engineers, its customers, served through the golden path and the Platform Contract. Below it is the developer productivity team, whose roadmap you depend on and do not control. Treat that as a customer relationship: bring the questions from What to Expect From the IDP early, share your metrics, and ask for the contract in writing. Network needs such as management network reach, long jobs, and lab capacity are unusual among IDP tenants. They get prioritized when they arrive with evidence.

Around the NAP are teams that want to extend it: security teams adding policy gates, SREs adding alert hooks, domain teams adding checks for their own workflows. The network automation team cannot be the only path for all of them, because that bottleneck grows with adoption. The sustainable model: the network automation team owns the core change workflows and the golden path, and other teams contribute through the same review process as any change. Decide who has merge rights to the workflow definitions, and enforce it in access control. A workflow anyone can change without review will be changed without review under pressure.

Not every organization starts with a dedicated network automation team. Many begin with one or two engineers who run the NAP alongside their network work. The model here is a target, not an entry requirement: one engineer can keep a minimal golden path, one change workflow, and an artifact store running. Chapter 14 covers how the team grows.

Migration Strategies#

The Four Ways section said the move to the target cell ends only when the old paths are switched off. How to get there? Most teams adopting a NAP already have automation built without one. The tempting plan is a big rewrite with a cutover date. It fails for the same reason “we’ll refactor everything next quarter” fails: the scope is larger than it looks, the date slips, and the team maintains the old approach and half a migration indefinitely.

Onboard incrementally instead. Start with the workflow that changes most often and costs most when it fails. High frequency means results arrive within weeks, along with the edge cases the scaffold missed. High risk means the gates deliver real value. Run that workflow end-to-end against the lab before routing production through it, then extend to the next one. Each workflow is easier than the last, because the patterns are documented and the golden path has adapted to real cases. Switch each old path off as its replacement goes live.

Migration moves the automation you already have onto the NAP. The last question is where to begin when there is little to move, or when the NAP itself does not exist yet.

The Minimum Viable NAP#

A complex system that works is invariably found to have evolved from a simple system that worked.

John Gall

You now know what the whole picture looks like. Where do you start, with a real network to keep running and no appetite for a NAP that is useless until every piece exists? With the five stages in Figure 11.11. Three are capabilities you consume from the IDP; two are what only the NAP can build. Each stage closes a gap the scripts approach left open, is useful on its own, and makes the next stage possible. The five stages are Gall’s Law applied: each one is a simple NAP that works.

The minimum viable NAP

Figure 11.11: The minimum viable NAP: five stages.
  1. Version control and one CI pipeline (consume). Put every automation workflow in a repository on the IDP, and run one pipeline on every commit with syntax validation and unit tests. This closes the scripts-in-home-directories problem: every change has a history, and every run happens in a consistent environment instead of on whichever laptop is available. This stage is complete when every automation workflow is tested in CI and no automation code exists outside the repository.

  2. An artifact store for rendered configurations (consume). Every change now keeps its rendered output instead of discarding it. This closes the rollback gap: the previous artifact exists and can be restored without re-rendering from a Source of Truth that may have changed. It is also the first layer of an audit trail. This stage is complete when every deployment produces an artifact with a version identifier, and any past deployment can be found by that identifier.

  3. A simulation gate against a minimal lab (build). A handful of emulated devices, with the same vendors and device OS versions as the fleet, catches what syntax checks cannot. It finds template logic errors, missing Source of Truth references, and idempotency failures that only appear against a real management plane. From this stage the NAP is safer than scripts, and not only neater. Ask the IDP for the lab capacity; build the gate yourself. This stage is complete when every change its workflow marks for simulation reaches production only with a recorded simulation result.

  4. Secrets management replacing static credentials (consume). Every run receives its own short-lived credential, issued at start and expired at the end. Stages 1 to 3 are organized and safer; without this stage they are not secure. The static key in a pipeline or workflow file is the one an audit will eventually find. This stage is complete when no static credential exists in any pipeline or workflow configuration, environment variable, or file a runner or worker reads.

  5. An audit record linked to each change (build). Every change record carries its provenance: who authorized it, which gates it passed, and the network state before and after. The compliance question becomes answerable from NAP records instead of a weeks-long manual reconstruction. The Provenance Chain pattern in Chapter 13 specifies the full structure. This stage is complete when any change from the past 90 days can be queried by device, requester, and outcome without correlating systems by hand.

Where are the Source of Truth and the Orchestrator? The five stages are the plumbing around the Part 2 blocks, not a replacement for them. Each block has its own starting point: the Getting Started section of Chapter 5 for the Source of Truth, and the Implementation Example of Chapter 8 for the Orchestrator. The Orchestrator’s durable state and waves become mandatory with the first workflow that rolls out in more than one wave, the same moment blue/green releases do. Without an IDP, stages 1, 2, and 4 are yours to build, in the order given at the end of the What to Expect From the IDP section.

Stages 1 to 4 take weeks, not months, when the IDP already offers the capabilities. A team at stage 2 is in a materially better position than a team on scripts, even if stage 5 is a year away. The complete NAP described in Chapters 11 to 13 goes much further: policy-as-code gates, tiered risk classification, multi-region federation.

Summary#

We usually abuse the term platform. When building a network automation solution, there are two platforms: the Network Automation Platform (NAP) that serves the network-related use cases, and the Internal Developer Platform (IDP) that supports the deployment of the NAP itself. Both work together but have very different owners and capabilities. Understanding them makes your life easier: the IDP deploys software, and the NAP deploys network changes.

This split impacts everything else. When building the NAP, you rely on the IDP through a contract, and the NAP becomes a product itself that provides a clear way (a golden path) for the network engineers who use it to operate the network. Different responsibilities belong to each domain.

In the end, the NAP is deployed onto the IDP like any other piece of software, with the same best practices, and following clear plans to minimize risks and increase speed. And the NAP itself carries the burden of delivering network changes end-to-end, from intake to deployment, following the enforced guardrails while providing meaningful feedback (e.g., a dry run) in the process.

In Chapter 12, we will build on top of this, including considerations about what could go wrong. When the environment degrades, the NAP should survive it.

References#

  • Team Topologies, Matthew Skelton and Manuel Pais (IT Revolution, 2019). The foundational text on organizing teams around software systems; its platform-team and stream-aligned-team topologies describe the relationship between the developer productivity team and the network automation team, and between the network automation team and network engineers.
  • Accelerate: The Science of Lean Software and DevOps, Nicole Forsgren, Jez Humble, and Gene Kim (IT Revolution, 2018). The empirical research behind deployment frequency, lead time, and feedback speed as leading indicators of performance; the NAP’s cognitive load and feedback metrics are grounded in this work.
  • Continuous Delivery, Jez Humble and David Farley (Addison-Wesley, 2010). The original systematic treatment of CI/CD pipeline architecture; the split between continuous integration and continuous delivery, and the artifact promotion model in One Network Change, End-to-End, trace directly to this book.
  • Platform Engineering on Kubernetes, Mauricio Salatino (Manning, 2023). A practical treatment of internal developer platforms on cloud-native infrastructure.
  • Site Reliability Engineering, Betsy Beyer, Chris Jones, Jennifer Petoff, and Niall Richard Murphy (O’Reilly, 2016). The foundational text on operating shared infrastructure as a reliable service; its error-budget model, toil-elimination framework, and SLO discipline map onto the NAP’s health metrics and service levels, which Chapter 12 defines. (Full text free online.)

💬 Found something to improve? Send feedback for this chapter

📖 Enjoying the book? It is also available on Kindle and in paperback. Get it on Amazon →