Commit 0df9e138 authored by Ondřej Zajíček's avatar Ondřej Zajíček

BGP: Fix merging of stale paths

Paths that are stale due to LLGR should not be merged with non-staled ones.
parent e31e3681
Pipeline #37618 passed with stages
in 6 minutes and 56 seconds
......@@ -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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment