continue;
}
- if (bgp_evpn_path_info_cmp(bgp, tmp_pi,
- second_best_path, &paths_eq))
+ if (bgp_evpn_path_info_cmp(bgp, tmp_pi, second_best_path,
+ &paths_eq, false))
second_best_path = tmp_pi;
}
int bgp_evpn_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
- struct bgp_path_info *exist, int *paths_eq)
+ struct bgp_path_info *exist, int *paths_eq,
+ bool debug)
{
enum bgp_path_selection_reason reason;
char pfx_buf[PREFIX2STR_BUFFER] = {};
- bool debug = false;
if (debug)
prefix2str(bgp_dest_get_prefix(new->net), pfx_buf,
uint8_t type, uint8_t stype,
struct attr *attr, struct bgp_dest *dest);
extern int bgp_evpn_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
- struct bgp_path_info *exist, int *paths_eq);
+ struct bgp_path_info *exist, int *paths_eq,
+ bool debug);
extern void bgp_aggregate_toggle_suppressed(struct bgp_aggregate *aggregate,
struct bgp *bgp,
const struct prefix *p, afi_t afi,