From d589158826f7c61acb13e3b45426aae5debc3d6b Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Fri, 5 Jul 2024 14:59:26 +0100 Subject: [PATCH] Fix(?) whitespace --- juniper-macros.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index 896c1ab..9b9552a 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -113,7 +113,7 @@ 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 %} description "{{ interface.description }}"; @@ -196,7 +196,7 @@ chassis { {% endif %} {% endif %} } -{%- endif %} +{% endif %} {%- endmacro %} {% macro interfacesection(device,vlans) %} @@ -216,7 +216,7 @@ interfaces { {% endif %} {# Physical interfaces should be sorted by FPC/PIC/Port value - that's a challenge to do in Jinja so we cheat for now by putting the xe- interfaces first. This won't work for all devices! #} {% for interface in device.interfaces.filter(name__contains='-')|j2_natsort(attribute="name") %} -{{ interfaceconfig(interface) }} +{{- interfaceconfig(interface) }} {% endfor %} {% for interface in device.interfaces.filter(name__startswith='ae') %} {{ interfaceconfig(interface,device.rack.name[5:]) }}