From 9408259a54093b395e5798068a5b4cd0d32be97f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 21 Oct 2016 10:20:39 -0400 Subject: [PATCH] bgpd: Fix duplicate installs of rfapi commands When installing commands into the parser, don't duplicate the enable/view nodes. Signed-off-by: Donald Sharp --- bgpd/rfapi/rfapi_vty.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c index 1978bec280..c198564d10 100644 --- a/bgpd/rfapi/rfapi_vty.c +++ b/bgpd/rfapi/rfapi_vty.c @@ -4983,34 +4983,21 @@ void rfapi_vty_init () install_element (ENABLE_NODE, &vnc_clear_counters_cmd); install_element (VIEW_NODE, &vnc_show_summary_cmd); - install_element (ENABLE_NODE, &vnc_show_summary_cmd); install_element (VIEW_NODE, &vnc_show_nves_cmd); - install_element (ENABLE_NODE, &vnc_show_nves_cmd); install_element (VIEW_NODE, &vnc_show_nves_ptct_cmd); - install_element (ENABLE_NODE, &vnc_show_nves_ptct_cmd); install_element (VIEW_NODE, &vnc_show_registrations_cmd); - install_element (ENABLE_NODE, &vnc_show_registrations_cmd); install_element (VIEW_NODE, &vnc_show_registrations_pfx_cmd); - install_element (ENABLE_NODE, &vnc_show_registrations_pfx_cmd); install_element (VIEW_NODE, &vnc_show_registrations_some_cmd); - install_element (ENABLE_NODE, &vnc_show_registrations_some_cmd); install_element (VIEW_NODE, &vnc_show_registrations_some_pfx_cmd); - install_element (ENABLE_NODE, &vnc_show_registrations_some_pfx_cmd); install_element (VIEW_NODE, &vnc_show_responses_cmd); - install_element (ENABLE_NODE, &vnc_show_responses_cmd); install_element (VIEW_NODE, &vnc_show_responses_pfx_cmd); - install_element (ENABLE_NODE, &vnc_show_responses_pfx_cmd); install_element (VIEW_NODE, &vnc_show_responses_some_cmd); - install_element (ENABLE_NODE, &vnc_show_responses_some_cmd); install_element (VIEW_NODE, &vnc_show_responses_some_pfx_cmd); - install_element (ENABLE_NODE, &vnc_show_responses_some_pfx_cmd); - install_element (ENABLE_NODE, &show_vnc_queries_cmd); install_element (VIEW_NODE, &show_vnc_queries_cmd); - install_element (ENABLE_NODE, &show_vnc_queries_pfx_cmd); install_element (VIEW_NODE, &show_vnc_queries_pfx_cmd); } -- 2.39.5