123456789101112131415161718192021222324 |
- {%- set node_config = salt['pillar.get']('nodes:' ~ grains['id']) %}
- {%- set sites_config = salt['pillar.get']('sites') %}
- protocol radv {
- # ONLY advertise prefix, IF default route is available
- import all;
- export all;
- trigger ::/0;
- rdnss 2001:4860:4860::8888;
- {% for site in node_config.get ('sites') %}
- {%- set iface = 'br-' ~ site %}
- {%- set site_config = sites_config.get (site) %}
- # {{ site }} / {{ site_config.get ('name') }}
- interface "{{ iface }}" {
- default lifetime 600 sensitive yes;
- prefix {{ site_config.get ('prefix_v6') }} {
- preferred lifetime 3600;
- };
- };
- {% endfor %}
- }
|