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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-10-21 10:20:39 -04:00
parent 9d2ea60802
commit 9408259a54

View File

@ -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);
}