summaryrefslogtreecommitdiff
path: root/lib/mgmt_be_client.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-04-26 17:50:46 -0400
committerChristian Hopps <chopps@labn.net>2023-05-01 13:47:12 -0400
commitcfa0facbf936fc6cc053fafea7d2b6fa8bccfc4c (patch)
tree727b06f65947ae9702c691dfeb4dfe8951225ca8 /lib/mgmt_be_client.h
parent13c426150fd4699466306d88a917df6493faf9bd (diff)
mgmtd: fully implement debug flags for mgmtd and clients
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.h')
-rw-r--r--lib/mgmt_be_client.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/mgmt_be_client.h b/lib/mgmt_be_client.h
index db427457a4..d4f2d86fdf 100644
--- a/lib/mgmt_be_client.h
+++ b/lib/mgmt_be_client.h
@@ -192,6 +192,20 @@ extern uintptr_t mgmt_be_client_lib_init(struct mgmt_be_client_params *params,
struct event_loop *master_thread);
/*
+ * Initialize library vty (adds debug support).
+ *
+ * This call should be added to your component when enabling other vty code to
+ * enable mgmtd client debugs. When adding, one needs to also add a their
+ * component in `xref2vtysh.py` as well.
+ */
+extern void mgmt_be_client_lib_vty_init(void);
+
+/*
+ * Print enabled debugging commands.
+ */
+extern void mgmt_debug_be_client_show_debug(struct vty *vty);
+
+/*
* Subscribe with MGMTD for one or more YANG subtree(s).
*
* lib_hndl