frr icon indicating copy to clipboard operation
frr copied to clipboard

bgpd: conditional adv fixes

Open mjstapp opened this issue 2 years ago • 4 comments

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

mjstapp avatar Aug 05 '22 15:08 mjstapp

@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.

mjstapp avatar Aug 05 '22 15:08 mjstapp

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.

NetDEF-CI avatar Aug 05 '22 18:08 NetDEF-CI

@mergifyio backport stable/8.3

ton31337 avatar Aug 06 '22 16:08 ton31337

backport stable/8.3

✅ Backports have been created

mergify[bot] avatar Aug 06 '22 16:08 mergify[bot]

Rebased, and pushed change to resolve Donatas's comment

mjstapp avatar Aug 11 '22 15:08 mjstapp

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.

NetDEF-CI avatar Aug 11 '22 17:08 NetDEF-CI