Configuring and Managing Quick Templates
You can create and manage custom templates for your device configurations that are deployable through Network Director. Unlike other features that support implementation of only some of the device configurations, quick templates enables you to set up all the configuration parameters for any supported device because it is Device Management Interface (DMI) schema-driven.
Each device type is described by a unique data model that contains all the configuration data for that device. The Schema window shows the device family that you select while you create a template and the DMI schema that lists all the possible fields and attributes for a type of device. The latest schema describe the new features associated with recent device releases. After you create a quick template, you can add or delete device configuration details to and from quick templates by loading the configuration data from the schema. You need to apply these templates to devices manually.
If you click the More tips link you are guided on
the variable and the command syntax usages. It also provides instructions
on how to issue sub-commands. When defining your network configuration
in quick templates by using a particular command, ensure that you
define the sub-commands individually. Stating sub-commands as a single
command causes errors. For example, the commands set snmp location sunnyvale
and set snmp contact admin@example.com
are valid when defined individually. However,
if you combine these commands into the single command set snmp
location sunnyvale contact admin@example.com
schema validation
treats the end command contact
as an extra entry and throws
an error.
To avoid any conflicts with the profile configurations while creating the template, a warning message Please don’t create any Profile conflict configuration is displayed to indicate that you must not create a configuration as part of the template if the same configuration is available as part of the profile configuration.
The Templates page in the Quick Templates workspace lists the device templates created, in a tabular view. The Table 1 lists the columns in the table along with a description:
Column |
Description |
---|---|
Creation Time |
Date and time when the template was created. |
Template Name |
Name of the quick template. |
Device Family |
Name of the device family for which the template is created. Selecting the option Common indicates that the template is applicable for all the device families. |
OS Version |
Junos OS version of the device family selected. |
Description |
Description of the quick template. |
Last Updated Time |
Date and time when the template was last modified. |
Last Updated By |
User name of the person who created the template. |
This topic describes:
Creating a Quick Template
Quick templates enable you create a template to define configurations for your devices. You can create and deploy quick templates from the Wired workspace.
To create a quick template:
Applying Templates to Devices
After you create a template, you can define your device configuration to be managed by using the quick templates, and apply these templates to the multiple devices.
To assign a template to a device:
Editing a Quick Template
You can edit a quick template to modify configurations for your devices.
To edit a quick template:
Deleting a Quick Template
To delete a quick template:
Cloning a Quick Template
A cloned quick template is a copy of an existing quick template. You can use the quick template as a primary copy to create clone of that template. When you clone a quick template, you create a copy of the entire device configuration, including its settings, and other contents. Cloning a quick template saves time if you are deploying device configuration that are similar to the primary copy, rather than creating a template and defining configurations multiple times.
To create a copy of an existing template:
Using the Quick Template Details Window
Use the Quick Template Details window to view the details of the quick template. Table 2 describes the fields in this window.
Field |
Description |
---|---|
Name |
Displays the name of the quick template. |
Description |
Provides a description of the quick template. |
Device Family |
Displays the device family for which quick template is created. |
OS Version |
Displays the Junos OS version for the selected device family. |
CLI Commands |
Displays the CLI commands configured for the device family. |
Viewing Deployed Quick Templates
You deploy the device configurations defined in a quick template after you have applied the template to a device. The View Deployed Templates option enables an administrator or an operator to view the list of templates that are deployed to the devices.
You can mouse over the template name to view the date and time when the template was created and last modified.
The View Deployed Templates page lists the deployed templates device in a tabular view. The Table 3 lists the columns in the table along with a description.
Column |
Description |
---|---|
Template Name |
Indicates the name of the template whose configuration is deployed to the system. |
Creation Time |
Indicates the date and time when the template was created. |
Last Updated Time |
Indicates the date and time when the template was last modified. |
User Name |
Indicates the user name of the person who created the template. |
Depending upon the type of approval mode configured—Manual Approval or Auto Approval mode— you can either deploy the device configurations defined in the template directly or by pursuing an approval from a configuration approver for the device changes.
To view the list of quick templates that are deployed to a device: