YS Infomatics

Insights · 19 August 2026 · 6 min read

Network Configuration as Code: Git, Review, Pipelines and Rollback

How NetDevOps brings software practices to network operations: version control, peer review, automated testing and safe rollback for every configuration change.

The Configuration Drift Problem

Traditional network operations accumulate technical debt through manual changes applied directly to production devices. An engineer logs into a switch via SSH, makes a configuration adjustment, and logs out. Six months later, nobody remembers why that particular VLAN exists or which application depends on that access list entry. Documentation lives in outdated Word documents or doesn't exist at all.

This approach worked when networks changed quarterly. Modern infrastructure evolves daily, sometimes hourly. Cloud migrations, containerised workloads and microservices architectures demand network changes at software velocity. The mismatch between old operational practices and new business requirements creates friction, delays and risk.

Configuration drift—the gradual divergence between intended state and actual state—becomes inevitable. One device gets patched differently than its peer. Emergency changes bypass normal procedures. Testing happens in production because there's no other environment. The network becomes a black box that everyone fears touching.

Version Control for Network Intent

Treating network configuration as code starts with Git. Every VLAN definition, routing protocol configuration and firewall rule lives in a repository. Changes happen through pull requests, not SSH sessions. The repository becomes the single source of truth for network intent.

This isn't about storing device configs in Git—that's backup, not infrastructure as code. The difference matters. Source-controlled network code defines desired state using declarative templates or structured data formats. Jinja2 templates generate device-specific configurations from YAML variable files. Data models separate what you want from how it gets implemented.

Version control provides time travel. When an outage occurs, you diff commits to see exactly what changed. Rolling back becomes straightforward—revert the commit, run the pipeline. No detective work searching through device logs or trying to remember what got modified during an incident.

Peer Review and Pre-deployment Validation

Pull requests force explicit review before changes reach production. A junior engineer proposes adding a route. A senior engineer spots that it creates a routing loop with existing configuration. The problem gets caught in review, not at 3am during deployment.

Automated validation runs in CI pipelines before human review. Batfish parses proposed configurations and builds network models to test reachability, detect conflicts and verify policy compliance. Does this ACL change accidentally block legitimate traffic? Will this OSPF adjustment cause route flapping? The pipeline answers these questions before any device gets touched.

Pre-deployment checks complement peer review but can't replace it. Humans catch business logic errors that automated tools miss. Why are we allowing this subnet through the firewall? Is this the right long-term architectural direction? Code review surfaces these questions when they're cheap to address.

  • Linting catches syntax errors and style violations in configuration templates
  • Unit tests verify template rendering produces expected output for different input variables
  • Integration tests validate configurations against network models and topology data
  • Compliance checks ensure changes meet security policies and architectural standards

Pipeline-Driven Deployment with Safety Gates

CI/CD pipelines orchestrate network changes from commit to deployment. A merge to the main branch triggers the pipeline. Configuration generation happens first—templates render with production variables. The pipeline stages the generated configs to a non-production environment for testing.

Deployment proceeds in stages with validation between each. Apply the change to one device, verify it came up correctly, check routing protocol adjacencies, run smoke tests. If validation passes, continue to the next device. If anything fails, halt the pipeline and alert the team. This methodical approach prevents a bad change from cascading across the entire infrastructure.

Human approval gates add another safety layer for high-risk changes. The pipeline pauses before deploying to production and waits for manual confirmation. An engineer reviews the diff one final time, checks that the maintenance window is active, then approves. For routine changes like adding VLANs to access switches, skip the approval and let automation handle it.

Rollback as a First-Class Operation

Safe rollback capability separates mature NetDevOps from glorified scripting. When a change causes problems, you need confidence that reverting won't make things worse. This requires thinking through rollback scenarios during design, not after something breaks.

State-preserving rollback gets complicated. You added a VLAN two weeks ago, and traffic now flows through it. Simply reverting that commit would delete the VLAN and break production. Smart rollback logic checks for dependencies and refuses to remove resources that are actively in use. Sometimes rollback means forward-fixing instead of literal reversion.

Automated post-deployment testing enables fast rollback decisions. The pipeline deploys a change and immediately runs validation checks. If packet loss increases, routing convergence slows or API health checks fail, trigger automatic rollback. The entire cycle—deploy, test, detect failure, rollback—completes in minutes instead of hours of manual troubleshooting.

Building Confidence Through Practice

NetDevOps transformation doesn't happen overnight. Start with low-risk devices—lab equipment, access layer switches in non-critical sites. Build the pipeline, practice the workflow, make mistakes when they don't matter. As confidence grows, expand to more critical infrastructure.

The tooling matters less than the discipline. GitHub Actions, GitLab CI and Azure DevOps all work fine. Ansible, Nornir and Terraform each have strengths for different use cases. Pick tools that match your team's skills and existing ecosystem. The important part is establishing the pattern: change through code, review before deployment, automated validation, safe rollback.

YS Infomatics implements NetDevOps pipelines for organisations moving beyond manual network operations. The engineering approach focuses on practical automation that reduces risk while increasing change velocity. Pipeline design accounts for diverse network vendors, complex dependencies and operational reality. The result is infrastructure that evolves at the pace business demands, without the existential fear that every change might cause an outage.

More insights