From: Igor Ryzhov Date: Thu, 1 Oct 2020 14:49:47 +0000 (+0300) Subject: *: move "debug ..." commands to enable node X-Git-Tag: frr-7.5~10^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=05b4f2e86377493f2d1f094650f45151401869da;p=mirror%2Ffrr.git *: move "debug ..." commands to enable node Use the same node for "debug" commands in all daemons. Signed-off-by: Igor Ryzhov --- diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index 9f966f617f..f92276cffe 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -1145,7 +1145,7 @@ void pbr_vty_init(void) /* debug */ install_node(&debug_node); - install_element(VIEW_NODE, &debug_pbr_cmd); + install_element(ENABLE_NODE, &debug_pbr_cmd); install_element(CONFIG_NODE, &debug_pbr_cmd); install_element(VIEW_NODE, &show_debugging_pbr_cmd); diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 4821671554..55610fd1e0 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1170,6 +1170,6 @@ void static_vty_init(void) install_element(VRF_NODE, &ipv6_route_vrf_cmd); install_element(VIEW_NODE, &show_debugging_static_cmd); - install_element(VIEW_NODE, &debug_staticd_cmd); + install_element(ENABLE_NODE, &debug_staticd_cmd); install_element(CONFIG_NODE, &debug_staticd_cmd); } diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c index 3165ea119a..8dd97a173e 100644 --- a/vrrpd/vrrp_vty.c +++ b/vrrpd/vrrp_vty.c @@ -776,7 +776,7 @@ void vrrp_vty_init(void) install_element(VIEW_NODE, &vrrp_vrid_show_cmd); install_element(VIEW_NODE, &vrrp_vrid_show_summary_cmd); install_element(VIEW_NODE, &show_debugging_vrrp_cmd); - install_element(VIEW_NODE, &debug_vrrp_cmd); + install_element(ENABLE_NODE, &debug_vrrp_cmd); install_element(CONFIG_NODE, &debug_vrrp_cmd); install_element(CONFIG_NODE, &vrrp_autoconfigure_cmd); install_element(CONFIG_NODE, &vrrp_default_cmd);