bgp_neighbors
Lists BGP neighbors per router with peer address, AS, iBGP/eBGP, state, and prefixes received, and flags every session that is not Established to diagnose why a BGP neighbor is down.
Instructions
Starts with wrong: each BGP session that is not Established, with a text line (empty when none). Then BGP neighbors per router as collected: peer address, remote AS, iBGP/eBGP, state, established, and prefixes received (null when the data has no count). All routers, or one with router. Read-only.
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": "bgp_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Same input as lab_state (optional here: the server was started with /app/demo/bgp-lp/frameB.json) | |
| router | No | Only this router, e.g. r1 (default: all routers) |