From 56a23f056c6de342a28576c38295542adaa96d84 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 12 Mar 2024 21:14:13 +0200 Subject: [PATCH] bgpd: Set Paths Limit to 0 instead of unsetting the capability 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: 72f0e06824c237238121b96c45845a57e5cfb59f ("bgpd: Implement Paths-Limit capability") Signed-off-by: Donatas Abraitis --- bgpd/bgp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 812f35eb89..06a90fc1b5 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -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; }