Assigning a Device Template to Devices
You assign a device template to devices to set up this device template for deployment. When you assign a template to devices, the device template is placed in the queue to deploy to devices. You can review the accumulated configuration changes that are in the queue to be deployed to the device. A device template that has been assigned to a device cannot be deployed directly. You can use this workflow to assign both configuration templates and quick templates.
The chassis cluster devices discovered using the fxp interface are treated as separate units when assigning a device template. It is same for logical systems and virtual chassis configuration setups as well. In such scenarios, select the master node or the primary node of the setup to deploy the template.
To assign a device template to devices:
- On the Junos Space Network Management Platform user interface,
select Device Templates > Templates.
The Templates page is displayed.
- Select the configuration template or quick template to
be assigned, and select Assign to Device from the Actions
The Assign to Device page is displayed. You can view the list of compatible devices, that is, those devices that belong to the same device family as the device template.
- From the Selected Template Version drop-down list, select the version of the device template that you want to assign to devices.
- You can assign the device template to devices manually,
using tags, or by providing a CSV file with filter criteria.
To assign the device template to devices manually, search for compatible devices by entering the search criteria in the search box and clicking the magnifying glass icon.
The list of devices are filtered by the search criteria.
To filter devices by the device properties, select the check box next to the appropriate device column on the Column Filter drop-down list.
From Junos Space Platform Release 17.2R1 onward, when you select devices by CSV, you can choose to select all managed devices. Select the Include All Managed Devices check box to list all managed devices for selection.
To provide filter criteria using a CSV file, click the CSV Filter icon and upload the CSV file with filter criteria through the Upload a CSV pop-up window.
To select a device by using tags, select an appropriate tag from the Tag Filter drop-down list.
- Click Next.
- From the left section, select the devices to which you want to assign the device template.
- On the right section, click XML or CLI tabs to view the XML and CLI formats of the configuration in the device template.
- Click the Validate on Device link to validate
the configuration on the device.
By validating the configuration, you ensure that the device template is semantically correct. If the validation results fails, change the template parameters appropriately.
If the validation succeeds, the Validation Status column in the left section displays a SUCCESS status.
- Click Assign.
The device template is assigned to devices. You are redirected to the Templates page.