123456789101112131415161718 |
- # Peer config for {{ node }} in site {{ site }} (Salt managed)
- {%- set node_config = salt['pillar.get']('nodes:' ~ node) %}
- {%- set no_peer = salt['pillar.get']('nodes:' ~ node ~ ':fastd:no_peer', False) %}
- {%- set ips = salt['ffho_net.get_node_iface_ips'](node_config, 'vrf_external') %}
- {%- if not no_peer %}
- {%- set port = 11000 + site_no|int %}
- {%- for ipv4 in ips['v4'] %}
- remote ipv4 "{{ ipv4 }}" port {{ port }};
- {%- endfor %}
- {%- if has_ipv6 %}
- {%- for ipv6 in ips['v6'] %}
- remote ipv6 "{{ ipv6 }}" port {{ port }};
- {%- endfor %}
- {%- endif %}
- {%- endif %}
- key "{{ pubkey }}";
|