Branch configuration using FortiManager Jinja2 CLI templates
This document provides an example of how deploy model devices for branch FortiGates and configure IPsec/BGP/SD-WAN to connect to the headquarter's HUB FortiGate devices using the FortiManager's Jinja2 CLI templates and template groups.
This scenario is not intended as a step-by-step guide, and it is assumed that you have prior knowledge about FortiManager, FortiGate's SD-WAN features, and the Jinja2 language.
This example covers the following:
- Create metadata variables used in templates
- Create Jinja templates and a CLI template group
- Create a device group for branch devices
- Create model devices and add them to device group
- Assign a Jinja CLI template group to the branch device group
- Set metadata variable mapping for each branch FortiGate
- Preview Jinja script on device or device group
- Perform installation to apply Jinja template configurations to branches
- Jinja2 template sample scripts
Topology
All the provided Jinja2 examples and the configurations used in this example scenario refer to the following topology. Each branch FortiGate has two ISP internet connections (WAN1 and WAN2).