]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: move "debug ..." commands to enable node
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 1 Oct 2020 14:49:47 +0000 (17:49 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Sat, 10 Oct 2020 09:54:45 +0000 (12:54 +0300)
Use the same node for "debug" commands in all daemons.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
pbrd/pbr_vty.c
staticd/static_vty.c
vrrpd/vrrp_vty.c

index 9f966f617ff4911733d9df781ed23a34750f1584..f92276cffe832b9d0a2211f0bf5cdc88b6e8bb47 100644 (file)
@@ -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);
 
index 48216715547dad6eee19798fcc3fce43bd99817f..55610fd1e04a5de8c7c684ed6dd0296d08451dae 100644 (file)
@@ -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);
 }
index 3165ea119af243b45444e1c301ae311e7a521b0d..8dd97a173e398e668651931183730a67361ce7d2 100644 (file)
@@ -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);