]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: When installing a nexthop-group success is vital
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Jun 2020 03:36:42 +0000 (23:36 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Jun 2020 03:36:42 +0000 (23:36 -0400)
When installing a nexthop-group the recent commit:
commit 0be6e7d75dbbbfae33c3b51ae7c160d35b228915

reversed the logic for testing if adding data to
the netlink message succeeded and we thought we did
not thus not creating the nexthop group.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c

index db574e748bf1a1a3ccfd784844ed329df42b6760..9883e73876dcb82fc09ffd00b320c7bfe30925e4 100644 (file)
@@ -2077,7 +2077,7 @@ ssize_t netlink_nexthop_msg_encode(uint16_t cmd,
                 * other ids.
                 */
                if (dplane_ctx_get_nhe_nh_grp_count(ctx)) {
-                       if (_netlink_nexthop_build_group(
+                       if (!_netlink_nexthop_build_group(
                                    &req->n, buflen, id,
                                    dplane_ctx_get_nhe_nh_grp(ctx),
                                    dplane_ctx_get_nhe_nh_grp_count(ctx)))