doc title Help Center

Managing Switch Variable Files

The variable files consist of a set of configuration values defined for devices in the network.

Before creating or uploading a variable file, note the following points:

The variable names must be on the left side of condition and its value must be defined on the right side. For example, %if var=100% is supported and %if 100=var% is not supported.

The < or <= or > or >= operators should have only numeric integer value on the right side. The variables used in these 4 operations are compared as integer after flooring. For example, if any float value is set as %if dpi_value > 2.8%, it is converted as %if dpi_value > 2 for comparison.

The variable names should not include white space, and the & and % special characters. The variable names must match regular expression [a-zA-Z0-9_]. If the variables values with % are defined, ensure that the variable is surrounded by space.

The first character of the variable name must be an alphabet. Numeric values are not accepted.

The values defined for the variable must not include spaces. If quotes are required, they must be included as part of the variable value. For example, if the intended template and variable name is wlan ssid-profile "emp ssid”, the template must be defined template as "wlan ssid-profile %ssid_name%” and variable as “ssid_name”: "\"emp ssid\"".

If the configuration text has the percentile % in it—for example, "url "/portal/scope.cust-5001098/Splash%20Profile%201/capture"Aruba Central treats it as a variable when you save the template. To allow the use of percentile % as an escape character, use \" in the variable definition as shown in the following example:

Template text

wlan external-captive-portal "Splash Profile 1_#guest#_"

server naw1.cloudguest.central.arubanetworks.com

port 443

url %url%

Variable

"url": "\"/portal/scope.cust-5001098/Splash%20Profile%201/capture\""

/*]]>*/