From 8263d1d0d9fe50186fee8883dd5b6a1723e23720 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Mon, 11 Feb 2019 16:11:02 -0500 Subject: [PATCH] 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 --- zebra/zebra_rib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5