Skip to content

Conversation

YutaroHayakawa
Copy link
Member

@YutaroHayakawa YutaroHayakawa commented Jul 3, 2025

The policy with empty MatchNeighbors matches all neighbors. However, we don't reset any peers upon the update of such policies today. Handle those case properly.

bgp: Reset peers properly upon policy update with empty MatchNeighbors

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 3, 2025
@YutaroHayakawa YutaroHayakawa changed the title Yutaro/route policy reset all bgp: Reset peers properly upon policy update with empty MatchNeighbors Jul 3, 2025
@YutaroHayakawa YutaroHayakawa force-pushed the yutaro/route-policy-reset-all branch from b65c15e to a452df9 Compare July 3, 2025 05:24
@YutaroHayakawa YutaroHayakawa added the release-note/misc This PR makes changes that have no direct user impact. label Jul 3, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 3, 2025
@YutaroHayakawa
Copy link
Member Author

/test

@YutaroHayakawa YutaroHayakawa marked this pull request as ready for review July 3, 2025 08:04
@YutaroHayakawa YutaroHayakawa requested a review from a team as a code owner July 3, 2025 08:04
@YutaroHayakawa YutaroHayakawa requested review from harsimran-pabla and removed request for a team July 3, 2025 08:04
@rastislavs rastislavs self-requested a review July 3, 2025 08:15
@YutaroHayakawa
Copy link
Member Author

/test

Base automatically changed from yutaro/refactor-route-policy-reconciler to main July 4, 2025 04:38
Introduce a new ResetAllNeighbors method to the Router interface. This
is similar to the ResetNeighbor, but allows caller to reset all
neighbors configured on the given router without explicitly specifying
peer address.

This is used to do soft resetting for all peers when we update the
route policy that affects to all peers (the route policy with empty
MatchNeighbors).

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
The policy with empty MatchNeighbors matches all neighbors. However, we
don't reset any peers upon the update of such policies today. To fix
that, extend the existing soft reset handling logic to handle empty
MatchNeighbors case by resetting all peers when the update for such
policy occurs.

In all reset case, we need a special treatment, because route policy
reconciler doesn't have a full list of neighbors, so doesn't know how to
reset "all" peers. To deal with it, we use the ResetAllNeighbors we
introduced in the previous commit.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
@YutaroHayakawa YutaroHayakawa force-pushed the yutaro/route-policy-reset-all branch from a452df9 to 25fef71 Compare July 4, 2025 05:37
@YutaroHayakawa
Copy link
Member Author

/test

@YutaroHayakawa YutaroHayakawa added this pull request to the merge queue Jul 8, 2025
Merged via the queue into main with commit 605d9b6 Jul 8, 2025
484 of 493 checks passed
@YutaroHayakawa YutaroHayakawa deleted the yutaro/route-policy-reset-all branch July 8, 2025 02:01
@YutaroHayakawa YutaroHayakawa added the affects/v1.18 This issue affects v1.18 branch label Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/v1.18 This issue affects v1.18 branch release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants