Network Management

Reply
Highlighted
Contributor II

custom variables usage policy

Hi All,

I have a few clusters of instants in my airwave group. In template, I have definition of the same wlan profile that I want to use in two different variants:

- 1st variant, triggered by VLAN ID entered in custom_variable_2 field on VC manage page:

%if custom_variable_2%
wlan access-rule "internet"
 rule any any match any any any permit
%endif%

 

%if custom_variable_2%
wlan ssid-profile "internet"
 enable
 type employee
 essid internet
 vlan %custom_variable_2%
 <rest of config omitted>
%endif%

- 2nd variant GRE tunneled to Controller, triggered by VLAN ID entered in custom_variable_3 field on VC manage page:

%if custom_variable_3%
vpn primary <wlc-ip>
vpn gre-outside
gre per-ap-tunnel
%endif%
%if custom_variable_3%
wlan access-rule "internet"
 rule any any match any any any permit
%endif%
%if custom_variable_3%
wlan ssid-profile "internet"
 enable
 type employee
 essid internet
 vlan %custom_variable_3%
 <rest of config omitted>
%endif%
%if custom_variable_3%
ip dhcp internet
 server-type Centralized,L2
 server-vlan %custom_variable_3%
 disable-split-tunnel
%endif%

Thing is, when I use custom_variable_2, "internet" ssid is configured on cluster. When I use custom_variable_3, no ssid is configured on cluster.

Where do I make mistake while creating conditional custom variables?

 

New Contributor

Re: custom variables usage policy

it works when i use this template.

 

1. set custom_variable_2 on VC manage page, such as 44. 

2. template will config a SSID 'internet' with vlan 44.

3. delete custom_variable_2 on VC manage page, then set custom_variable_3, such as 45.

4. template will set vpn config, ip dhcp config, and change ssid 'internet' vlan as 45. 

 

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: