Get Logical Router Route Table
Deprecated - Please use /logical-routers/<logical-router-id>/routing/routing-table for RIB and /logical-routers/<logical-router-id>/routing/forwarding-table for FIB. Returns the route table for the logical router on a node of the given transport-node-id. Query parameter "transport_node_id=<transport-node-id>" is required. 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
Maximum number of results to return in this page (server may return fewer)
sort_ascending
Field by which records are sorted
Data source type.
TransportNode Id
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/route-table