NSX-T Data Center REST API

Get routes learned by BGP neighbor

Returns routes learned by BGP neighbor from all virtual network appliance nodes on which
this neighbor is currently enabled.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/route-controllers/{route-controller-id}/bgp/neighbors/{neighbor-id}/routes
Request Headers:
n/a
Query Parameters:
BgpRoutesRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr> /policy/api/v1/infra/route-controllers/RC-1/bgp/neighbors/RC-1-bgp-neighbor-1/routes

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
RouteControllerBgpNeighborRoutesListResult+

Example Response:

{ "results": [ { "neighbor_path": "/infra/route-controllers/RC-1/bgp/neighbors/RC-1-bgp-neighbor-1", "enforcement_point_path": "/infra/sites/default/enforcement-points/default", "virtual_network_appliance_routes": [ { "transport_node_id": "ea2426f6-1cc9-43bd-97e8-e40b3a2dcdc5", "source_address": "40.40.40.101", "routes": [] }, { "transport_node_id": "94b22101-31ce-40ef-8508-28dace021619", "source_address": "40.40.40.101", "routes": [ { "network": "51.51.1.0/24", "next_hop": "40.40.40.10", "local_pref": 100, "weight": 0, "med": 0, "as_path": "521", "rd": "192.168.100.40:2", "evpn_route_type": 5, "rmac": "aa:bb:cc:40:40:10", "eth_tag": 0, "esi": "" }, { "network": "192.168.100.40/32", "next_hop": "40.40.40.10", "local_pref": 100, "weight": 0, "med": 0, "as_path": "521", "rd": "192.168.100.40:2", "evpn_route_type": 5, "rmac": "aa:bb:cc:40:40:10", "eth_tag": 0, "esi": "" } ] } ] } ] }

Required Permissions:

read

Feature:

policy_route_controller

Additional Errors: