Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Variables in Device Profiles

By using variables to stand for values such as VLAN IDs or subnets (which vary across WLANs), you can get even more value from your device profiles.

Create and use device profile variables just like you do elsewhere in the Mist portal: first you define {{key}}, value pairs in the device profile, and then you reference the key(s) in a WLAN template. In this way, variables make it easy to both scale the configuration and have AP-specific settings that vary according to the WLAN.

Variables are most commonly used in device profiles for WLAN fields including, SSID, passphrase, VLAN, radio bands and RADIUS Authentication / Accounting Server.

Syntax and Rules for Variables

  • {{variable}}, and {{guest2_VLAN_id1}}.

  • Except for underscores, don't use spaces or special characters.

  • Upper case is OK.

  • Numbers are OK.

  • Use double brackets {{variable}} to define the variable name.

Regarding precedence, variables configured directly on the APs are given the highest priority, followed by those configured in a device profile, and then those configured at the Site level.

You can also use the Mist API to view the actual configuration that is being applied, for example, as a way to see exactly which variable is being used: Get Org Device Profile.