mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 02:46:37 +00:00
bgpd: Set LLGR stale routes for all the paths including addpath
Without this patch we set only the first path for the route (if multiple exist)
as LLGR stale and stop doing that for the rest of the paths, which is wrong.
Fixes: 1479ed2fb3
("bgpd: Implement LLGR helper mode")
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
6225c5de8b
commit
a603771fd7
@ -687,6 +687,11 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
|
||||
COMMUNITY_NO_LLGR))
|
||||
continue;
|
||||
|
||||
if (bgp_attr_get_community(pi->attr) &&
|
||||
community_include(bgp_attr_get_community(pi->attr),
|
||||
COMMUNITY_LLGR_STALE))
|
||||
continue;
|
||||
|
||||
if (bgp_debug_neighbor_events(peer))
|
||||
zlog_debug(
|
||||
"%pBP Long-lived set stale community (LLGR_STALE) for: %pFX",
|
||||
@ -697,8 +702,6 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
|
||||
pi->attr = bgp_attr_intern(&attr);
|
||||
bgp_recalculate_afi_safi_bestpaths(
|
||||
peer->bgp, afi, safi);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -715,6 +718,11 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
|
||||
COMMUNITY_NO_LLGR))
|
||||
continue;
|
||||
|
||||
if (bgp_attr_get_community(pi->attr) &&
|
||||
community_include(bgp_attr_get_community(pi->attr),
|
||||
COMMUNITY_LLGR_STALE))
|
||||
continue;
|
||||
|
||||
if (bgp_debug_neighbor_events(peer))
|
||||
zlog_debug(
|
||||
"%pBP Long-lived set stale community (LLGR_STALE) for: %pFX",
|
||||
@ -725,8 +733,6 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
|
||||
pi->attr = bgp_attr_intern(&attr);
|
||||
bgp_recalculate_afi_safi_bestpaths(peer->bgp,
|
||||
afi, safi);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user