*: Consolidate all double VIEW_NODE and ENABLE_NODE's
If a command is put into the VIEW_NODE, it is going into the
ENABLE_NODE as well. This is especially true for show commands.
As such if a command is in both consolidate it down to VIEW_NODE.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index f99045a..746c545 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -16226,134 +16226,12 @@
install_element (RESTRICTED_NODE, &show_bgp_view_ipv4_safi_rsclient_route_cmd);
install_element (RESTRICTED_NODE, &show_bgp_view_ipv4_safi_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_vpn_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_vpn_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_vpn_rd_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_vpn_rd_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_encap_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_encap_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_rd_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_rd_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_vpn_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_vpn_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_encap_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_encap_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_rd_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_rd_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_afi_safi_view_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community2_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community3_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community4_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community2_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community3_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community4_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_community_all_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_community_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_community2_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_community3_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_community4_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_afi_safi_neighbor_adv_recd_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_dampened_paths_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_dampened_paths_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_dampened_paths_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_dampened_paths_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_statistics_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_statistics_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_statistics_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_statistics_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_address_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_flap_address_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_address_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_flap_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_flap_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_damp_flap_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_damp_flap_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv4_safi_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv4_safi_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv4_safi_rsclient_prefix_cmd);
-
- /* BGP dampening clear commands */
+ /* BGP dampening clear commands */
install_element (ENABLE_NODE, &clear_ip_bgp_dampening_cmd);
install_element (ENABLE_NODE, &clear_ip_bgp_dampening_prefix_cmd);
install_element (ENABLE_NODE, &clear_ip_bgp_dampening_address_cmd);
install_element (ENABLE_NODE, &clear_ip_bgp_dampening_address_mask_cmd);
- /* prefix count */
- install_element (ENABLE_NODE, &show_bgp_ipv4_safi_neighbor_prefix_counts_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_neighbor_prefix_counts_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_prefix_counts_cmd);
-
/* New config IPv6 BGP commands. */
install_element (BGP_IPV6_NODE, &ipv6_bgp_network_cmd);
install_element (BGP_IPV6_NODE, &ipv6_bgp_network_route_map_cmd);
@@ -16453,56 +16331,6 @@
install_element (RESTRICTED_NODE, &show_bgp_view_ipv6_rsclient_prefix_cmd);
install_element (RESTRICTED_NODE, &show_bgp_view_ipv6_safi_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community2_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community3_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community4_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_community_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv4_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv4_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_safi_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_safi_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_ipv6_safi_rsclient_prefix_cmd);
-
/* Statistics */
install_element (ENABLE_NODE, &show_bgp_statistics_cmd);
install_element (ENABLE_NODE, &show_bgp_statistics_view_cmd);
@@ -16677,6 +16505,7 @@
install_element (VIEW_NODE, &show_ip_bgp_view_rsclient_cmd);
install_element (VIEW_NODE, &show_ip_bgp_view_rsclient_route_cmd);
install_element (VIEW_NODE, &show_ip_bgp_view_rsclient_prefix_cmd);
+
install_element (RESTRICTED_NODE, &show_ip_bgp_route_cmd);
install_element (RESTRICTED_NODE, &show_ip_bgp_ipv4_route_cmd);
install_element (RESTRICTED_NODE, &show_ip_bgp_vpnv4_rd_route_cmd);
@@ -16706,97 +16535,10 @@
install_element (RESTRICTED_NODE, &show_ip_bgp_rsclient_prefix_cmd);
install_element (RESTRICTED_NODE, &show_ip_bgp_view_rsclient_route_cmd);
install_element (RESTRICTED_NODE, &show_ip_bgp_view_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_vpnv4_all_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_vpnv4_rd_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_vpnv4_all_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_vpnv4_rd_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_regexp_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_regexp_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_filter_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_filter_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_route_map_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_route_map_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community_all_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community_all_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community2_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community3_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community4_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community2_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community3_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community4_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_dampening_params_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_dampened_paths_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_dampening_parameters_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_dampening_dampd_paths_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_dampening_flap_stats_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_dampened_paths_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_statistics_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_statistics_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_address_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_address_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_cidr_only_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_regexp_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_regexp_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_filter_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_filter_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_flap_route_map_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_damp_flap_route_map_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_rsclient_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_rsclient_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_view_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_neighbor_prefix_counts_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_ipv4_neighbor_prefix_counts_cmd);
- install_element (ENABLE_NODE, &show_ip_bgp_vpnv4_neighbor_prefix_counts_cmd);
+
+ install_element (VIEW_NODE, &show_ip_bgp_neighbor_prefix_counts_cmd);
+ install_element (VIEW_NODE, &show_ip_bgp_ipv4_neighbor_prefix_counts_cmd);
+ install_element (VIEW_NODE, &show_ip_bgp_vpnv4_neighbor_prefix_counts_cmd);
install_element (VIEW_NODE, &show_bgp_cmd);
install_element (VIEW_NODE, &show_bgp_ipv6_cmd);
install_element (VIEW_NODE, &show_bgp_route_cmd);
@@ -16836,6 +16578,7 @@
install_element (VIEW_NODE, &show_bgp_view_neighbor_flap_cmd);
install_element (VIEW_NODE, &show_bgp_view_neighbor_damp_cmd);
install_element (VIEW_NODE, &show_bgp_view_rsclient_cmd);
+
install_element (RESTRICTED_NODE, &show_bgp_route_cmd);
install_element (RESTRICTED_NODE, &show_bgp_prefix_cmd);
install_element (RESTRICTED_NODE, &show_bgp_community_cmd);
@@ -16849,46 +16592,10 @@
install_element (RESTRICTED_NODE, &show_bgp_view_route_cmd);
install_element (RESTRICTED_NODE, &show_bgp_view_prefix_cmd);
install_element (RESTRICTED_NODE, &show_bgp_view_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_cmd);
- install_element (ENABLE_NODE, &show_bgp_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_regexp_cmd);
- install_element (ENABLE_NODE, &show_bgp_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_filter_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_route_map_cmd);
- install_element (ENABLE_NODE, &show_bgp_community_all_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community_all_cmd);
- install_element (ENABLE_NODE, &show_bgp_community_cmd);
- install_element (ENABLE_NODE, &show_bgp_community2_cmd);
- install_element (ENABLE_NODE, &show_bgp_community3_cmd);
- install_element (ENABLE_NODE, &show_bgp_community4_cmd);
- install_element (ENABLE_NODE, &show_bgp_community_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_safi_community_list_cmd);
- install_element (ENABLE_NODE, &show_bgp_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_bgp_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_bgp_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_bgp_rsclient_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_neighbor_received_prefix_filter_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_neighbor_flap_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_neighbor_damp_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_rsclient_cmd);
+
install_element (ENABLE_NODE, &show_bgp_statistics_vpnv4_cmd);
install_element (ENABLE_NODE, &show_bgp_statistics_view_vpnv4_cmd);
+
install_element (VIEW_NODE, &show_ipv6_bgp_cmd);
install_element (VIEW_NODE, &show_ipv6_bgp_route_cmd);
install_element (VIEW_NODE, &show_ipv6_bgp_prefix_cmd);
@@ -16925,54 +16632,12 @@
install_element (VIEW_NODE, &show_ipv6_mbgp_community_list_cmd);
install_element (VIEW_NODE, &show_ipv6_mbgp_community_list_exact_cmd);
install_element (VIEW_NODE, &show_ipv6_mbgp_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_route_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_prefix_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_regexp_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_filter_list_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community_all_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community2_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community3_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community4_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community_list_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_bgp_prefix_longer_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_route_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_prefix_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_regexp_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_prefix_list_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_filter_list_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community_all_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community2_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community3_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community4_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community_list_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_ipv6_mbgp_prefix_longer_cmd);
install_element (VIEW_NODE, &ipv6_bgp_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &ipv6_bgp_neighbor_advertised_route_cmd);
install_element (VIEW_NODE, &ipv6_mbgp_neighbor_advertised_route_cmd);
- install_element (ENABLE_NODE, &ipv6_mbgp_neighbor_advertised_route_cmd);
install_element (VIEW_NODE, &ipv6_bgp_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &ipv6_bgp_neighbor_received_routes_cmd);
install_element (VIEW_NODE, &ipv6_mbgp_neighbor_received_routes_cmd);
- install_element (ENABLE_NODE, &ipv6_mbgp_neighbor_received_routes_cmd);
install_element (VIEW_NODE, &ipv6_bgp_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &ipv6_bgp_neighbor_routes_cmd);
install_element (VIEW_NODE, &ipv6_mbgp_neighbor_routes_cmd);
- install_element (ENABLE_NODE, &ipv6_mbgp_neighbor_routes_cmd);
/* old with name safi collision */
install_element (VIEW_NODE, &show_bgp_ipv6_community_cmd);
install_element (VIEW_NODE, &show_bgp_ipv6_community2_cmd);
@@ -16990,32 +16655,23 @@
install_element (RESTRICTED_NODE, &show_bgp_ipv6_community2_exact_cmd);
install_element (RESTRICTED_NODE, &show_bgp_ipv6_community3_exact_cmd);
install_element (RESTRICTED_NODE, &show_bgp_ipv6_community4_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community2_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community3_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community4_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community2_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community3_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community4_exact_cmd);
install_element (ENABLE_NODE, &show_bgp_ipv6_community_list_exact_cmd);
+
install_element (VIEW_NODE, &show_bgp_ipv6_community_list_cmd);
install_element (VIEW_NODE, &show_bgp_ipv6_community_list_exact_cmd);
- install_element (ENABLE_NODE, &show_bgp_ipv6_community_list_cmd);
install_element (VIEW_NODE, &show_bgp_rsclient_route_cmd);
install_element (VIEW_NODE, &show_bgp_rsclient_prefix_cmd);
install_element (RESTRICTED_NODE, &show_bgp_rsclient_route_cmd);
install_element (RESTRICTED_NODE, &show_bgp_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_rsclient_prefix_cmd);
install_element (VIEW_NODE, &show_bgp_view_rsclient_route_cmd);
install_element (VIEW_NODE, &show_bgp_view_rsclient_prefix_cmd);
install_element (RESTRICTED_NODE, &show_bgp_view_rsclient_route_cmd);
install_element (RESTRICTED_NODE, &show_bgp_view_rsclient_prefix_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_rsclient_route_cmd);
- install_element (ENABLE_NODE, &show_bgp_view_rsclient_prefix_cmd);
+
+ install_element (VIEW_NODE, &show_bgp_view_rsclient_route_cmd);
+ install_element (VIEW_NODE, &show_bgp_view_rsclient_prefix_cmd);
}
void