From: Mark Stapp Date: Mon, 11 Feb 2019 21:11:02 +0000 (-0500) Subject: zebra: use update semantics for routes consistently X-Git-Tag: 7.1_pulled~250^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3778%2Fhead;p=mirror%2Ffrr.git zebra: use update semantics for routes consistently Use 'update' semantics for route updates, to ensure that netlink replace behavior works correctly. Signed-off-by: Mark Stapp --- diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index dcc5a7acb0..8afcc2b685 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1089,7 +1089,7 @@ void rib_install_kernel(struct route_node *rn, struct route_entry *re, hook_call(rib_update, rn, "installing in kernel"); /* Send add or update */ - if (old && (old != re)) + if (old) ret = dplane_route_update(rn, re, old); else ret = dplane_route_add(rn, re);