Set network VPN site bgp
set_network_vpn_site_bgpEnable, update, or disable BGP over an eligible IPsec site gateway, providing generation, ASN, and listed prefixes for route-based line 2.
Instructions
Enable or change BGP over an eligible IPsec site using the gateway generation. For two lines, the backend requires listed prefixes and a qualified route-based line 2 with current agent capability; preserve its typed 409 vpn_ipsec_lines_bgp if unavailable. Set enabled=false to turn BGP off; when switching from any_private, supply remote_prefixes for static routing. Follow each line's bgp and active facts separately; no operation ID is promised. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gateway_id": "<gateway_id>",
"peer_id": "<peer_id>",
"expected_generation": "<expected_generation>"
},
"name": "set_network_vpn_site_bgp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inner | No | ||
| accept | No | ||
| enabled | No | ||
| peer_id | Yes | Exact lowercase UUID returned by an owned networking resource | |
| peer_asn | No | ||
| local_asn | No | ||
| gateway_id | Yes | Exact lowercase UUID returned by an owned networking resource | |
| hold_seconds | No | ||
| remote_prefixes | No | The office's PRIVATE IPv4 networks (10/8, 172.16/12, 192.168/16 or 100.64/10), canonical and disjoint | |
| keepalive_seconds | No | ||
| expected_generation | Yes |