]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: route suppression refactory
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 22 Oct 2020 00:22:04 +0000 (21:22 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 22 Oct 2020 16:52:00 +0000 (13:52 -0300)
commit4056a5f6a582ec5b3c44b3e2a6275845f5a859d1
treeaab16848a4b973bced99fa77cfb35856723d7156
parente84dfa4c2e5710b0f280ec7e077237c3dc4ea33a
bgpd: route suppression refactory

Instead of just counting the route suppressions, keep a reference for
all aggregations that are doing it. It should help the with the
following problems:

- Which aggregation suppressed the route.
- Double suppression
- Double unsuppression
- Avoids calling `bgp_process` if already suppressed/unsuppressed.
- Easier code maintenance and understanding

This also fixes a crash when modifying a route map that is
associated with a working aggregate-address.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgp_routemap.c