Fix overlay AS
parent
bbd8b63f31
commit
dd25434241
|
|
@ -197,10 +197,10 @@ snmp {
|
||||||
}
|
}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{% macro routingoptionssection(device, gateway) %}
|
{% macro routingoptionssection(device, overlay_as, gateway) %}
|
||||||
routing-options {
|
routing-options {
|
||||||
router-id {{ device.primary_ip4.address.ip }};
|
router-id {{ device.primary_ip4.address.ip }};
|
||||||
autonomous-system {{ device.local_context_data['overlay_as'] }};
|
autonomous-system {{ overlay_as }};
|
||||||
{% if gateway %}
|
{% if gateway %}
|
||||||
static {
|
static {
|
||||||
route 0.0.0.0/0 next-hop {{ gateway }};
|
route 0.0.0.0/0 next-hop {{ gateway }};
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ policy-options {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{ junos.routingoptionssection(device, gateway) }}
|
{{ junos.routingoptionssection(device, overlay_as, gateway) }}
|
||||||
protocols {
|
protocols {
|
||||||
{{ 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' %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue