get_bgp_neighbors
Retrieve BGP configuration and neighbor status for a Tier-0 gateway to verify dynamic routing or troubleshoot north-south connectivity.
Instructions
[READ] Get BGP configuration and neighbor status for a Tier-0 gateway.
Use this to verify dynamic routing after configure_tier0_bgp, or when troubleshooting north-south connectivity. Returns one dict (not the list envelope): tier0_id, locale-service info, BGP config (local AS, enabled, ECMP), neighbors (peer IP, remote ASN, timers) and realized session status (connection_state, in/out prefix counts). Only the gateway's FIRST locale-service is read; a gateway with none returns a hint, not an error.
If sessions are down, check get_edge_cluster_status — BGP runs on the edge members. Static routes are listed separately by list_static_routes.
Args: tier0_id: Tier-0 gateway ID, as returned by list_tier0_gateways. target: NSX Manager target from config (default if omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| tier0_id | Yes |