configure_tier0_bgp
Configure BGP settings on a Tier-0 gateway's locale-service: set local AS, ECMP, and inter-SR iBGP. Returns the updated BGP config for verification.
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.
Args: tier0_id: Tier-0 gateway ID, as returned by list_tier0_gateways. local_as_num: Local AS number as a string, e.g. "65001". enabled: Enable or disable BGP on the locale-service (default True). ecmp: Enable ECMP for BGP routes (default True). inter_sr_ibgp: Enable inter-SR iBGP (default True). locale_service_id: Locale-service identifier (default "default"). target: NSX Manager target from config (default if omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecmp | No | ||
| target | No | ||
| enabled | No | ||
| tier0_id | Yes | ||
| local_as_num | Yes | ||
| inter_sr_ibgp | No | ||
| locale_service_id | No | default |