0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-13 22:58:42 +00:00

Static: Fix merging of static routes with different metric

This commit is contained in:
Ondrej Zajicek (work) 2019-09-17 14:15:41 +02:00
parent f29478d993
commit 3cf4d4191d

View File

@ -374,9 +374,11 @@ static_rte_better(struct rte *new, struct rte *old)
} }
static int 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;
} }