Skip to content

Commit

Permalink
bgpd: Set Paths Limit to 0 instead of unsetting the capability
Browse files Browse the repository at this point in the history
The capability should be untouched, and send 0 (unlimited) instead.

Otherwise, we miss the capability and things are broken later until the
session reset.

Fixes: 72f0e06 ("bgpd: Implement Paths-Limit capability")

Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Mar 12, 2024
1 parent cb9b049 commit 4f09d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -9261,7 +9261,7 @@ DEFPY (no_neighbor_addpath_paths_limit,
peer->addpath_paths_limit[afi][safi].send = 0;

bgp_capability_send(peer, afi, safi, CAPABILITY_CODE_PATHS_LIMIT,
CAPABILITY_ACTION_UNSET);
CAPABILITY_ACTION_SET);

return ret;
}
Expand Down

0 comments on commit 4f09d78

Please sign in to comment.