From e2f58ebd8fff09bf915c796a971b3152bcb7ee6f Mon Sep 17 00:00:00 2001 From: Dan Ankers Date: Sat, 29 Jun 2024 13:49:20 +0100 Subject: [PATCH] Fix device role --- juniper-macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index 1b620b3..cd713be 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -125,7 +125,7 @@ chassis { } } {% endif %} -{% if device.role.name in ['Leaf','Spine'] %} +{% if interface.device.role.name in ['Leaf','Spine'] %} {% if interface.mode != '' %} unit 0 { family ethernet-switching {