Fortinet black logo

New Features

Create Jinja templates and a CLI template group

Create Jinja templates and a CLI template group

You can create Jinja CLI templates through the Device Manager or by importing a file from your local PC disk. Once the Jinja CLI templates have been created, you can add them all to a CLI template group to simplify management of the templates.

The Jinja CLI templates used in this example can be found inJinja2 template sample scripts

To create a Jinja CLI template:
  1. Go to Device Manager > Provisioning Templates > CLI Templates > Create New > CLI Template.
  2. Enter the following information, and click OK.
    1. Name: Enter the name of the template, for example cfg_FG.
    2. Type: Jinja scripts
    3. Script details: Input the Jinja script contents.
To import multiple Jinja scripts from a local PC disk:
  1. Go to Device Manager > Provisioning Templates > CLI Template.
  2. From the toolbar, select More > Import.
  3. Open the file location on your computer and select the Jinja script files to import. Once the upload is complete, click Import to finish.
    In this example, the script name is entered, the Pre-Run CLI Template setting is disabled, and the Script Type is Jinja Script.
To create a CLI template group:
  1. Go to Device Manager > Provisioning Templates > CLI Templates > Create New > CLI Template Group.
  2. Enter the following information, and click OK.
    1. Template Group Name: cfg_branch_JinjaGRP.
    2. Members: Select the four Jinja templates.
    3. Reorganize the members by dragging-and-dropping them.

Create Jinja templates and a CLI template group

You can create Jinja CLI templates through the Device Manager or by importing a file from your local PC disk. Once the Jinja CLI templates have been created, you can add them all to a CLI template group to simplify management of the templates.

The Jinja CLI templates used in this example can be found inJinja2 template sample scripts

To create a Jinja CLI template:
  1. Go to Device Manager > Provisioning Templates > CLI Templates > Create New > CLI Template.
  2. Enter the following information, and click OK.
    1. Name: Enter the name of the template, for example cfg_FG.
    2. Type: Jinja scripts
    3. Script details: Input the Jinja script contents.
To import multiple Jinja scripts from a local PC disk:
  1. Go to Device Manager > Provisioning Templates > CLI Template.
  2. From the toolbar, select More > Import.
  3. Open the file location on your computer and select the Jinja script files to import. Once the upload is complete, click Import to finish.
    In this example, the script name is entered, the Pre-Run CLI Template setting is disabled, and the Script Type is Jinja Script.
To create a CLI template group:
  1. Go to Device Manager > Provisioning Templates > CLI Templates > Create New > CLI Template Group.
  2. Enter the following information, and click OK.
    1. Template Group Name: cfg_branch_JinjaGRP.
    2. Members: Select the four Jinja templates.
    3. Reorganize the members by dragging-and-dropping them.