diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-11-11 20:14:37 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-15 21:04:52 +0100 |
commit | 7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea (patch) | |
tree | 50d3a706d34cd135865356c0d95f04511497510b /staticd/static_zebra.c | |
parent | bgpd, lib, sharpd: Add enum for zclient_send_message return (diff) | |
download | frr-7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea.tar.xz frr-7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea.zip |
*: Convert all usage of zclient_send_message to new enum
The `enum zclient_send_status` enum needs to be extended
throughout the code base to use the new states and
to fix up places where we tested against the return
value being non zero.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'staticd/static_zebra.c')
-rw-r--r-- | staticd/static_zebra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 0bccbfbea..19c578c60 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -331,7 +331,8 @@ void static_zebra_nht_register(struct route_node *rn, struct static_nexthop *nh, static_nht_hash_free(nhtd); } - if (zclient_send_rnh(zclient, cmd, &p, false, nh->nh_vrf_id) < 0) + if (zclient_send_rnh(zclient, cmd, &p, false, nh->nh_vrf_id) + == ZCLIENT_SEND_FAILURE) zlog_warn("%s: Failure to send nexthop to zebra", __func__); } /* |