Configuring and Managing Quick Templates
You can create and manage custom templates for your device configurations that are deployable through Connectivity Services 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 xyz and set snmp contact email@example.com are valid when defined individually. However, if you combine these commands into the single command set snmp location xyz contact firstname.lastname@example.org schema validation treats the end command, contact, as an extra entry and displays 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:
Table 1: Quick Templates
Date and time when the template was created.
Name of the quick template.
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.
Junos OS version of the device family selected.
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:
- Click the Build icon in the Connectivity Services Director banner.
- Select Wired > Tasks > Manage Quick Templates in the Tasks pane.
The Manage Quick Template page appears.
- Click Create.
The Create Quick Template page opens.
- Specify the following details:
Name—Type a name for the quick template. The quick template name is required. The quick template name must be unique and limited to 63 characters.
Description—Type a description for the quick template. The description is optional and limited to 255 characters.
Device Family—From the Device Family list, select an appropriate device family. Selecting the option Common in device family creates a generic template, which can be applied to any device family. Therefore, specify only the most common settings such as system, SNMP, or track group settings that are applicable to all the platforms. If you want to define the settings that are specific to a platform select the appropriate platform from the device family instead of the Common option. For the list of device families supported by Connectivity Services Director, see the latest Connectivity Services Director Release Notes.
ACX Series routers are listed when you select the Common option from the Device Family list on the Create Quick Template page. If you select the option as MX from the Device Family list, only MX Series routers are displayed on the Assign Quick Templates page. To apply quick templates for ACX Series routers, you must select the Common option as the device family type.
OS Version—From the OS Version list, select an appropriate DMI Schema version running on that platform. If you are unable to locate the DMI schema for a device family, you can update the DMI schema version on the Junos Space server. For more information about updating the DMI schema on the Junos Space server, see Junos Space documentation.
The Schema window displays the device family and the OS version selected in this step.
- Type or paste the Junos commands in the text area provided in the CLI commands section. Alternatively, you can navigate through the configuration option levels (at the left side) in Schema and double-click the configuration option you want to add to the quick template. The selected configuration option is displayed in the CLI Commands text area. The configuration options available here depend on the device family you selected.
- Optionally, you can modify the configuration in the CLI Commands text area by using the tool bar functionalities such as undo, redo, cut, copy, paste, and find.
- Click Save.
The template you created is displayed in the quick templates table.
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:
- Select the check box against the quick template for which you want to assign the profile.
- Click Assign.
The Assign Quick Template : template names page opens.
- Choose at least one device to which the profile needs to be assigned.
- Click Next.
- Choose a device and specify the quick template variables
in Configure attributes page and click Save.
For example, when you configure a VLAN interface in a quick template, you can specify the variables VLAN and interface names for that template for a selected device.
- Optionally, you can apply the settings specified here to all the selected devices of a device family by selecting the check box against the option Apply above settings to all other selected devices.
- Click Next and then click Finish.
- Review the profile association with the quick template and then click Finish.
Editing a Quick Template
You can edit a quick template to modify configurations for your devices.
To edit a quick template:
- Select the check box against the quick template that you want to modify.
- Click Edit.
The Edit Quick Template : template name page opens.
- Make the required changes to the quick template and click Save.
Deleting a Quick Template
To delete a quick template:
- Select the check box against the quick template that you want to delete.
- Click Delete.
The Delete Quick Templates window opens.
- Click Yes to delete the quick template; else click No.
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:
- Select the check box against the quick template you want to clone.
- Click Clone.
The cloned template named primary template-clone is shown in the list of templates.
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.
Table 2: Quick Template Details
Displays the name of the quick template.
Provides a description of the quick template.
Displays the device family for which quick template is created.
Displays the Junos OS version for the selected device family.
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.
Table 3: View Deployed Template
Indicates the name of the template whose configuration is deployed to the system.
Indicates the date and time when the template was created.
Last Updated Time
Indicates the date and time when the template was last modified.
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:
- Click the Build Mode icon in the Connectivity Services Director banner.
- Select a device in the View pane.
The View Deployed Templates option appears under Wired>Tasks.
- Click View Deployed Templates.
The Deployed Templates For Device: device name page displays listing the templates applied for that device.