aruba: add netmask to 'ip address' commands

This commit is contained in:
jeltz 2022-09-05 09:25:30 +02:00
parent c070990b0c
commit eee4ec26b2
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -7,8 +7,8 @@ include-credentials
{% if aruba__ntp_servers %}
timesync ntp
ntp unicast
{% for address in aruba__ntp_servers %}
ntp server {{ address | ipaddr }} iburst
{% for addr in aruba__ntp_servers %}
ntp server {{ addr | ipaddr }} iburst
{% endfor %}
{% if aruba__timezone == "Europe/Paris" %}
time daylight-time-rule western-europe
@ -16,8 +16,8 @@ time timezone 60
{% endif %}
{% endif %}
{% for address in aruba__dns_servers[:2] %}
ip dns server-address priority {{ loop.index }} {{ address | ipaddr }}
{% for addr in aruba__dns_servers[:2] %}
ip dns server-address priority {{ loop.index }} {{ addr | ipaddr }}
{% endfor %}
{% if aruba__dns_domain_name is defined %}
@ -122,11 +122,11 @@ set tagged =
tagged {{ tagged | aruba_ints }}
{% endif %}
{% if vlan.addresses | default([]) %}
{% for address in vlan.addresses | ipv4 %}
ip address {{ address }}
{% for addr in vlan.addresses | ipv4 %}
ip address {{ addr | ipaddr("address") }} {{ addr | ipaddr("netmask") }}
{% endfor %}
{% for address in vlan.addresses | ipv6 %}
ipv6 address {{ address }}
{% for addr in vlan.addresses | ipv6 %}
ipv6 address {{ addr | ipaddr("address") }} {{ addr | ipaddr("netmask") }}
{% endfor %}
{% else %}
no ip address