44 lines
1 KiB
Django/Jinja
44 lines
1 KiB
Django/Jinja
|
|
#
|
|
# {{ ansible_managed }}
|
|
#
|
|
{% for mesh_id, mesh_value in meshes.iteritems() %}
|
|
interface {{ mesh_id }}BR
|
|
{
|
|
AdvSendAdvert on;
|
|
IgnoreIfMissing on;
|
|
MaxRtrAdvInterval {{ mesh_value.radvd.maxrtradvinterval }};
|
|
AdvLinkMTU {{ mesh_value.iface_mtu }};
|
|
|
|
{% for ip_type, ip_list in mesh_value.ipv6.iteritems() %}
|
|
{% for prefix in ip_list %}
|
|
{% if ip_type == "ula" %}
|
|
RDNSS {{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr(magic) | ipaddr('address') }}
|
|
{
|
|
FlushRDNSS off;
|
|
};
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
{% for ip_type, ip_list in mesh_value.ipv6.iteritems() %}
|
|
{% for prefix in ip_list %}
|
|
{% if ip_type == "public" %}
|
|
prefix {{ prefix | ipaddr('net') | ipsubnet(64, magic) | ipaddr('subnet') }}
|
|
{% else %}
|
|
prefix {{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr('subnet') }}
|
|
{% endif %}
|
|
{
|
|
AdvValidLifetime {{ mesh_value.radvd.advvalidlifetime }};
|
|
AdvPreferredLifetime {{ mesh_value.radvd.advpreferredlifetime }};
|
|
};
|
|
{% endfor %}
|
|
{% if not loop.last %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
};
|
|
{% if not loop.last %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|