Commit 973cf09c authored by Ondřej Filip's avatar Ondřej Filip

Hotfix to problem with metric change reported by Luca.

parent 3fe5f899
......@@ -267,7 +267,10 @@ rip_rte_update_if_better(rtable *tab, net *net, struct proto *p, rte *new)
rte *old;
old = rte_find(net, p);
if (!old || p->rte_better(new, old))
if (!old || p->rte_better(new, old) ||
(ipa_equal(old->attrs->from, new->attrs->from) &&
(old-> != new-> )
rte_update(tab, net, p, new);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment