summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-10-07 07:51:17 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-10-07 12:39:05 -0400
commitcf00164b69743b541505da8301a340d5dd9154ce (patch)
tree7f3c3e7c8a290c5d2a55f7e364089eb02b8d5e06 /lib/command.h
parenta00621d8b90cb1ddb91557f778c56b89a0b6e1ac (diff)
*: Create and use infrastructure to show debugs in lib
There are lib debugs being set but never show up in `show debug` commands because there was no way to show that they were being used. Add a bit of infrastructure to allow this and then use it for `debug route-map` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index 70e52708a7..ca49efd262 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -649,6 +649,12 @@ extern char *cmd_variable_comp2str(vector comps, unsigned short cols);
extern void command_setup_early_logging(const char *dest, const char *level);
+/*
+ * Allow a mechanism for `debug XXX` commands that live
+ * under the lib directory to output their debug status
+ */
+extern void cmd_show_lib_debugs(struct vty *vty);
+
#ifdef __cplusplus
}
#endif