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:
- Go to Device Manager > Provisioning Templates > CLI Templates > Create New > CLI Template.
- Enter the following information, and click OK.
- Name: Enter the name of the template, for example
cfg_FG
. - Type: Jinja scripts
- Script details: Input the Jinja script contents.
- Name: Enter the name of the template, for example
To import multiple Jinja scripts from a local PC disk:
- Go to Device Manager > Provisioning Templates > CLI Template.
- From the toolbar, select More > Import.
- 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:
- Go to Device Manager > Provisioning Templates > CLI Templates > Create New > CLI Template Group.
- Enter the following information, and click OK.
- Template Group Name: cfg_branch_JinjaGRP.
- Members: Select the four Jinja templates.
- Reorganize the members by dragging-and-dropping them.