Network Management

Reply
Occasional Contributor I

Airwave template if statement

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?

 

Aruba Employee

Re: Airwave template if statement

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:)

Occasional Contributor I

Re: Airwave template if statement

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?

Aruba Employee

Re: Airwave template if statement

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

 

Occasional Contributor I

Re: Airwave template if statement

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?

Aruba Employee

Re: Airwave template if statement

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:)

Occasional Contributor I

Re: Airwave template if statement

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

 

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