dn42-ansible/ext-peer.network.j2
2024-12-25 01:43:27 -08:00

24 lines
646 B
Django/Jinja

[Match]
Name=dn42{{ item['remotename'] }}
[Network]
DHCP=false
IPv6AcceptRA=false
IPv4Forwarding=true
IPv6Forwarding=true
KeepConfiguration=true
Description=DN42 peering with AS{{ item.asn }} @ {% if item.remotehost is defined %}{{ item.remotehost }}[{{ item.remoteip }}]:{{ item.remoteport }}{% else %}[{{ item.remoteip }}]:{{ item.remoteport }}{% 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 %}