Import Configuration Templates
In Customer Portal, users with the Tenant Administrator role can import a configuration template by specifying the parameters using a configuration template file (Jinja template language), Yang model file (schema for the configuration), and the Viewdef file (configuration of the UI).
In CSO releases before Release 5.1.0, configuration templates are called stage-2 configuration templates.
To import a configuration template:
- Select Resources > Templates > Configuration Templates.
The Configuration Templates page appears.
- Select More > Import.
The Import Configuration Template page appears.
- Complete the configuration according to the guidelines
provided in Table 1.
Note Fields marked with an asterisk (*) are mandatory.
- Click OK.
You are returned to the Configuration Templates page and a popup appears displaying the status of the import operation.
- Click OK to close the popup.
You are returned to the Configuration Templates page.
If the configuration template is imported successfully, you can validate the configuration template by using the Preview workflow and then assign the configuration template to a device template or deploy it on a device.
Table 1: Import Configuration Template Settings
Setting | Guideline |
---|---|
Template Name | Enter a unique name that can only contain alphanumeric characters and hyphens; 15-character maximum. |
Description | Enter a description for the configuration template. |
Output Config Format | Select the output configuration format for the template:
|
Device Family | Select the device family for which you are adding the template; for example, juniper-nfx. |
Configuration Template File | Specify the file containing the configuration (in Jinja Template language syntax) by clicking the Browse button to navigate to the directory where the configuration template file is located and selecting the file. |
Yang Model File | Specify the Yang data model (configuration schema) file by clicking the Browse button to navigate to the directory where the Yang model file is located and selecting the file. |
Viewdef File | Specify the Viewdef file, which contains the configuration for the UI, by clicking the Browse button to navigate to the directory where the Viewdef file is located and selecting the file. |