diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-10-07 13:51:17 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-10-07 18:39:05 +0200 |
commit | cf00164b69743b541505da8301a340d5dd9154ce (patch) | |
tree | 7f3c3e7c8a290c5d2a55f7e364089eb02b8d5e06 /lib/command.c | |
parent | Merge pull request #12034 from opensourcerouting/fix/gr_hard_notification (diff) | |
download | frr-cf00164b69743b541505da8301a340d5dd9154ce.tar.xz frr-cf00164b69743b541505da8301a340d5dd9154ce.zip |
*: 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.c')
-rw-r--r-- | lib/command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c index a23afb1e4..7e171cb30 100644 --- a/lib/command.c +++ b/lib/command.c @@ -48,6 +48,7 @@ #include "lib_errors.h" #include "northbound_cli.h" #include "network.h" +#include "routemap.h" #include "frrscript.h" @@ -2446,6 +2447,11 @@ const char *host_config_get(void) return host.config; } +void cmd_show_lib_debugs(struct vty *vty) +{ + route_map_show_debug(vty); +} + void install_default(enum node_type node) { _install_element(node, &config_exit_cmd); |