templates: skip FC interfaces

Anything that has the WWN attribute set really. This won’t work for
VMs because this attribute is not returned for those.
This commit is contained in:
Timotej Lazar 2025-01-07 10:53:17 +01:00
parent e5b570ddad
commit b02ebf5be3

View file

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