diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-10-07 07:51:17 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-10-07 12:39:05 -0400 |
| commit | cf00164b69743b541505da8301a340d5dd9154ce (patch) | |
| tree | 7f3c3e7c8a290c5d2a55f7e364089eb02b8d5e06 /lib/routemap.c | |
| parent | a00621d8b90cb1ddb91557f778c56b89a0b6e1ac (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/routemap.c')
| -rw-r--r-- | lib/routemap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index 3cc010c148..3a92799991 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -3174,6 +3174,12 @@ static struct cmd_node rmap_debug_node = { .config_write = rmap_config_write_debug, }; +void route_map_show_debug(struct vty *vty) +{ + if (rmap_debug) + vty_out(vty, "debug route-map\n"); +} + /* Configuration write function. */ static int rmap_config_write_debug(struct vty *vty) { |
