Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure Site Variables

You can streamline and standardize the Juniper Mist™ configuration process by using site variables in your templates, such as WLAN and WAN Edge templates.

With variables, you can easily use a single template to configure multiple sites, even though they have different attributes such as subnet addresses and VLAN IDs.

Naming Syntax

Variable names must be properly formatted.

  • Contain the name within double curly brackets, such as {{variableName}}.

  • The name can include letters, numbers, and underscores. Do not include any other special characters.

Example

This example shows how you can use one WLAN template for two sites that have different VLAN IDs.

Example: variables in site configuration and WLAN template

  • For Site A and Site B, you add variables with the same variable names, but different values.

  • In the WLAN template, you enter the variable names.

  • Juniper Mist uses this WLAN template to configure devices with the correct VLAN IDs for their respective sites.

Tip:

When working on configuration screens, look for the VAR indicators. Fields with this indicator allow site variables.

Example VAR Indicator on a Configuration Screen

To configure site variables:

  1. From the left menu, select Organization > Admin > Site Configuration.
  2. Click the site.
  3. On the Site Configuration page, scroll down to the Site Variables section.
  4. Add, import, or modify site variables:
    • To manually add a site variable, click Add Variable. Enter the name (following the naming syntax), enter the value, and then click Save.

      Example: Add Variables window with a sample variable name and value

    • To import a list of variables, first set up a CSV file that contains a header row and body rows similar to the example below. To avoid errors, be sure to follow the naming syntax. On the Site Configuration page, click Import Variables, select the file, and then click Save.

      CSV Example

      Variable,Value

      {{vlan01}},10

      {{vlan02}},20

      Note:

      If your file contains a variable that already exists in the Site Variables list, Juniper Mist ignores that row of the CSV file.

    • To edit a variable, click it, make your changes, and then click Save.

    • To delete a variable, click it, and then click Delete.

  5. To save the site configuration, click Save at the top right corner of the page.
    Be sure to save your changes before you leave the Site Configuration page. Although your changes appear in the Site Variables section, they are not saved until you click the Save button at the top of the page.