Get Logical Router Routing Table In Csv Format
Returns the route table in CSV format 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, paramter "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?format=csv
GET /policy/api/v1/infra/tier-1s/<tier-1-id>/routing-table?format=csv
logical-router-id
IPAddress or CIDR Block
Route source filter parameter
Data source type.
TransportNode Id
VRF filter parameter
OK
{
"file_name": "string",
"last_update_timestamp": 0,
"results": [
{
"admin_distance": 0,
"logical_router_port_id": "string",
"lr_component_id": "string",
"lr_component_type": "string",
"network": "string",
"next_hop": "string",
"route_type": "string"
}
]
}
Not Found
curl -H 'Authorization: <value>' https://{api_host}/api/v1/logical-routers/{logical-router-id}/routing/routing-table?format=csv