quagga.zebra: enable ipv6 nd

This commit is contained in:
Astro 2016-12-19 03:53:05 +01:00
parent 1fb5f05160
commit 8d51221952
1 changed files with 14 additions and 0 deletions

View File

@ -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 %}