Network Management

last person joined: 15 hours ago 

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

Airwave template if statement

This thread has been viewed 1 times
  • 1.  Airwave template if statement

    Posted Jun 22, 2017 02:19 AM

    Hi,

     

    Is it possible to do an double if statement in templates in Airwave?

     

    Like:

     

    %if num_of_normal_port=28 && ap_include_10=test%

    aaa port-access authenticator 1-22

    %endif%
    %if num_of_normal_port=28%
    aaa port-access authenticator 1-24

    %endif%

     

    This doesn't work it will select the second one, i tried &, && and and?

     



  • 2.  RE: Airwave template if statement

    EMPLOYEE
    Posted Jun 22, 2017 06:51 AM

    Hi,

     

    We could have a conditional varabiles in template like below

    %if use_dhcp=1%
        ip address dhcp-client
    %endif%
    %if use_dhcp=0%
        ip address %ip_address% %netmask%
    %endif%

     

    make sure the varaibles and value are valid. Follow Airwave user guide for more details. We can get from Home>Documentation section and check Creating and Using Templates chapter.

     

    Regards,

    Pavan

    If my post addresses your query give kudos:)



  • 3.  RE: Airwave template if statement

    Posted Jun 22, 2017 07:16 AM

    Hi,

     

    Thanks for your reply.

    I saw this also in the documentation, it does not fix my problem.

     

    its the same with number_of_normalports, if that variable is 28 for example and the ap_include_1 is test than i want a special configuration. If this is possible you would be much more flexible with the templating.

     

    Is there a way to check if a value is empty?



  • 4.  RE: Airwave template if statement

    EMPLOYEE
    Posted Jun 22, 2017 07:26 AM

    Hi,

     

    && condtion I dont think it is valid syntax and it wont work in template, it willl throw error message.

     

    We have Aruba GUI and Instant GUI option aswell if you want to mange controller/switches/IAP devcies from Airwave which is more userfrienndly then templates.

     

    I didnt get your last questoin about checking empty values? you mean in template ?

     

    Regards,

    Pavan

     



  • 5.  RE: Airwave template if statement

    Posted Jun 22, 2017 07:29 AM

    I do this for ArubaOS-switch ZTP so templates is a bit nessasery.

     

    The last question is yes, is it possible from a template to check if a configuration value is empty?



  • 6.  RE: Airwave template if statement
    Best Answer

    EMPLOYEE
    Posted Jun 22, 2017 08:09 AM

    Hi,

     

    It is not possible using template and regarding ZTP, we could do it through Aruba config /Instant GUI aswell.

     

    Here we use GUI mode instead template.

     

    Regards,

    Pavan

    If my post addresses your query give kudos:)



  • 7.  RE: Airwave template if statement

    Posted Jun 23, 2017 01:58 AM

    Thanks for clearing that out. I worked around it with the customer.