vyos_configure_bgp
Configures BGP on a VyOS router by setting the local AS, global options, and neighbor policies in a single commit, with optional persistence.
Instructions
Configure BGP: local AS, global settings and neighbors in one commit.
Args: local_as: Local autonomous system number. settings: Global BGP settings as {space-separated path: value}, e.g. {"parameters router-id": "192.0.2.1", "address-family ipv4-unicast network": "203.0.113.0/24"}. neighbors: Map of neighbor IP -> settings map, e.g. {"192.0.2.2": {"remote-as": "65002", "address-family ipv4-unicast soft-reconfiguration": "inbound"}}. save: Persist after commit (default False).
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": {
"local_as": "<local_as>"
},
"name": "vyos_configure_bgp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| local_as | Yes | ||
| settings | No | ||
| neighbors | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |