diff --git a/juniper-vxlan.j2 b/juniper-vxlan.j2 index b4642de..a90af7e 100644 --- a/juniper-vxlan.j2 +++ b/juniper-vxlan.j2 @@ -30,12 +30,14 @@ policy-options { } {{ junos.routingoptionssection(device, overlay_as, gateway) }} protocols { +{% if device.role.name in ['Leaf','Spine'] %} {{ junos.bgpsection(device,dcim.Device.objects.filter(tenant=device.tenant,role__name='Spine')) }} {% if device.role.name == 'Leaf' %} evpn { encapsulation vxlan; extended-vni-list all; } +{% endif %} {% endif %} lldp { interface all;