generate_site_config
Build and validate a single site's Prisma SD-WAN config fragment, returning structured YAML ready for downstream automation.
Instructions
Build and validate one site's Prisma SD-WAN config fragment.
Structures and validates a single site's device list against the
prisma_sdwan.sites schema used by downstream automation (e.g.
Ansible), then returns both the structured object and ready-to-save
YAML text. This tool never writes to disk and never calls the Prisma
SASE API — saving the returned data to a file, combining it with other
sites, and applying it to the network is entirely up to the caller.
Args:
site_id: Site identifier for the config (e.g. "BRANCH-101").
Free text — not resolved against the live tenant, so a typo
will not be caught here.
elements: Non-empty list of element objects, each requiring
serial_number (string). Optional per-element keys:
model_name, device_variables (object), policy_variables
(object). Any other key is silently dropped, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Site identifier for the config (e.g. ``"BRANCH-101"``). Free text — not resolved against the live tenant, so a typo will not be caught here. | |
| elements | Yes | Non-empty list of element objects, each requiring ``serial_number`` (string). Optional per-element keys: ``model_name``, ``device_variables`` (object), ``policy_variables`` (object). Any other key is silently dropped, not an error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |