]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: 'show commandtree' is not a CLI command
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 28 Jul 2016 18:02:52 +0000 (14:02 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 28 Jul 2016 18:02:52 +0000 (14:02 -0400)
The 'show commandtree' command was added to the CONFIG_NODE.

We have a basic assumption that CONFIG_NODE commands actually
change state.  'show commandtree' doesn't meet this requirement.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/command.c

index 4896c8a95821f941046a57a424d8ce22e4cd17b3..2e80eea9e3d81374523036d0e398260320e77bf5 100644 (file)
@@ -4159,7 +4159,6 @@ cmd_init (int terminal)
       install_element (RESTRICTED_NODE, &config_enable_cmd);
       install_element (RESTRICTED_NODE, &config_terminal_length_cmd);
       install_element (RESTRICTED_NODE, &config_terminal_no_length_cmd);
-      install_element (RESTRICTED_NODE, &show_commandtree_cmd);
       install_element (RESTRICTED_NODE, &echo_cmd);
     }
 
@@ -4237,7 +4236,6 @@ cmd_init (int terminal)
 
       vrf_install_commands ();
     }
-  install_element (CONFIG_NODE, &show_commandtree_cmd);
   srandom(time(NULL));
 }