get_bgp_template
Retrieve the router BGP configuration from a BGP provisioning template by ADOM and template name, including AS, router ID, neighbors, and networks for review or troubleshooting.
Instructions
Get the router bgp configuration inside a BGP provisioning template.
get_template returns only a template's metadata. This reads the BGP
body a router_bgp template pushes -- AS, router-id, neighbors,
neighbor-groups, neighbor-ranges and networks -- e.g. the templates an
SD-WAN Overlay Template generates for its hub and branches. Values may
be $(variable) placeholders resolved per device at install.
The template body path is not in the bundled FNDN specs; it is verified
live on FortiManager 8.0.2 (see get_bgp_template_config in the
client for the details and the 7.x fallback).
Args:
adom: ADOM name
name: BGP template name (list_templates entries whose
template setting.stype is router_bgp)
Returns:
dict with keys:
- adom, name
- bgp: raw router/bgp config object (neighbor password
stripped -- see _BGP_SECRET_FIELDS)
- summary: condensed AS/router-id/neighbors/networks
- error / error_code: on failure
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": {
"adom": "<adom>",
"name": "<name>"
},
"name": "get_bgp_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||