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:
parent
e5b570ddad
commit
b02ebf5be3
|
@ -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 +%}
|
||||
|
|
Loading…
Reference in a new issue