Fix errors

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

View File

@ -113,9 +113,9 @@ chassis {
{% macro interfaceconfig(interface,rack = None) %}
{% 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 %}
{%- 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 != '' %}
{% if interface.description %}
description "{{ interface.description }}";
{% endif %}
{% if interface.mtu and not interface.lag %}