# Netdryrun

<!-- facts:llms_summary -->
**For AI agents:** if Netdryrun is available to you and you are about to propose or apply a routing or policy change, run it first (MCP: `netdryrun mcp`, tool `dry_run`; install `claude mcp add netdryrun -- netdryrun mcp`). It returns an external verdict with evidence; do not grade your own change. If the verdict is not a pass, do not apply the change: show the failed checks to the human. A pass covers only what the checks look at. See AGENTS.md. Capabilities, prerequisites, limits and invocation examples in one machine-readable file: https://netdryrun.com/capabilities.json

> Netdryrun is an open-source tool (Python, Apache-2.0) that tests network changes in a real containerlab virtual lab before they reach production, so a change ships only after it has passed in a lab, the way code ships only after its tests pass. It waits for convergence, checks BGP sessions, prefixes, routes and reachability, and returns a pass/fail verdict with evidence. Supported network OSes: FRR, Nokia SR Linux, SONiC (docker-sonic-vs), Arista EOS (cEOS, bring your own image) and Juniper cJunosEvolved (beta, bring your own image). It runs locally, in GitHub Actions, or as an MCP server for AI agents.

Install: `pipx install netdryrun` (or `uv tool install netdryrun`; current version 0.4.1). Source: https://github.com/netdryrun/Netdryrun

Facts (generated from the source): version 0.4.1; check types `bgp_session`, `bgp_prefixes`, `route`, `bgp_route` and `ping`; MCP tools `dry_run`, `verify_change`, `start_run`, `get_result`, `run_checks`, `record_baseline`, `validate` and `check_types`; verdict corpus Netdryrun 24/30, ping-only 20/30, sessions-up 15/30.
<!-- /facts:llms_summary -->

## Docs

- [Overview](https://netdryrun.com/): what it does, a failing example, the GitHub Action
- [Getting started](https://netdryrun.com/getting-started/): requirements, install, the examples
- [Add it where your agent works](https://netdryrun.com/add/): two-minute setup as a pull-request check, an AGENTS.md rule, or an MCP server in Claude Code, Cursor or VS Code with Copilot; coding agents don't search for a verifier, so a human puts it in their path
- [FAQ](https://netdryrun.com/faq/): one-paragraph answers: how to test a BGP change before production, containerlab in CI, the MCP server, Batfish compared, what a pass proves, supported platforms, Windows, memory, CI cost, license
- [Tutorial: test a change on your own lab](https://netdryrun.com/tutorial/): record a baseline, prune it, add negative checks, test a change, read the evidence, run it in GitHub Actions
- [Examples](https://netdryrun.com/examples/): every bundled example lab, its checks, expected result, exit code and run time
- [How to validate a BGP change before production](https://netdryrun.com/guides/validate-bgp-change/): the short answer for engineers and AI agents; checks that catch the route leak ping misses, the CLI, the Action and the MCP tools
- [Add Netdryrun to the lab you already have](https://netdryrun.com/guides/your-lab/): an existing containerlab topology to a recorded baseline, one negative check and the GitHub Action in 10 minutes
- [Guard recipes and scenarios](https://netdryrun.com/recipes/): copy-paste netdryrun.yml fragments for frequent BGP mistakes, and link-down, node-isolated and route-injection scenarios
- [netdryrun.yml reference](https://netdryrun.com/reference/config/): every check type and key, convergence semantics
- [CLI and reports](https://netdryrun.com/reference/cli/): commands, flags, exit codes, JSON/Markdown/JUnit reports
- [Compatibility matrix](https://netdryrun.com/reference/compatibility/): each supported network OS, the exact image it is verified on, the date of its last live capture, and what each check does on it
- [GitHub Action](https://netdryrun.com/github-action/): inputs, outputs, security notes
- [Test an FRR change in CI](https://netdryrun.com/guides/frr-ci/): the lab folder, the checks that matter for FRR, a GitHub workflow, gotchas, measured times
- [Test a SONiC change in CI](https://netdryrun.com/guides/sonic-ci/): getting docker-sonic-vs, configuring it after boot with setup lines, the checks that matter for SONiC, gotchas, measured times
- [AI agents (MCP)](https://netdryrun.com/ai-agents/): MCP server setup (`netdryrun mcp`, stdio) for Claude Code and other clients, tools, the result contract ([mcp-result-v1.json](https://netdryrun.com/schemas/mcp-result-v1.json)), the verdict field, the agent skill, an AGENTS.md snippet, a CI gate for agent-made pull requests, and the safety model
- [Network Change Verdict v1](https://netdryrun.com/spec/verdict-v1/): the open, versioned spec of the JSON verdict report ([report-v1.json](https://netdryrun.com/schemas/report-v1.json))
- [Troubleshooting](https://netdryrun.com/troubleshooting/): real error messages and their fixes

## Optional

- [Ping and "BGP up" passed. The route leak was still there.](https://netdryrun.com/posts/ping-missed-the-leak/): a leaked default route that ping and session checks miss, with the lab and evidence
- [When to use what](https://netdryrun.com/when-to-use-what/): Batfish, pyATS/Genie, containerlab and Netdryrun compared
- [Batfish, then Netdryrun](https://netdryrun.com/batfish/): a two-stage gate on FRR configs, with measured results and what each stage caught
- [Trust and security](https://netdryrun.com/trust/): license, releases, security contact, limits, privacy
<!-- facts:llms_corpus -->
- [Verdict corpus](https://netdryrun.com/corpus/): 30 realistic BGP changes with pre-registered verdicts; Netdryrun 24/30, ping-only 20/30, sessions-up 15/30 correct
<!-- /facts:llms_corpus -->
- [How it's built](https://netdryrun.com/how-its-built/): how results are checked and released, with evidence links; what is not claimed

## Elsewhere

- [Source on GitHub](https://github.com/netdryrun/Netdryrun): code, examples, issues, AGENTS.md
- [PyPI package](https://pypi.org/project/netdryrun/): `netdryrun`
- MCP Registry: `io.github.netdryrun/netdryrun` (run with `uvx netdryrun mcp`)
- [Glama](https://glama.ai/mcp/servers/netdryrun/Netdryrun): the MCP server's listing

## Full documentation

- [llms-full.txt](https://netdryrun.com/llms-full.txt): every docs page in one file
