get_bgp_neighbors
Retrieve BGP configuration, neighbor details, and session status for a Tier-0 gateway to verify dynamic routing and troubleshoot connectivity.
Instructions
[READ] Get BGP configuration and neighbor status for a Tier-0 gateway.
No side effects. Use to verify dynamic routing after configure_tier0_bgp or when troubleshooting north-south connectivity. Reads the gateway's first locale-service, its BGP config and configured neighbors (Policy API), plus realized neighbor session state (Management API) where available. Returns tier0_id, locale-service info, BGP config (local AS, enabled, ECMP), neighbors (peer IP, remote ASN, hold_down_time, keep_alive_time), and session status (connection_state, in/out prefix counts); includes a hint when the gateway has no locale-services. On failure returns {"error", "hint"}.
Args: tier0_id: Tier-0 gateway ID, as returned by list_tier0_gateways. target: NSX Manager name from config.yaml. Uses the default target if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| tier0_id | Yes |