summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-02-22 14:13:08 -0600
committerGitHub <noreply@github.com>2025-02-22 14:13:08 -0600
commit2539e678848b8f9f629c395c6c21770cc9237d09 (patch)
treea47d9bf13dc9eda4a5f6693cd6b0f14f30b27ba0
parentf526b3d8f0aed1c2eff036b60c953103b5fe9f3c (diff)
parent41c3eb672e7baae98bb6f6e5e56704b08572e63d (diff)
Merge pull request #18228 from FRRouting/mergify/bp/stable/10.2/pr-18210
bgpd: remove dmed check not required in bestpath selection (backport #18210)
-rw-r--r--bgpd/bgp_route.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index de8c5c8ab0..a12fe28ad2 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -3135,21 +3135,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,