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 {