Fix bug
parent
bb7a882a46
commit
1392e221c7
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue