Static Route Tools
These tools report the Static component of flockd: the static routes as configured. Whether a static route is the one the router uses for its prefix is for rib_lookup to say.
static_overview
How many static routes and VRFs the Static component has, and the route counts of each VRF. The same as flockc static overview and flockc static list-vrfs, or flockc static vrf <vrf> show for one.
| Argument | |
|---|---|
daemon | The router |
vrf | One VRF to report on, by name. Leave out for the whole component and every VRF |
static_routes
A router's static routes, with each path's next hops. The same as flockc static vrf <vrf> lookup <prefix> and flockc static vrf <vrf> walk <root>.
| Argument | |
|---|---|
daemon | The router |
vrf | The VRF to look in. Leave out for the main VRF |
prefix | One prefix to look up, e.g. 10.1.0.0/16. Leave out to walk the static routes |
root | Walk the prefixes under this one. Leave out for every IPv4 prefix; ::/0 for every IPv6 prefix |
start_from | Go on from after this prefix: the next of the answer before |
max_entries | The most entries to return: 100 unless given, and never over 1000 |
{
"prefix": "203.0.113.0/24",
"paths": [
{
"admin_dist": null,
"origin": { "Static": "Conf" },
"nhs": [
{
"Recursive": {
"vrf": { "vrf_id": 254, "vrf_name": "default" },
"ip_addr": "10.0.12.2",
"out_label": null
}
}
]
}
]
}