From 8d51221952ac20efec4630a7fa255d50de904f2c Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 19 Dec 2016 03:53:05 +0100 Subject: [PATCH] quagga.zebra: enable ipv6 nd --- salt/quagga/zebra/zebra.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/salt/quagga/zebra/zebra.conf b/salt/quagga/zebra/zebra.conf index 95d8a69..8f359c5 100644 --- a/salt/quagga/zebra/zebra.conf +++ b/salt/quagga/zebra/zebra.conf @@ -1,2 +1,16 @@ hostname {{ salt['grains.get']('id') }} log file /var/log/quagga/zebra.log + +{%- for iface, ips in salt['grains.get']('ip_interfaces').items() %} +{%- if iface not in ['br-core', 'core', 'lo', 'c3d2'] and pillar['subnets-inet6'].get(iface) %} +{%- set subnet6 = pillar['subnets-inet6'][iface] %} +{%- set prefix6_len = subnet6.split('/')[1] %} +interface {{ iface }} + ipv6 address {{ pillar['hosts-inet6'][iface][salt['grains.get']('id')] }}/{{ prefix6_len }} + ipv6 nd prefix {{ subnet6 }} + ipv6 nd ra-interval 10 + ipv6 nd ra-lifetime 60 + ipv6 nd reachable-time 180 + no ipv6 nd suppress-ra +{%- endif %} +{%- endfor %}