Step 1 |
From the Cisco DNA Center home page, choose . By default, the Onboarding Configuration project is available for creating day-0 templates. You can create your own custom projects. Templates created in custom projects
are categorized as day-N templates.
|
Step 2 |
In the tree pane, select the project under which you are creating templates, and click the gear icon . Alternately, click .
Note
|
The template that you create for day 0 can also be applied for day N.
|
|
Step 3 |
In the Add New Template window, click Regular Template.
|
Step 4 |
In the Name text box, enter a unique name for the template.
|
Step 5 |
In the Project Name drop-down list, select the project.
The drop-down list is enabled if you are navigating from the path. The drop-down list is disabled if you select a project and click the gear icon in the tree pane.
|
Step 6 |
In the Description text box, enter a description for the template.
|
Step 7 |
In the Tags text box, enter an intuitive name to tag the templates. Tagging a configuration template helps you to:
Note
|
If you use tags to filter the templates, you must apply the same tags to the device to which you want to apply the templates.
Otherwise, you get the following error during provisioning: "Cannot select the device. Not compatible with template."
|
|
Step 8 |
Click Edit to view the selected device types and choose the device types that you want to apply to the template.
To view the selected devices, choose Selected from the Show drop-down list. By default, all device types are displayed.
There are different granularity levels for choosing the device type from the hierarchical structure. The device type is used
during deployment to ensure that templates deploy devices that match the specified device type criteria. This lets you create
specialized templates for specific device models.
Template Editor does not show device product IDs (PIDs); instead, it shows the device series and model description. You can
use cisco.com to look up the device data sheet based on the PID, find the device series and model description, and choose
the device type appropriately.
|
Step 9 |
After choosing the device types, click Back to Add New Template.
|
Step 10 |
From the Software Type drop-down list, choose the software type: IOS, IOS-XE, IOS-XR, NX-OS, Cisco Controller, Wide Area Application Services, Adaptive Security Appliance, NFV- OS, and Others.
For example, if you select IOS as the software type, the commands apply to all software types, including IOS-XE and IOS-XR.
This value is used during provisioning to check whether the selected device conforms to the selection in the template.
|
Step 11 |
In the Software Version text box, enter the software version. During provisioning, Cisco DNA Center checks to see if the selected device has the software version listed in the template. If there is a mismatch, the provision
skips the template.
|
Step 12 |
Click Add. The template is created and shown in the tree view under the project you selected.
|
Step 13 |
You can edit the template content by selecting the template that you created in the left menu. To edit the template content,
see Edit Templates.
|
Step 14 |
In the Template Editor window, enter content for the template. You can use the Velocity Template Language (VTL) to write the content in the template.
For information about using VTL, see http://velocity.apache.org/engine/devel/vtl-reference.html.
After saving the template, Cisco DNA Center checks for any errors in the template. If there are any velocity syntax errors, the template content is not saved and all
input variables that are defined in the template are automatically identified during the save process. Local variables (variables
that are used in for loops, assigned though a set, and so on) are ignored.
|
Step 15 |
To validate the template, from the Actions drop-down list, choose Check for errors.
Cisco DNA Center checks for the following errors and reports them:
|
Step 16 |
To save the template content, from the Actions drop-down list, choose Save.
|
Step 17 |
To commit the template, from the Actions drop-down list, choose Commit. You can see only the committed templates in the network profile section.
Note
|
You can associate only a committed template to a network profile.
|
|