Merge pull request #3778 from mjstapp/fix_dplane_update

zebra: use update semantics for routes consistently
This commit is contained in:
Donald Sharp 2019-02-12 19:36:02 -05:00 committed by GitHub
commit 7a197b9269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);