leaf: don’t activate disabled interfaces in the EVPN family

This commit is contained in:
Timotej Lazar 2025-08-14 17:09:47 +02:00
parent 48eee50203
commit bd4299732d

View file

@ -55,8 +55,8 @@ router bgp {{ asn.asn }}
{% endfor %} {% endfor %}
address-family l2vpn evpn address-family l2vpn evpn
neighbor fabric activate neighbor fabric activate
{% for iface in ifaces_evpn|default([]) %} {% for iface in interfaces | selectattr('enabled') | selectattr('name', 'in', ifaces_evpn|default([])) %}
neighbor {{ iface }} activate neighbor {{ iface.name }} activate
{% endfor %} {% endfor %}
{% if peer is defined and interfaces | selectattr('mode') %} {% if peer is defined and interfaces | selectattr('mode') %}
advertise-all-vni advertise-all-vni