radv.conf 622 B

123456789101112131415161718192021222324
  1. {%- set node_config = salt['pillar.get']('nodes:' ~ grains['id']) %}
  2. {%- set sites_config = salt['pillar.get']('sites') %}
  3. protocol radv {
  4. # ONLY advertise prefix, IF default route is available
  5. import all;
  6. export all;
  7. trigger ::/0;
  8. rdnss 2a03:2260:2342:f251::53;
  9. {% for site in node_config.get ('sites') %}
  10. {%- set iface = 'br-' ~ site %}
  11. {%- set site_config = sites_config.get (site) %}
  12. # {{ site }} / {{ site_config.get ('name') }}
  13. interface "{{ iface }}" {
  14. default lifetime 600 sensitive yes;
  15. prefix {{ site_config.get ('prefix_v6') }} {
  16. preferred lifetime 3600;
  17. };
  18. };
  19. {% endfor %}
  20. }