From a637da5c21d35224244b3a35c0859a63dd612f61 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 22 Apr 2024 13:30:35 +0200 Subject: [PATCH] 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. --- roles/proxmox/templates/real.intf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/proxmox/templates/real.intf.j2 b/roles/proxmox/templates/real.intf.j2 index 1d09fdd..dd5ae50 100644 --- a/roles/proxmox/templates/real.intf.j2 +++ b/roles/proxmox/templates/real.intf.j2 @@ -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 %}