Skip to content

Commit

Permalink
Merge pull request #18227 from FRRouting/mergify/bp/dev/10.3/pr-18210
Browse files Browse the repository at this point in the history
bgpd: remove dmed check not required in bestpath selection (backport #18210)
  • Loading branch information
riw777 authored Feb 25, 2025
2 parents abae401 + d9712eb commit 45a6732
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -3195,21 +3195,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,
Expand Down

0 comments on commit 45a6732

Please sign in to comment.