dn42-ansible/ext-peer.network.j2

35 lines
994 B
Text
Raw Normal View History

[Match]
Name={% if item.ifacename is defined %}{{ item.ifacename }}{% else %}dn42{{ item['remotename'] }}{% endif %}
[Network]
DHCP=false
IPv6AcceptRA=false
IPv4Forwarding=true
IPv6Forwarding=true
KeepConfiguration=true
IPv4ReversePathFilter=no
2025-01-20 06:09:11 +00:00
Description=DN42 peering with AS{{ item.asn }}{% if item.wireguard|default(true) %} @ {% if item.remotehost is defined %}{{ item.remotehost }}[{{ item.remoteip }}]:{{ item.remoteport }}{% else %}[{{ item.remoteip }}]:{{ item.remoteport }}{% endif %} {% endif %}
LinkLocalAddressing=false
[Address]
{% if item['llv6'] is defined %}
2025-01-25 20:47:55 +00:00
Address={{ item['llv6'] }}/{% if item.remote_llv6 is defined %}128{% else %}64{% endif %}
{% else %}
2025-01-25 20:47:55 +00:00
Address={{ llv6 }}/{% if item.remote_llv6 is defined %}128{% else %}64{% endif %}
{% endif %}
2025-01-25 20:47:55 +00:00
{% if item.remote_llv6 is defined %}
Peer={{ item['remote_llv6'] }}/128
2025-01-25 20:47:55 +00:00
{% endif %}
[Address]
Address={{ unicastv4 }}/32
2025-01-25 20:47:55 +00:00
{% if item['remote_unicastv4'] is defined %}
Peer={{ item['remote_unicastv4'] }}
{% endif %}