diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-26 20:25:21 +0200 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-08-27 09:53:02 -0400 |
| commit | 830972cab211a2f7ad82d7635ad9111afac8f47b (patch) | |
| tree | d33c9a59f0e3fefbcd9173684bacffbf41127f63 /pathd/path_pcep_cli.c | |
| parent | 82e52e0f21c12aa5b7270032c32b38e1fa33aa28 (diff) | |
lib: common debug status output
Implement common code for debug status output and remove daemon-specific
code that is duplicated everywhere.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'pathd/path_pcep_cli.c')
| -rw-r--r-- | pathd/path_pcep_cli.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c index 4294b51c57..8ceadb3e60 100644 --- a/pathd/path_pcep_cli.c +++ b/pathd/path_pcep_cli.c @@ -1952,27 +1952,6 @@ int pcep_cli_pcep_pce_config_write(struct vty *vty) * The param names are taken from the path_pcep_cli_clippy.c generated file. */ -DEFPY(show_debugging_pathd_pcep, - show_debugging_pathd_pcep_cmd, - "show debugging pathd-pcep", - SHOW_STR - "State of each debugging option\n" - "pathd pcep module debugging\n") -{ - vty_out(vty, "Pathd pcep debugging status:\n"); - - if (DEBUG_MODE_CHECK(&pcep_g->dbg_basic, DEBUG_MODE_ALL)) - vty_out(vty, "PCEP basic debugging is on\n"); - if (DEBUG_MODE_CHECK(&pcep_g->dbg_path, DEBUG_MODE_ALL)) - vty_out(vty, "PCEP path debugging is on\n"); - if (DEBUG_MODE_CHECK(&pcep_g->dbg_msg, DEBUG_MODE_ALL)) - vty_out(vty, "PCEP message debugging is on\n"); - if (DEBUG_MODE_CHECK(&pcep_g->dbg_lib, DEBUG_MODE_ALL)) - vty_out(vty, "PCEP lib debugging is on\n"); - - return CMD_SUCCESS; -} - DEFPY(pcep_cli_debug, pcep_cli_debug_cmd, "[no] debug pathd pcep [{basic$basic|path$path|message$msg|pceplib$lib}]", @@ -2369,7 +2348,6 @@ void pcep_cli_init(void) /* Top commands */ install_element(CONFIG_NODE, &pcep_cli_debug_cmd); install_element(ENABLE_NODE, &pcep_cli_debug_cmd); - install_element(ENABLE_NODE, &show_debugging_pathd_pcep_cmd); install_element(ENABLE_NODE, &pcep_cli_show_srte_pcep_counters_cmd); install_element(ENABLE_NODE, &pcep_cli_show_srte_pcep_pce_config_cmd); install_element(ENABLE_NODE, &pcep_cli_show_srte_pcep_pce_cmd); |
