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