Fix errors

netbox
Daniel Ankers 2024-07-05 14:07:20 +01:00
parent eb2b3ab255
commit a4b99e8297
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ chassis {
{% macro interfaceconfig(interface,rack = None) %}
{% if not ('-' in interface.name) or interface.description or interface.description or interface.lag or interface.ip_addresses.count() or interface.connected_endpoints or interface.mode or interface.tagged_vlans or interface.untagged_vlan %}
{% if not ('-' in interface.name) or interface.description or interface.lag or interface.ip_addresses.count() or interface.connected_endpoints or interface.mode or interface.tagged_vlans.all() or interface.untagged_vlan %}
{{ interface.name }} {
{% if interface.description != '' %}
description "{{ interface.description }}";
@ -196,7 +196,7 @@ chassis {
{% endif %}
{% endif %}
}
{% endif %}
{%- endif %}
{%- endmacro %}
{% macro interfacesection(device,vlans) %}