Commit 3cf4d419 authored by Ondrej Zajicek (work)'s avatar Ondrej Zajicek (work)
Browse files

Static: Fix merging of static routes with different metric

parent f29478d9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -374,9 +374,11 @@ static_rte_better(struct rte *new, struct rte *old)
}

static int
static_rte_mergable(rte *pri UNUSED, rte *sec UNUSED)
static_rte_mergable(rte *pri, rte *sec)
{
  return 1;
  u32 a = ea_get_int(pri->attrs->eattrs, EA_GEN_IGP_METRIC, IGP_METRIC_UNKNOWN);
  u32 b = ea_get_int(sec->attrs->eattrs, EA_GEN_IGP_METRIC, IGP_METRIC_UNKNOWN);
  return a == b;
}