inter-gw.peer.tmpl 604 B

123456789101112131415161718
  1. # Peer config for {{ node }} in site {{ site }} (Salt managed)
  2. {%- set node_config = salt['pillar.get']('nodes:' ~ node) %}
  3. {%- set no_peer = salt['pillar.get']('nodes:' ~ node ~ ':fastd:no_peer', False) %}
  4. {%- set ips = salt['ffho_net.get_node_iface_ips'](node_config, 'vrf_external') %}
  5. {%- if not no_peer %}
  6. {%- set port = 11000 + site_no|int %}
  7. {%- for ipv4 in ips['v4'] %}
  8. remote ipv4 "{{ ipv4 }}" port {{ port }};
  9. {%- endfor %}
  10. {%- if has_ipv6 %}
  11. {%- for ipv6 in ips['v6'] %}
  12. remote ipv6 "{{ ipv6 }}" port {{ port }};
  13. {%- endfor %}
  14. {%- endif %}
  15. {%- endif %}
  16. key "{{ pubkey }}";