mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
BGP: Fix merging of stale paths
Paths that are stale due to LLGR should not be merged with non-staled ones.
This commit is contained in:
parent
e31e368147
commit
0df9e138c0
@ -1402,6 +1402,10 @@ bgp_rte_mergable(rte *pri, rte *sec)
|
||||
if (!rte_resolvable(sec))
|
||||
return 0;
|
||||
|
||||
/* LLGR draft - depreference stale routes */
|
||||
if (rte_stale(pri) != rte_stale(sec))
|
||||
return 0;
|
||||
|
||||
/* Start with local preferences */
|
||||
x = ea_find(pri->attrs->eattrs, EA_CODE(EAP_BGP, BA_LOCAL_PREF));
|
||||
y = ea_find(sec->attrs->eattrs, EA_CODE(EAP_BGP, BA_LOCAL_PREF));
|
||||
|
Loading…
Reference in New Issue
Block a user