Fix FC check in interface template

One of these days I’m gonna write a defaultattr Jinja filter and
become rich and famous.
This commit is contained in:
Timotej Lazar 2025-01-20 11:20:46 +01:00
parent efbe8d2801
commit e3862a5be6

View file

@ -7,8 +7,8 @@ iface {{ vrf }}
{%+ endfor %}
{%- for iface in interfaces | selectattr('enabled') | rejectattr('wwn') %}
{% if iface.mgmt_only is not defined or not iface.mgmt_only %}
{%- for iface in interfaces | selectattr('enabled') %}
{% if not iface.mgmt_only|default(false) and not iface.wwn|default(false) %}
auto {{ iface.name }}
iface {{ iface.name }}{% if iface.name == 'lo' %} inet loopback{% endif +%}
{% if iface.mtu %}