aruba: add netmask to 'ip address' commands
This commit is contained in:
parent
c070990b0c
commit
eee4ec26b2
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue