0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 12:48:43 +00:00

BGP: Always prefer older

When 'prefer older' is enabled, it should work even in EBGP.
This commit is contained in:
Ondrej Zajicek (work) 2020-12-08 20:53:19 +01:00
parent 5ae13e157f
commit 6157f28a06

View File

@ -1734,8 +1734,7 @@ bgp_rte_better(rte *new, rte *old)
/* RFC 5004 - prefer older routes */
/* (if both are external and from different peer) */
if ((new_bgp->cf->prefer_older || old_bgp->cf->prefer_older) &&
!new_bgp->is_internal && n != o)
if ((new_bgp->cf->prefer_older || old_bgp->cf->prefer_older))
return 0;
/* rest of RFC 4271 9.1.2.2. f) */