diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-02-22 18:19:07 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-22 18:19:07 -0500 |
| commit | c3e264e27ac5b682c4647aeeaf4e61f09d5243f9 (patch) | |
| tree | 982a12143f16aae8f5618de9042ab2b28913dc79 | |
| parent | dab15679e3912577171ee7ae1279ba415b2552bc (diff) | |
| parent | d5a0c4088ff242737afe036b5752775a29bcf47e (diff) | |
Merge pull request #18229 from FRRouting/mergify/bp/stable/10.1/pr-18210
bgpd: remove dmed check not required in bestpath selection (backport #18210)
| -rw-r--r-- | bgpd/bgp_route.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 9adf6ea65b..5f9ae27085 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -3115,21 +3115,6 @@ void bgp_best_selection(struct bgp *bgp, struct bgp_dest *dest, bgp_path_info_unset_flag(dest, look_thru, BGP_PATH_DMED_CHECK); - if (CHECK_FLAG(bgp->flags, BGP_FLAG_DETERMINISTIC_MED) && - (!CHECK_FLAG(look_thru->flags, - BGP_PATH_DMED_SELECTED))) { - bgp_path_info_unset_flag(dest, look_thru, - BGP_PATH_DMED_CHECK); - if (debug) - zlog_debug("%s: %pBD(%s) pi %s dmed", - __func__, dest, - bgp->name_pretty, - look_thru->peer->host); - - worse = look_thru; - continue; - } - reason = dest->reason; any_comparisons = true; if (bgp_path_info_cmp(bgp, first, look_thru, &paths_eq, |
