diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-11-11 14:14:37 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-15 15:04:52 -0500 |
| commit | 7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea (patch) | |
| tree | 50d3a706d34cd135865356c0d95f04511497510b /pbrd/pbr_zebra.c | |
| parent | 8a3f8f2e4ae1e8aaa3666fd8d38780e753bc09e7 (diff) | |
*: 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 'pbrd/pbr_zebra.c')
| -rw-r--r-- | pbrd/pbr_zebra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index 82a2d2feb5..222a10e751 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -476,8 +476,8 @@ void pbr_send_rnh(struct nexthop *nhop, bool reg) break; } - if (zclient_send_rnh(zclient, command, &p, - false, nhop->vrf_id) < 0) { + if (zclient_send_rnh(zclient, command, &p, false, nhop->vrf_id) + == ZCLIENT_SEND_FAILURE) { zlog_warn("%s: Failure to send nexthop to zebra", __func__); } } |
