2024-04-10 12:03:50 +00:00
|
|
|
{% set my_vlans = interfaces | selectattr('parent') | selectattr('parent.name', '==', 'bridge')
|
|
|
|
| selectattr('untagged_vlan') | map(attribute='untagged_vlan') -%}
|
2023-12-18 10:22:14 +00:00
|
|
|
|
|
|
|
# Send IPv6 RAs from virtual router IP for each network. Also set DNS options.
|
|
|
|
# Both exits announce the same gateway, so don’t revoke it if we go down.
|
|
|
|
{% for vlan in my_vlans %}
|
|
|
|
interface bridge-{{ vlan.vid }}-v0 {
|
|
|
|
AdvSendAdvert on;
|
|
|
|
RemoveAdvOnExit off;
|
|
|
|
prefix ::/64;
|
|
|
|
RDNSS {{ dns6 | join(' ') }} { };
|
|
|
|
DNSSL {{ domain }} { };
|
|
|
|
};
|
|
|
|
|
|
|
|
{% endfor %}
|