From: Donald Sharp Date: Fri, 21 Oct 2016 14:20:39 +0000 (-0400) Subject: bgpd: Fix duplicate installs of rfapi commands X-Git-Tag: frr-2.0-rc1~99 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9408259a54093b395e5798068a5b4cd0d32be97f;p=mirror%2Ffrr.git 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 --- 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); }