Network Management

last person joined: yesterday 

Keep an informative eye on your network with HPE Aruba Networking network management solutions
Expand all | Collapse all

custom variables usage policy

This thread has been viewed 3 times
  • 1.  custom variables usage policy

    Posted Sep 19, 2018 04:35 PM

    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?

     



  • 2.  RE: custom variables usage policy

    EMPLOYEE
    Posted Sep 21, 2018 02:00 AM

    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.