]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2005-03-09 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Wed, 9 Mar 2005 13:42:23 +0000 (13:42 +0000)
committerpaul <paul>
Wed, 9 Mar 2005 13:42:23 +0000 (13:42 +0000)
* command.c: (config_list_cmd) Don't list hidden or deprecated
  commands, hiding these from tab completion is still to be done.

lib/ChangeLog
lib/command.c

index d14c61d90871b22042dea5a6b089fb553e706dc2..b14f1837c33505af319bb361f8f5cc5ee878dbdc 100644 (file)
@@ -3,6 +3,8 @@
        * command.c: Undo commit of sign warning fix and hidden command
          in list_cmd. Sign warning is more subtle. list_cmd on its own
          will be committed after.
+       * command.c: (config_list_cmd) Don't list hidden or deprecated
+         commands, hiding these from tab completion is still to be done.
 
 2005-03-08 Paul Jakma <paul.jakma@sun.com>
 
index 627be328e4bbfb6ada574111924b1d396bb892f0..abd7106ed4a13d76d1aff3f57fabd756cad9d597 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   $Id: command.c,v 1.42 2005/03/09 13:39:26 paul Exp $
+   $Id: command.c,v 1.43 2005/03/09 13:42:23 paul Exp $
  
    Command interpreter routine for virtual terminal [aka TeletYpe]
    Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
@@ -2483,7 +2483,9 @@ DEFUN (config_list,
   struct cmd_element *cmd;
 
   for (i = 0; i < vector_max (cnode->cmd_vector); i++)
-    if ((cmd = vector_slot (cnode->cmd_vector, i)) != NULL)
+    if ((cmd = vector_slot (cnode->cmd_vector, i)) != NULL
+        && !(cmd->attr == CMD_ATTR_DEPRECATED
+             || cmd->attr == CMD_ATTR_HIDDEN))
       vty_out (vty, "  %s%s", cmd->string,
               VTY_NEWLINE);
   return CMD_SUCCESS;