summaryrefslogtreecommitdiff
path: root/zebra/zebra_dplane.c
diff options
context:
space:
mode:
authorMark Stapp <mstapp@nvidia.com>2021-10-05 15:32:23 -0400
committerMark Stapp <mstapp@nvidia.com>2021-11-23 11:23:26 -0500
commit002930f7bb68850dbff4e4d71b54ca7814f4cb86 (patch)
tree36a4c303ae2a33b31a00f16f7ae5190ab103022b /zebra/zebra_dplane.c
parent6e5532187f9e11d10f364fdac9f8e4efb16ff9be (diff)
zebra: add installed nexthop-group id value
In some cases, zebra may install a nexthop-group id that is different from the id of the nhe struct attached to a route-entry. This happens for a singleton recursive nexthop, for example, where a route is installed with the resolving nexthop's id. The installed value is the most useful value - that corresponds to information in the kernel on linux/netlink platforms that support nhgs. Display both values if they differ in ascii output, and include both values in the json form. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
Diffstat (limited to 'zebra/zebra_dplane.c')
-rw-r--r--zebra/zebra_dplane.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index 4000272544..bf34fb54a9 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -2448,6 +2448,8 @@ int dplane_ctx_route_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
ret = ENOENT;
goto done;
}
+
+ re->nhe_installed_id = nhe->id;
}
#endif /* HAVE_NETLINK */