*: move "show debugging ..." commands to enable node

Use the same node for "show debugging" commands in all daemons.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2020-10-01 17:57:23 +03:00
parent eed041e87c
commit dd73744d8c
11 changed files with 14 additions and 12 deletions

View file

@ -251,7 +251,7 @@ void babelz_zebra_init(void)
install_element(CONFIG_NODE, &debug_babel_cmd);
install_element(CONFIG_NODE, &no_debug_babel_cmd);
install_element(VIEW_NODE, &show_debugging_babel_cmd);
install_element(ENABLE_NODE, &show_debugging_babel_cmd);
}
void

View file

@ -1109,11 +1109,12 @@ void nhrp_config_init(void)
access_list_init();
/* global commands */
install_element(VIEW_NODE, &show_debugging_nhrp_cmd);
install_element(VIEW_NODE, &show_ip_nhrp_cmd);
install_element(VIEW_NODE, &show_dmvpn_cmd);
install_element(ENABLE_NODE, &clear_nhrp_cmd);
install_element(ENABLE_NODE, &show_debugging_nhrp_cmd);
install_element(ENABLE_NODE, &debug_nhrp_cmd);
install_element(ENABLE_NODE, &no_debug_nhrp_cmd);

View file

@ -1236,7 +1236,7 @@ void ospf6_init(void)
install_element_ospf6_clear_interface();
install_element(VIEW_NODE, &show_debugging_ospf6_cmd);
install_element(ENABLE_NODE, &show_debugging_ospf6_cmd);
install_element(VIEW_NODE, &show_ipv6_ospf6_border_routers_cmd);

View file

@ -1147,7 +1147,7 @@ void pbr_vty_init(void)
install_node(&debug_node);
install_element(ENABLE_NODE, &debug_pbr_cmd);
install_element(CONFIG_NODE, &debug_pbr_cmd);
install_element(VIEW_NODE, &show_debugging_pbr_cmd);
install_element(ENABLE_NODE, &show_debugging_pbr_cmd);
install_default(PBRMAP_NODE);

View file

@ -11236,7 +11236,6 @@ void pim_cmd_init(void)
install_element(VIEW_NODE, &show_ip_mroute_summary_vrf_all_cmd);
install_element(VIEW_NODE, &show_ip_rib_cmd);
install_element(VIEW_NODE, &show_ip_ssmpingd_cmd);
install_element(VIEW_NODE, &show_debugging_pim_cmd);
install_element(VIEW_NODE, &show_ip_pim_nexthop_cmd);
install_element(VIEW_NODE, &show_ip_pim_nexthop_lookup_cmd);
install_element(VIEW_NODE, &show_ip_pim_bsrp_cmd);
@ -11252,6 +11251,8 @@ void pim_cmd_init(void)
install_element(ENABLE_NODE, &clear_ip_pim_oil_cmd);
install_element(ENABLE_NODE, &clear_ip_pim_statistics_cmd);
install_element(ENABLE_NODE, &show_debugging_pim_cmd);
install_element(ENABLE_NODE, &debug_igmp_cmd);
install_element(ENABLE_NODE, &no_debug_igmp_cmd);
install_element(ENABLE_NODE, &debug_igmp_events_cmd);

View file

@ -218,7 +218,7 @@ void ripng_debug_init(void)
install_node(&debug_node);
install_element(VIEW_NODE, &show_debugging_ripng_cmd);
install_element(ENABLE_NODE, &show_debugging_ripng_cmd);
install_element(ENABLE_NODE, &debug_ripng_events_cmd);
install_element(ENABLE_NODE, &debug_ripng_packet_cmd);

View file

@ -716,7 +716,7 @@ void sharp_vty_init(void)
install_element(ENABLE_NODE, &send_opaque_reg_cmd);
install_element(ENABLE_NODE, &neigh_discover_cmd);
install_element(VIEW_NODE, &show_debugging_sharpd_cmd);
install_element(ENABLE_NODE, &show_debugging_sharpd_cmd);
return;
}

View file

@ -1169,7 +1169,7 @@ void static_vty_init(void)
install_element(CONFIG_NODE, &ipv6_route_cmd);
install_element(VRF_NODE, &ipv6_route_vrf_cmd);
install_element(VIEW_NODE, &show_debugging_static_cmd);
install_element(ENABLE_NODE, &show_debugging_static_cmd);
install_element(ENABLE_NODE, &debug_staticd_cmd);
install_element(CONFIG_NODE, &debug_staticd_cmd);
}

View file

@ -775,7 +775,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(ENABLE_NODE, &show_debugging_vrrp_cmd);
install_element(ENABLE_NODE, &debug_vrrp_cmd);
install_element(CONFIG_NODE, &debug_vrrp_cmd);
install_element(CONFIG_NODE, &vrrp_autoconfigure_cmd);

View file

@ -4271,9 +4271,9 @@ void vtysh_init_vty(void)
#endif
/* debugging */
install_element(VIEW_NODE, &vtysh_show_debugging_cmd);
install_element(VIEW_NODE, &vtysh_show_error_code_cmd);
install_element(VIEW_NODE, &vtysh_show_debugging_hashtable_cmd);
install_element(ENABLE_NODE, &vtysh_show_debugging_cmd);
install_element(ENABLE_NODE, &vtysh_show_debugging_hashtable_cmd);
install_element(ENABLE_NODE, &vtysh_debug_all_cmd);
install_element(CONFIG_NODE, &vtysh_debug_all_cmd);
install_element(ENABLE_NODE, &vtysh_debug_memstats_cmd);

View file

@ -671,7 +671,7 @@ void zebra_debug_init(void)
install_node(&debug_node);
install_element(VIEW_NODE, &show_debugging_zebra_cmd);
install_element(ENABLE_NODE, &show_debugging_zebra_cmd);
install_element(ENABLE_NODE, &debug_zebra_events_cmd);
install_element(ENABLE_NODE, &debug_zebra_nht_cmd);