proxmox: set vxlan-local-tunnelip for loopback interface

Oops. Not sure why stuff apparently worked without it. Especially
switchd on exits which worked itself into a bit of a frenzy.
This commit is contained in:
Timotej Lazar 2024-04-22 13:30:35 +02:00
parent 923d877208
commit a637da5c21

View file

@ -20,5 +20,8 @@ iface {{ iface.name }} inet {% if iface.name == 'lo' %}loopback{% else %}static{
{% if iface.custom_fields.gateway %}
gateway {{ iface.custom_fields.gateway.address | ipaddr('address') }}
{% endif %}
{% if iface.name == 'lo' %}
vxlan-local-tunnelip {{ iface.ip_addresses | selectattr('family.value', '==', 4) | map(attribute='address') | sort | first | ipaddr('address') }}
{% endif %}
{% endfor %}