summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-02-21 17:11:13 -0600
committerGitHub <noreply@github.com>2025-02-21 17:11:13 -0600
commit67985ba8ec4df5a444fc7078e8523a64c9367053 (patch)
tree22d77e719f5a056302fd00ecabe4b3d024acac9c
parent7719645c69cef1dcde796c0d8f42c48b562be253 (diff)
parent83ad94694bc061e1ff5f43db42cba46320e0df73 (diff)
Merge pull request #18210 from donaldsharp/fix_bestpath_evpn_issue
bgpd: remove dmed check not required in bestpath selection
-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 479a7dfed1..3bbbdee161 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -3211,21 +3211,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,