Description

This article provides a procedure for creating a user on a Junos device using device templates on Junos Space.

Symptoms

A template push with a new user configuration does not work when the class attribute or any other attribute is already defined on a managed device.

Solution

When Junos Space tries to push a class configuration that is already defined on a device, a template push fails.

To create a user on a Junos device, you must define a device-specific value for class on Junos Space.

The procedure below guides you through the steps required to define a device-specific value for class on Junos Space:

  1. Create a comma-separated value (CSV) file.
  2. Create a template definition.
  3. Create a template.
  4. Deploy the template.


1. Create a comma-separated value (CSV) file in the format below. Note that you must include all the attributes already defined on the device.

device,class
< device-1 hostname>, <class to be assigned>
< device-2 hostname>, <class to be assigned>
< device-3 hostname>, <class to be assigned>

A sample CSV can be downloaded from here: Class.csv

2. Create a template definition as outlined below. For more information, see  Creating a Template Definition in the Tech Doc.

  • Ensure that the Device Specific field is checked for Class . Click Next.

alt


  • In the Class field, click Device Specific Value . Click Finish .

alt


  • Click Please Select a CSV File .
  • In the Column field, select class .
  • In the Key column field, select device .
  • Click Save .

alt


  • Upload the CSV file that was created: Click Upload .

alt


3. Create a template using this definition. For more information, see Creating a Device Template in the Tech Doc.

4. Deploy the template . For more information, see Deploying a Template in the Tech Doc.

For more information, see Specifying Device-Specific Values in Definitions in the Tech Doc.