*: move "debug ..." commands to enable node

Use the same node for "debug" commands in all daemons.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2020-10-01 17:49:47 +03:00
parent 3a1d1d6076
commit eed041e87c
3 changed files with 3 additions and 3 deletions

View File

@ -1145,7 +1145,7 @@ void pbr_vty_init(void)
/* debug */ /* debug */
install_node(&debug_node); 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(CONFIG_NODE, &debug_pbr_cmd);
install_element(VIEW_NODE, &show_debugging_pbr_cmd); install_element(VIEW_NODE, &show_debugging_pbr_cmd);

View File

@ -1170,6 +1170,6 @@ void static_vty_init(void)
install_element(VRF_NODE, &ipv6_route_vrf_cmd); install_element(VRF_NODE, &ipv6_route_vrf_cmd);
install_element(VIEW_NODE, &show_debugging_static_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); install_element(CONFIG_NODE, &debug_staticd_cmd);
} }

View 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_cmd);
install_element(VIEW_NODE, &vrrp_vrid_show_summary_cmd); install_element(VIEW_NODE, &vrrp_vrid_show_summary_cmd);
install_element(VIEW_NODE, &show_debugging_vrrp_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, &debug_vrrp_cmd);
install_element(CONFIG_NODE, &vrrp_autoconfigure_cmd); install_element(CONFIG_NODE, &vrrp_autoconfigure_cmd);
install_element(CONFIG_NODE, &vrrp_default_cmd); install_element(CONFIG_NODE, &vrrp_default_cmd);