]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Reinstall aggregated routes if using route-maps and it was changed
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 30 Jan 2024 13:44:38 +0000 (15:44 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 30 Jan 2024 13:47:49 +0000 (15:47 +0200)
commitee1986f1b5ae6b94b446b12e1b77cc30d8f5f46d
treec955d5db57aae6b8d6ff819c4dcb24890f0c5cbd
parentcd869ebcf2ec13cf50071d2826d0aa1b309a30e9
bgpd: Reinstall aggregated routes if using route-maps and it was changed

Without this change when we change the route-map, we never reinstall the route
if the route-map has changed.

We checked only some attributes like aspath, communities, large-communities,
extended-communities, but ignoring the rest of attributes.

With this change, let's check if the route-map has changed.

bgp_route_map_process_update() is triggered on route-map change, and we set
`changed` to true, which treats aggregated route as not the same as it was before.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgp_routemap.c