frr
frr copied to clipboard
bgpd: conditional adv fixes
A couple of fixes for bgp conditional advertisement, mostly authored by Quentin:
- The new outbound filter to apply conditional advertisement policy was not working properly due to complications with update groups. The two routemaps were properly copied into the update group peer filter but not the conditional advertisement state. If the adv state changes, that will change the update_group's hash, so ensure that the peer/update_group/subgroup relationships are updated.
- If we have conditional advertisement enabled, and conditionally withdrew some prefixes, and then we do a 'clear bgp', those routes were getting advertised again, and then withdrawn the next time the conditional advertisement scanner executed. When we go to advertise check the prefix against the conditional advertisement status so we don't do that.
This is an update of #9668
@qlyoung take a look and see if this is an ok replacement for the earlier PR? It looked like there was a CI issue with that one, and if it is still present I'll look into it.
Continuous Integration Result: SUCCESSFUL
Continuous Integration Result: SUCCESSFUL
Congratulations, this patch passed basic tests
Tested-by: NetDEF / OpenSourceRouting.org CI System
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-6809/
This is a comment from an automated CI system. For questions and feedback in regards to this CI system, please feel free to email Martin Winter - mwinter (at) opensourcerouting.org.
@mergifyio backport stable/8.3
backport stable/8.3
✅ Backports have been created
-
#11787 bgpd: conditional adv fixes (backport #11757) has been created for branch
stable/8.3
Rebased, and pushed change to resolve Donatas's comment
Continuous Integration Result: SUCCESSFUL
Congratulations, this patch passed basic tests
Tested-by: NetDEF / OpenSourceRouting.org CI System
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-6877/
This is a comment from an automated CI system. For questions and feedback in regards to this CI system, please feel free to email Martin Winter - mwinter (at) opensourcerouting.org.