state_diff
Compare baseline and current network states to report changes heaviest first: missing routers, down interfaces, lost OSPF adjacencies, BGP drops, moved paths, and added routes.
Instructions
What changed from a baseline state you kept to the state now, heaviest first: routers gone or not read, interfaces down, OSPF adjacencies lost, OSPF interface values both ends must share that changed, BGP sessions down, best paths that moved (with the router's reason), routes removed or moved (with originated_by: the router where that prefix is directly connected), then what came back or was added. none is true when nothing changed. Uptimes, counters and the management network are not compared. The baseline is whatever path you pass as before (a state you saved, or collect's previous). Read-only.
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": {
"before": "<before>",
"after": "<after>"
},
"name": "state_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The state now (same input as lab_state) | |
| before | Yes | The baseline state (same input as lab_state) | |
| router | No | Only this router (default: all) | |
| mgmt_subnet | No | The lab's management network, left out (default 172.20.20.0/24; netlab: 192.168.121.0/24) |