configure_tier0_bgp
Set BGP settings on a Tier-0 gateway's locale-service: local AS number, ECMP, and inter-SR iBGP. Enables BGP after obtaining tier0_id; note neighbor peering requires separate configuration.
Instructions
[WRITE] Configure BGP settings on a Tier-0 gateway's locale-service.
Use get_tier0_gateway first to confirm the tier0_id. Sets BGP settings only (local AS, ECMP, inter-SR iBGP); neighbor creation is a separate Policy API object not exposed here, so peering will not come up from this call alone. Returns the updated BGP config dict, else {"error", "hint"}. Then check get_bgp_neighbors for session state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecmp | No | Enable ECMP for BGP routes (default True). | |
| target | No | NSX Manager target from config (default if omitted). | |
| enabled | No | Enable or disable BGP on the locale-service (default True). | |
| tier0_id | Yes | Tier-0 gateway ID, as returned by list_tier0_gateways. | |
| local_as_num | Yes | Local AS number as a string, e.g. "65001". | |
| inter_sr_ibgp | No | Enable inter-SR iBGP (default True). | |
| locale_service_id | No | Locale-service identifier (default "default"). | default |