Merge pull request #6602 from donaldsharp/allow_installation

zebra: When installing a nexthop-group success is vital
This commit is contained in:
Mark Stapp 2020-06-18 08:30:07 -04:00 committed by GitHub
commit 6df72c7f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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