Fix some selections which no longer come from GraphQL
parent
7fa90e6df9
commit
5114a4fcad
|
|
@ -3,7 +3,7 @@
|
|||
{% if device.role['name'] == 'Leaf' %}
|
||||
{{ junos.chassissection(device,breakout_ports) }}
|
||||
{% endif %}
|
||||
{{ junos.interfacesection(device,tenant['vlans']) }}
|
||||
{{ junos.interfacesection(device,ipam.VLAN.objects.filter(tenant=device.tenant)) }}
|
||||
{{ junos.snmpsection(rack, snmp) }}
|
||||
{% if device_role['name'] == 'Leaf' %}
|
||||
forwarding-options {
|
||||
|
|
@ -30,8 +30,8 @@ policy-options {
|
|||
}
|
||||
{{ junos.routingoptionssection(primary_ip4, overlay_as, gateway) }}
|
||||
protocols {
|
||||
{{ junos.bgpsection(device,tenant['spines']) }}
|
||||
{% if device_role['name'] == 'Leaf' %}
|
||||
{{ junos.bgpsection(device,dcim.Device.objects.filter(tenant=device.tenant,role__name='Spine')) }}
|
||||
{% if role['name'] == 'Leaf' %}
|
||||
evpn {
|
||||
encapsulation vxlan;
|
||||
extended-vni-list all;
|
||||
|
|
@ -44,7 +44,7 @@ protocols {
|
|||
{{ junos.sflowsection(sflow) }}
|
||||
{% endif %}
|
||||
}
|
||||
{% if device_role['name'] == 'Leaf' %}
|
||||
{% if role['name'] == 'Leaf' %}
|
||||
switch-options {
|
||||
vtep-source-interface lo0.0;
|
||||
route-distinguisher {{ primary_ip4['address'][:-3] }}:1;
|
||||
|
|
@ -53,5 +53,5 @@ switch-options {
|
|||
auto;
|
||||
}
|
||||
}
|
||||
{{ junos.vlanssection(tenant['vlans'], device) }}
|
||||
{{ junos.vlanssection(ipam.VLAN.objects.filter(tenant=device.tenant), device) }}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue