netbox
Daniel Ankers 2024-07-04 15:07:57 +01:00
parent bb7a882a46
commit 1392e221c7
1 changed files with 2 additions and 0 deletions

View File

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