bird: fix radv for subnets-inet6 ctxs

This commit is contained in:
Astro 2018-06-23 00:22:05 +02:00
parent 3c6fc16a90
commit 15c6f5708c
1 changed files with 3 additions and 1 deletions

View File

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