diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-26 19:24:45 +0200 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-08-27 09:53:02 -0400 |
| commit | 82e52e0f21c12aa5b7270032c32b38e1fa33aa28 (patch) | |
| tree | 6a771925348869c500ab278fd54fb30b267bc7bf /pathd/path_pcep_cli.c | |
| parent | 5dac6961540422a1ca139fae8c5ea9e5a437c4ba (diff) | |
lib: common debug config output
Implement common code for debug config 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 | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c index 1e0d52e38d..4294b51c57 100644 --- a/pathd/path_pcep_cli.c +++ b/pathd/path_pcep_cli.c @@ -46,7 +46,6 @@ #define BUFFER_PCC_PCE_SIZE 1024 /* CLI Function declarations */ -static int pcep_cli_debug_config_write(struct vty *vty); static int pcep_cli_pcep_config_write(struct vty *vty); static int pcep_cli_pcc_config_write(struct vty *vty); static int pcep_cli_pce_config_write(struct vty *vty); @@ -1695,20 +1694,6 @@ static int path_pcep_cli_clear_srte_pcep_session(struct vty *vty, * Config Write functions */ -int pcep_cli_debug_config_write(struct vty *vty) -{ - if (DEBUG_MODE_CHECK(&pcep_g->dbg_basic, DEBUG_MODE_CONF)) - vty_out(vty, "debug pathd pcep basic\n"); - if (DEBUG_MODE_CHECK(&pcep_g->dbg_path, DEBUG_MODE_CONF)) - vty_out(vty, "debug pathd pcep path\n"); - if (DEBUG_MODE_CHECK(&pcep_g->dbg_msg, DEBUG_MODE_CONF)) - vty_out(vty, "debug pathd pcep message\n"); - if (DEBUG_MODE_CHECK(&pcep_g->dbg_lib, DEBUG_MODE_CONF)) - vty_out(vty, "debug pathd pcep pceplib\n"); - - return 0; -} - int pcep_cli_pcep_config_write(struct vty *vty) { vty_out(vty, " pcep\n"); @@ -2331,8 +2316,6 @@ DEFPY(pcep_cli_clear_srte_pcep_session, void pcep_cli_init(void) { hook_register(pathd_srte_config_write, pcep_cli_pcep_config_write); - hook_register(nb_client_debug_config_write, - pcep_cli_debug_config_write); debug_install(&pcep_g->dbg_basic); debug_install(&pcep_g->dbg_path); |
