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:
parent
923d877208
commit
a637da5c21
|
@ -20,5 +20,8 @@ iface {{ iface.name }} inet {% if iface.name == 'lo' %}loopback{% else %}static{
|
||||||
{% if iface.custom_fields.gateway %}
|
{% if iface.custom_fields.gateway %}
|
||||||
gateway {{ iface.custom_fields.gateway.address | ipaddr('address') }}
|
gateway {{ iface.custom_fields.gateway.address | ipaddr('address') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if iface.name == 'lo' %}
|
||||||
|
vxlan-local-tunnelip {{ iface.ip_addresses | selectattr('family.value', '==', 4) | map(attribute='address') | sort | first | ipaddr('address') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue