From aa03cc7fca14b14cfb2a53014be432af4ebf7a3a Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Fri, 5 Jul 2024 14:22:57 +0100 Subject: [PATCH] Fix errors --- juniper-macros.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index e76e993..7c1413c 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -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 %}