{%- 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 2a03:2260:2342:f251::53; {% 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 %} }