Netdryrun
v0.4.3Validate BGP and routing changes in a real containerlab lab: pass/fail verdict with evidence.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dry_run
The primary tool: dry-run a network change. Deploys the containerlab lab of netdryrun.yml at `path` (folder or file; C:\... or /mnt/c/...; an absolute path is safest: a relative one is read from NETDRYRUN_MCP_ROOT only when that is one folder) with the configs as they are on disk, waits for routing to converge, runs every check, then destroys the lab. Write the change into the configs first: a run on the unedited folder tests today's config, not your change. `tested` lists a sha256 of each file the run used; the verdict applies to those exact files, so after any edit, run again. On a ticket th…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
keep_lab | boolean |
verify_change
Verify a change against a declared intent, without writing checks. Boots the containerlab `topology` twice, once with the `before` configs and once with the `after` configs (each a git ref, or a directory holding the lab's tree; the topology file must be the same on both sides), snapshots sessions, routes, every BGP path and advertisement, and diffs them: every difference the intent doesn't declare fails. `intent` is the intent as YAML or JSON text, or the path of an intent file. Take it from the ticket or the operator: never write it from the diff, and never widen it (or add allow_anywhere) t…
| Parameter | Type | Description |
|---|---|---|
after * | string | |
before * | string | |
intent * | string | |
topology * | string | |
guards |
start_run
The asynchronous dry_run, for clients that give up on a long tool call: returns at once with a `run_id` and status running (no verdict yet), then deploys, checks and destroys the lab like dry_run. Call get_result with the run_id every poll_after_s seconds until status is no longer running. Same `path` and keep_lab as dry_run. A config error, or a path outside NETDRYRUN_MCP_ROOT, is answered at once with status error and no run_id. The run lives in this server: if the server restarts, start again. When to use Netdryrun: before proposing or applying any routing or policy change (no routing chang…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
keep_lab | boolean |
get_result
The result of a run started with start_run. While status is running there is no verdict: wait poll_after_s seconds and call again (a dry run takes about 60-120 s). Once it has finished, the result is exactly dry_run's, with its run_id: act on `status` and the verdict as for dry_run. An unknown run_id is status error. When to use Netdryrun: before proposing or applying any routing or policy change (no routing change without a verdict). Ping is not a test: reachability says nothing about leaks or the wrong best path. A dry run takes about 60–120 s. Requires Linux or WSL2, Docker and containerl…
| Parameter | Type | Description |
|---|---|---|
run_id * | string |
run_checks
Run the checks in netdryrun.yml at `path` against a lab that is already running (no deploy, no destroy), such as one kept with dry_run keep_lab=true. Same result and verdict as dry_run. Configs edited after the lab started do not reach it: to test a change, use dry_run. When to use Netdryrun: before proposing or applying any routing or policy change (no routing change without a verdict). Ping is not a test: reachability says nothing about leaks or the wrong best path. A dry run takes about 60–120 s. Requires Linux or WSL2, Docker and containerlab with root-equivalent rights; it won't run on…
| Parameter | Type | Description |
|---|---|---|
path * | string |
record_baseline
Snapshot a known-good lab (containerlab topology file) as netdryrun.yml check text: every established BGP session, prefix count (today's count as min, max with 20% headroom; on each eBGP neighbor, only the prefixes it sends today, or an exact count where the driver can't list them) and BGP route. Call it when no checks exist, before changing the configs, then dry-run the change against this baseline. With attributes=true, also pin each BGP route's AS path, local preference and communities. By default it also adds the standard guards (no default route, 0.0.0.0/0 and ::/0 where IPv6 routes can b…
| Parameter | Type | Description |
|---|---|---|
topology * | string | |
attributes | boolean | |
deploy | boolean | |
guards | boolean | |
wait_seconds | number |
validate
Validate netdryrun.yml at `path` without starting a lab (takes seconds): node names, drivers and supported keys, as dry_run checks them before deploying. Returns the check names or the error. It is not a verdict: run dry_run next. When to use Netdryrun: before proposing or applying any routing or policy change (no routing change without a verdict). Ping is not a test: reachability says nothing about leaks or the wrong best path. A dry run takes about 60–120 s. Requires Linux or WSL2, Docker and containerlab with root-equivalent rights; it won't run on macOS or in sandboxes without Docker-in-…
| Parameter | Type | Description |
|---|---|---|
path * | string |
check_types
List supported check types and their keys, to read netdryrun.yml or help a human write it. Starts no lab. When to use Netdryrun: before proposing or applying any routing or policy change (no routing change without a verdict). Ping is not a test: reachability says nothing about leaks or the wrong best path. A dry run takes about 60–120 s. Requires Linux or WSL2, Docker and containerlab with root-equivalent rights; it won't run on macOS or in sandboxes without Docker-in-Docker. INCONCLUSIVE means stop: the lab never reached a testable state, so don't retry more than once, and don't apply the c…