Device Templates uses rules to supplement the device-specific
value capability supplied by CSV files. Specify rules to resolve device
specific values at the time of deployment. You can use rules in addition
to CSV files, or instead of CSV files. The system resolves device
specific values by first checking the CSV file and then the rules.
If both the CSV file and the rules return a value, the CSV file takes
precedence. If neither the CSV file nor the rules return a value,
deployment validation will fail. If a rule cannot provide the requisite
value, the operator will be prompted to enter it at deployment.
The system resolves device specific values by first checking
the CSV file and then the rules. If both the CSV file and the rules
return a value, the CSV file takes precedence. If neither the CSV
file nor the rules return a value, deployment validation will fail.
If a rule cannot provide the requisite value, the operator will be
prompted to enter it at deployment.
Rules are applied in the order shown. You can change the order
as necessary. You can create rules for devices whose names start with
a specific word, or rules for devices with a specific tag.
You can add, edit, move, and delete rules. You can only select
one rule at a time.
- On the Junos Space Network Management Platform user interface,
select Device Templates > Definitions.
The Definitions page is displayed.
- Click the Create Template Definition icon on
the Actions bar.
The Create Template Definition page is displayed.
- Add the configuration option for which you want to supply
device-specific values using a CSV file that you have already created.
- Click the Advanced tab.
- Select the Device Specific check box.
- Click Next.
- Click Please select a CSV file.
The Manage CSV files pop-up window is displayed.
Use the Manage CSV files workflow to either select a file already
in the system, or to navigate and upload CSV files from the local
file system. You can view the content of a CSV file already in the
system by selecting it in the left pane. Its content displays in the
right pane.
- To use a CSV file already in the system, select it and
click OK.
- Specify the column and the key column in the CSV file.
- Select the Resolve the value from a CSV file at deploy
time check box.
- Click the [+] icon.
- Select the appropriate option.
A rule appears, depending on your selection in the previous
step, either of the following:
In both cases, the phrase “a specific value” is
a link, as are “a specific tag” and “a specific
word.”
- Click either a specific tag or a specific
value.
The Set $dsv field appears.
- Enter the appropriate value.
If the value you enter is not valid, an error message appears
in the form of a tool tip explaining why the entry is invalid.
- To save your input, click the OK button. To
clear your input, click the [X] button.
The rule reappears, this time with your input replacing the
link.
- (Optional) To change the sequence of in which the rules
will be applied, select a rule and click either the up arrow icon
or the down arrow icon.
The selected rule moves to the new position.
- (Optional) To delete a rule, select the rule and click
the [X] button.
The selected rule disappears.
- (Optional) To clone a rule, select the rule and click
the last icon on the right, next to the down arrow.
A clone of the selected rule appears.
- (Optional) Refresh the rules display by clicking the Refresh
icon in the lower bar of the Rules section of the Device Specific
Value dialog.
- When you have finished working with rules, close the Device
Specific Value dialog box by clicking Close.