dn42-ansible/ext-peer.network.j2
2025-01-19 22:09:11 -08:00

25 lines
790 B
Django/Jinja

[Match]
Name=dn42{% if ifacename is defined %}{{ item.ifacename }}{% else %}{{ item['remotename'] }}{% endif %}
[Network]
DHCP=false
IPv6AcceptRA=false
IPv4Forwarding=true
IPv6Forwarding=true
KeepConfiguration=true
IPv4ReversePathFilter=no
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 %}
[Address]
{% if item['llv6'] is defined %}
Address={{ item['llv6'] }}/128
{% else %}
Address={{ llv6 }}/128
{% endif %}
Peer={{ item['remote_llv6'] }}/128
[Address]
Address={{ unicastv4 }}/32
{% if item['remote_unicastv4'] is defined %}
Peer={{ item['remote_unicastv4'] }}
{% endif %}