]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: use update semantics for routes consistently 3778/head
authorMark Stapp <mjs@voltanet.io>
Mon, 11 Feb 2019 21:11:02 +0000 (16:11 -0500)
committerMark Stapp <mjs@voltanet.io>
Mon, 11 Feb 2019 21:11:02 +0000 (16:11 -0500)
Use 'update' semantics for route updates, to ensure that
netlink replace behavior works correctly.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_rib.c

index dcc5a7acb00ee0d70c82a0097ca107bba8550a4b..8afcc2b685cb0ac9919ff0e112379c4a3964aa42 100644 (file)
@@ -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);