bird6.conf: fix template for ipv6 prefixes split over multiple ranges

This commit is contained in:
Astro 2019-06-04 20:11:51 +02:00
parent 9296cc3e0a
commit 9d56ab53fc
1 changed files with 3 additions and 1 deletions

View File

@ -18,11 +18,13 @@ protocol radv {
min ra interval 3;
max ra interval 10;
{%- for ctx, subnets in pillar['subnets-inet6'].items() %}
{%- set subnet6 = subnets[iface] %}
{%- set subnet6 = subnets.get(iface) %}
{%- if subnet6 %]
prefix {{ subnet6 }} {
preferred lifetime 20;
valid lifetime 60;
};
{%- endif %}
{%- endfor %}
{%- if conf.get('rdnss') %}
{%- for value in conf['rdnss'] %}