From b354c427e18c595c71d497a38aa984ae244228eb Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Wed, 22 Jul 2015 12:35:38 -0700 Subject: [PATCH] multipath is broken if deterministic-med is enabled --- bgpd/bgp_route.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index f1982b101b..0c4b79cf98 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1877,10 +1877,6 @@ bgp_best_selection (struct bgp *bgp, struct bgp_node *rn, if (ri->peer->status != Established) continue; - if (bgp_flag_check (bgp, BGP_FLAG_DETERMINISTIC_MED) - && (! CHECK_FLAG (ri->flags, BGP_INFO_DMED_SELECTED))) - continue; - bgp_info_cmp (bgp, ri, new_select, &paths_eq, mpath_cfg, debug, pfx_buf); if (paths_eq) @@ -1893,9 +1889,7 @@ bgp_best_selection (struct bgp *bgp, struct bgp_node *rn, } } - if (!bgp_flag_check (bgp, BGP_FLAG_DETERMINISTIC_MED)) - bgp_info_mpath_update (rn, new_select, old_select, &mp_list, mpath_cfg); - + bgp_info_mpath_update (rn, new_select, old_select, &mp_list, mpath_cfg); bgp_info_mpath_aggregate_update (new_select, old_select); bgp_mp_list_clear (&mp_list); -- 2.39.5