inter-gw.peer.tmpl 483 B

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