Fortinet black logo

New Features

Branch configuration using FortiManager Jinja2 CLI templates

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:

  1. Create metadata variables used in templates
  2. Create Jinja templates and a CLI template group
  3. Create a device group for branch devices
  4. Create model devices and add them to device group
  5. Assign a Jinja CLI template group to the branch device group
  6. Set metadata variable mapping for each branch FortiGate
  7. Preview Jinja script on device or device group
  8. Perform installation to apply Jinja template configurations to branches
  9. 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).

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:

  1. Create metadata variables used in templates
  2. Create Jinja templates and a CLI template group
  3. Create a device group for branch devices
  4. Create model devices and add them to device group
  5. Assign a Jinja CLI template group to the branch device group
  6. Set metadata variable mapping for each branch FortiGate
  7. Preview Jinja script on device or device group
  8. Perform installation to apply Jinja template configurations to branches
  9. 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).