2017-10-03 21:18:39 +02:00
|
|
|
|
2017-09-05 12:01:27 +02:00
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
2017-10-06 22:58:00 +02:00
|
|
|
{% for mesh in meshes %}
|
|
|
|
interface {{ mesh.id }}BR
|
2017-09-05 12:01:27 +02:00
|
|
|
{
|
|
|
|
AdvSendAdvert on;
|
|
|
|
IgnoreIfMissing on;
|
2017-10-06 22:58:00 +02:00
|
|
|
MaxRtrAdvInterval {{ mesh.radvd.maxrtradvinterval }};
|
|
|
|
AdvLinkMTU {{ mesh.iface_mtu }};
|
2017-09-05 12:01:27 +02:00
|
|
|
|
2017-10-06 22:58:00 +02:00
|
|
|
RDNSS {% for prefix in mesh.ipv6_ula %}{{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr(magic) | ipaddr('address') }}
|
|
|
|
{% endfor %}
|
2017-09-05 12:01:27 +02:00
|
|
|
{
|
|
|
|
FlushRDNSS off;
|
|
|
|
};
|
2017-10-06 22:58:00 +02:00
|
|
|
|
|
|
|
{% for prefix in mesh.ipv6_ula %}
|
|
|
|
prefix {{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr('subnet') }}
|
|
|
|
{
|
|
|
|
AdvValidLifetime {{ mesh.radvd.advvalidlifetime }};
|
|
|
|
AdvPreferredLifetime {{ mesh.radvd.advpreferredlifetime }};
|
|
|
|
};
|
|
|
|
{% if not loop.last %}
|
|
|
|
|
2017-09-05 12:01:27 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2017-10-06 22:58:00 +02:00
|
|
|
{% for prefix in mesh.ipv6_public %}
|
2017-10-06 09:56:14 +02:00
|
|
|
prefix {{ prefix | ipaddr('net') | ipsubnet(56, magic) | ipsubnet(64, 0) | ipaddr('subnet') }}
|
2017-09-05 12:01:27 +02:00
|
|
|
{
|
2017-10-06 22:58:00 +02:00
|
|
|
AdvValidLifetime {{ mesh.radvd.advvalidlifetime }};
|
|
|
|
AdvPreferredLifetime {{ mesh.radvd.advpreferredlifetime }};
|
2017-09-05 12:01:27 +02:00
|
|
|
};
|
|
|
|
{% if not loop.last %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
};
|
|
|
|
{% if not loop.last %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|