diff --git a/templates/ansible.intf.j2 b/templates/ansible.intf.j2 index 3e9a663..cd0bb29 100644 --- a/templates/ansible.intf.j2 +++ b/templates/ansible.intf.j2 @@ -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 %}