configure_tier0_bgp
Configure BGP routing on Tier-0 gateways by adding or updating neighbor connections to enable network communication between different autonomous systems.
Instructions
Configure BGP on a Tier-0 gateway (add/update a BGP neighbor).
Args: tier0_id: The Tier-0 gateway ID. local_as: Local AS number. neighbor_address: BGP neighbor IP address. remote_as: Remote AS number. hold_time: Hold down time in seconds (default 180). keep_alive: Keep alive time in seconds (default 60). target: Optional NSX Manager target name from config. Uses default if omitted.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier0_id | Yes | ||
| local_as | Yes | ||
| neighbor_address | Yes | ||
| remote_as | Yes | ||
| hold_time | No | ||
| keep_alive | No | ||
| target | No |
Implementation Reference
- mcp_server/server.py:526-556 (handler)The MCP tool handler for 'configure_tier0_bgp' which orchestrates the call to the underlying operation function.
def configure_tier0_bgp( tier0_id: str, local_as: int, neighbor_address: str, remote_as: int, hold_time: int = 180, keep_alive: int = 60, target: str | None = None, ) -> dict: """Configure BGP on a Tier-0 gateway (add/update a BGP neighbor). Args: tier0_id: The Tier-0 gateway ID. local_as: Local AS number. neighbor_address: BGP neighbor IP address. remote_as: Remote AS number. hold_time: Hold down time in seconds (default 180). keep_alive: Keep alive time in seconds (default 60). target: Optional NSX Manager target name from config. Uses default if omitted. """ from vmware_nsx.ops.gateway_mgmt import configure_tier0_bgp as _configure client = _get_connection(target) return _configure( client, tier0_id, local_as=local_as, neighbor_address=neighbor_address, remote_as=remote_as, hold_time=hold_time, keep_alive=keep_alive, )