diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-09-24 10:32:30 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-27 12:38:08 -0400 |
| commit | 3d174ce08db7489e2424ac16f35557c9627c75e0 (patch) | |
| tree | 699c167065fe54bdabe4a3e7d83e8f7247741ed1 /zebra/zebra_rnh.c | |
| parent | ad5c8f67a8aa57d681c4df337dbbfe895529c080 (diff) | |
*: Remove the ZEBRA_IMPORT_ROUTE_XXX zapi messages
These are no longer really needed. The client just needs
to call nexthop resolution instead.
So let's remove the zapi types.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_rnh.c')
| -rw-r--r-- | zebra/zebra_rnh.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index 636fa92711..ae03a70583 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -1286,8 +1286,6 @@ int zebra_send_rnh_update(struct rnh *rnh, struct zserv *client, struct route_node *rn; int ret; uint32_t message = 0; - int cmd = (type == RNH_IMPORT_CHECK_TYPE) ? ZEBRA_IMPORT_CHECK_UPDATE - : ZEBRA_NEXTHOP_UPDATE; rn = rnh->node; re = rnh->state; @@ -1295,7 +1293,7 @@ int zebra_send_rnh_update(struct rnh *rnh, struct zserv *client, /* Get output stream. */ s = stream_new(ZEBRA_MAX_PACKET_SIZ); - zclient_create_header(s, cmd, vrf_id); + zclient_create_header(s, ZEBRA_NEXTHOP_UPDATE, vrf_id); /* Message flags. */ if (srte_color) |
