When a route gets removed some routes will still be advertised by bgpd. We have a route-map consisting of two prefix-lists and only the first gets cleared correctly.
### How to reproduce
We use keepalived to switch over routes on failover, when a failover occurs the routes within the second prefix-list (`wg_routes`) get stuck. Only a restart of frr will clear the route. This is our FRR config:
### Expected behavior
We expect all routes to be cleared instantly by frr.
### Actual behavior
Even when the route `10.6.5.0/24` is no longer in the kernel routing table, it will still get advertised.
### Additional context
_No response_
### Checklist
- [X] I have searched the open issues for this bug.
- [X] I have not included sensitive information in this report.
Description
When a route gets removed some routes will still be advertised by bgpd. We have a route-map consisting of two prefix-lists and only the first gets cleared correctly.
Version
frr version 9.1.1 frr defaults datacenter hostname net-routing-hw2 log syslog informational service integrated-vtysh-config ! interface enp1s0f0np0 ipv6 nd ra-interval 10 no ipv6 nd suppress-ra exit ! interface enp1s0f1np1 ipv6 nd ra-interval 10 no ipv6 nd suppress-ra exit ! router bgp 65309 bgp router-id 10.77.2.109 no bgp default ipv4-unicast bgp bestpath as-path multipath-relax neighbor fabric peer-group neighbor fabric remote-as external neighbor fabric capability extended-nexthop neighbor enp1s0f0np0 interface peer-group fabric neighbor enp1s0f0np0 description net-sw-leaf9 neighbor enp1s0f1np1 interface peer-group fabric neighbor enp1s0f1np1 description net-sw-leaf10 ! address-family ipv4 unicast network 10.77.2.109/32 redistribute kernel route-map advertise redistribute connected route-map advertise neighbor fabric activate neighbor fabric filter-list HOST_ORIGINATED_ROUTES out exit-address-family ! address-family l2vpn evpn neighbor fabric activate advertise-all-vni advertise-svi-ip advertise ipv4 unicast exit-address-family exit ! ip prefix-list DEFAULT_FILTER seq 10 permit 0.0.0.0/0 ip prefix-list local_addresses seq 30 permit 10.77.2.109/32 ip prefix-list local_addresses seq 40 permit 10.77.2.110/32 ip prefix-list evpn_routes seq 10 permit 10.69.1.0/24 ip prefix-list evpn_routes seq 20 permit 10.69.0.0/24 ip prefix-list wg_routes seq 10 permit 10.6.5.0/24 ! bgp as-path access-list HOST_ORIGINATED_ROUTES seq 5 permit ^$ ! route-map advertise permit 10 match ip address prefix-list local_addresses exit ! route-map advertise permit 20 match ip address prefix-list evpn_routes exit ! route-map advertise permit 30 match ip address prefix-list wg_routes exit ! end