diff options
Diffstat (limited to 'pathd/path_ted.c')
| -rw-r--r-- | pathd/path_ted.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/pathd/path_ted.c b/pathd/path_ted.c index 470a973ae2..88cda79187 100644 --- a/pathd/path_ted.c +++ b/pathd/path_ted.c @@ -30,11 +30,11 @@ static uint32_t path_ted_stop_importing_igp(void); static enum zclient_send_status path_ted_link_state_sync(void); static void path_ted_timer_handler_sync(struct event *thread); static void path_ted_timer_handler_refresh(struct event *thread); -static int path_ted_cli_debug_config_write(struct vty *vty); extern struct zclient *zclient; -struct ted_state ted_state_g = {}; +struct ted_state ted_state_g = { .dbg = { .conf = "debug pathd mpls-te", + .desc = "Pathd TED" } }; /* * path_path_ted public API function implementations @@ -467,14 +467,6 @@ DEFPY (show_pathd_ted_db, * Config Write functions */ -int path_ted_cli_debug_config_write(struct vty *vty) -{ - if (DEBUG_MODE_CHECK(&ted_state_g.dbg, DEBUG_MODE_CONF)) { - vty_out(vty, "debug pathd mpls-te\n"); - return 1; - } - return 0; -} void path_ted_show_debugging(struct vty *vty) { @@ -528,9 +520,6 @@ static void path_ted_register_vty(void) install_element(CONFIG_NODE, &debug_path_ted_cmd); install_element(ENABLE_NODE, &debug_path_ted_cmd); - hook_register(nb_client_debug_config_write, - path_ted_cli_debug_config_write); - debug_install(&ted_state_g.dbg); } |
