diff options
author | Mark Stapp <mjs@voltanet.io> | 2018-08-17 22:53:24 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2018-10-25 14:57:04 +0200 |
commit | f183e380fae61b7c1f89fed6e32ed5a9d1ede8a8 (patch) | |
tree | 923e8944125b43dc055910ddf57bb2d376523a83 /zebra/zebra_dplane.h | |
parent | zebra: add dplane show commands (diff) | |
download | frr-f183e380fae61b7c1f89fed6e32ed5a9d1ede8a8.tar.xz frr-f183e380fae61b7c1f89fed6e32ed5a9d1ede8a8.zip |
zebra: add handy res2str utility
Add a 2str utility for dplane result codes; use it in
a debug or two.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r-- | zebra/zebra_dplane.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h index aa7443cf8..37cd2ca7f 100644 --- a/zebra/zebra_dplane.h +++ b/zebra/zebra_dplane.h @@ -134,6 +134,7 @@ void dplane_ctx_dequeue(struct dplane_ctx_q_s *q, dplane_ctx_h *ctxp); * Accessors for information from the context object */ enum zebra_dplane_result dplane_ctx_get_status(const dplane_ctx_h ctx); +const char *dplane_res2str(enum zebra_dplane_result res); enum dplane_op_e dplane_ctx_get_op(const dplane_ctx_h ctx); const char *dplane_op2str(enum dplane_op_e op); |