Get Logical Router Routing Table
Returns the route table(RIB) for the logical router on a node of the given transport-node-id. Query parameter "transport_node_id=<transport-node-id>" is required. To filter the result by network address, parameter "network_prefix=<a.b.c.d/mask>" needs to be specified. To filter the result by route source, parameter "route_source=<source_type>" needs to be specified where source_type can be BGP, STATIC, CONNECTED, NSX_STATIC, TIER1_NAT or TIER0_NAT. It is also possible to filter the RIB table using both network address and route source filter together. Query parameter "source=realtime" is the only supported source.
Please use below Policy API.
GET /policy/api/v1/infra/tier-0s/<tier-0-id>/routing-table
GET /policy/api/v1/infra/tier-1s/<tier-1-id>/routing-table
logical-router-id
Opaque cursor to be used for getting next page of records (supplied by current result page)
Comma separated list of fields that should be included in query result
IPAddress or CIDR Block
Maximum number of results to return in this page (server may return fewer)
Route source filter parameter
sort_ascending
Field by which records are sorted
Data source type.
TransportNode Id
VRF filter parameter
OK
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"cursor": "string",
"result_count": 0,
"sort_ascending": false,
"sort_by": "string",
"last_update_timestamp": 0,
"logical_router_id": "string",
"logical_router_name": "string",
"results": [
{
"admin_distance": 0,
"black_hole": false,
"logical_router_port_id": "string",
"lr_component_id": "string",
"lr_component_type": "string",
"network": "string",
"next_hop": "string",
"next_hop_gateway": "string",
"route_type": "string"
}
]
}
Not Found
curl -H 'Authorization: <value>' https://{api_host}/api/v1/logical-routers/{logical-router-id}/routing/routing-table