lab_state
Read a saved network lab state and summarize what is wrong: down interfaces, OSPF interfaces without adjacency, mismatched neighbors, and BGP sessions not Established. Reports node, link, OSPF and BGP counts without contacting routers.
Instructions
Read a network-xray lab state (read-only) and summarize it. Starts with wrong: what is wrong, each with a text line (an interface down, an OSPF interface that faces a neighbor and has no adjacency with the values both ends must share and do not, a Full adjacency whose ends still differ, a BGP session not Established); empty when nothing is. Then nodes and interfaces, links, OSPF adjacencies, BGP sessions and counts. An adjacency that never came up is not in a neighbor table, so counts also has ospf_ifaces_expected (OSPF interfaces that face a neighbor, not passive), ospf_ifaces_full and ospf_ifaces_without_adjacency. No router is contacted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "lab_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A state_<node>.json, a directory of them, an xray-states.js, or a directory of saved FRR show ... json files (optional here: the server was started with /app/demo/bgp-lp/frameB.json) |