From 7f54dc2961d48c7a534ef58609b1cd7a397013b0 Mon Sep 17 00:00:00 2001 From: Dan Ankers Date: Sat, 29 Jun 2024 13:52:57 +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 cd713be..14544d8 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -148,7 +148,7 @@ chassis { storm-control default; } } -{% elif device.role.name in ['Provider Core'] %} +{% elif interface.device.role.name in ['Provider Core'] %} {% if interface.tags.filter(name__in=['vpls-edge']).count() %} {% for vlan in interface.tagged_vlans %} unit {{ vlan.vid }} {