compare_bgp_routes
Diff BGP routes between two instants: one row per differing route.
Input fields: bgp_graph_time (str): The BGP graph epoch to query (the t1 epoch) t0 (str): ISO 8601 timestamp, the earlier instant t1 (str): ISO 8601 timestamp, the later instant router_id (str, optional): Scope the diff to one reporting speaker t0_graph_time (str, optional): Epoch of t0 when it differs from bgp_graph_time (collector restart); must be the same collector
Output fields: dict with key: items (list of BgpRouteDiffRow; diff_status is added|withdrawn|changed, a changed row also carries diff_prev). There is no total: count the rows per diff_status and quote those counts.
Equivalent to GET /bgp-graph/{bgp_graph_time}/routes/compare.
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": {
"bgp_graph_time": "<bgp_graph_time>",
"t0": "<t0>",
"t1": "<t1>"
},
"name": "compare_bgp_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| t0 | Yes | ||
| t1 | Yes | ||
| router_id | No | ||
| t0_graph_time | No | ||
| bgp_graph_time | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |