Batfish Fork Snapshot
batfish_fork_snapshotCreate a fork of a Batfish snapshot with selected nodes or interfaces deactivated, so you can diff it against the base and test failure scenarios.
Instructions
Fork a snapshot, optionally failing (deactivating) nodes/interfaces.
base_name: the snapshot to fork.name: the fork's name (sanitized withsafe_snapshot_name); defaults to<base>_Fail. Unlessoverwriteis true, an existing name is kept and a unique one is chosen (name,name_1, ...).failed_nodes: node names to deactivate in the fork.failed_interfaces: interfaces to deactivate, each as anode[interface]string (for example"r1[Gi0/0]") or as a{"hostname": "r1", "interface": "Gi0/0"}mapping. Bare node names are rejected; usefailed_nodesfor those.The failure-testing flow is: fork, then diff the fork against the base with a differential question.
network: the network both snapshots live in, if given.
Returns {name, base_name} — the name actually used.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base_name": "<base_name>"
},
"name": "batfish_fork_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| network | No | ||
| base_name | Yes | ||
| overwrite | No | ||
| failed_nodes | No | ||
| failed_interfaces | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||