]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix duplicate installs of rfapi commands
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Oct 2016 14:20:39 +0000 (10:20 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Oct 2016 14:39:31 +0000 (10:39 -0400)
When installing commands into the parser, don't duplicate
the enable/view nodes.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/rfapi/rfapi_vty.c

index 1978bec280d0c92966ae4425ea93e742673b44d7..c198564d105f2b6df507e1bcabb41beeddaf393c 100644 (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);
 }