WIP: Aruba switches #103
1 changed files with 8 additions and 8 deletions
|
@ -7,8 +7,8 @@ include-credentials
|
||||||
{% if aruba__ntp_servers %}
|
{% if aruba__ntp_servers %}
|
||||||
timesync ntp
|
timesync ntp
|
||||||
ntp unicast
|
ntp unicast
|
||||||
{% for address in aruba__ntp_servers %}
|
{% for addr in aruba__ntp_servers %}
|
||||||
ntp server {{ address | ipaddr }} iburst
|
ntp server {{ addr | ipaddr }} iburst
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if aruba__timezone == "Europe/Paris" %}
|
{% if aruba__timezone == "Europe/Paris" %}
|
||||||
time daylight-time-rule western-europe
|
time daylight-time-rule western-europe
|
||||||
|
@ -16,8 +16,8 @@ time timezone 60
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for address in aruba__dns_servers[:2] %}
|
{% for addr in aruba__dns_servers[:2] %}
|
||||||
ip dns server-address priority {{ loop.index }} {{ address | ipaddr }}
|
ip dns server-address priority {{ loop.index }} {{ addr | ipaddr }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if aruba__dns_domain_name is defined %}
|
{% if aruba__dns_domain_name is defined %}
|
||||||
|
@ -122,11 +122,11 @@ set tagged =
|
||||||
tagged {{ tagged | aruba_ints }}
|
tagged {{ tagged | aruba_ints }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if vlan.addresses | default([]) %}
|
{% if vlan.addresses | default([]) %}
|
||||||
{% for address in vlan.addresses | ipv4 %}
|
{% for addr in vlan.addresses | ipv4 %}
|
||||||
ip address {{ address }}
|
ip address {{ addr | ipaddr("address") }} {{ addr | ipaddr("netmask") }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for address in vlan.addresses | ipv6 %}
|
{% for addr in vlan.addresses | ipv6 %}
|
||||||
ipv6 address {{ address }}
|
ipv6 address {{ addr | ipaddr("address") }} {{ addr | ipaddr("netmask") }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
no ip address
|
no ip address
|
||||||
|
|
Loading…
Reference in a new issue