diff options
author | paul <paul> | 2005-03-09 13:42:23 +0000 |
---|---|---|
committer | paul <paul> | 2005-03-09 13:42:23 +0000 |
commit | acc6a1d7b8396a02c1cc6a1b52b48b845e097f8b (patch) | |
tree | dec3466e8d55c4e1ddc5168f3a17331a60c25009 /lib | |
parent | a3813181585f7facbae3e585beaea517fa2d73cf (diff) | |
download | quagga-acc6a1d7b8396a02c1cc6a1b52b48b845e097f8b.tar.bz2 quagga-acc6a1d7b8396a02c1cc6a1b52b48b845e097f8b.tar.xz |
2005-03-09 Paul Jakma <paul.jakma@sun.com>
* command.c: (config_list_cmd) Don't list hidden or deprecated
commands, hiding these from tab completion is still to be done.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 2 | ||||
-rw-r--r-- | lib/command.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index d14c61d9..b14f1837 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -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> diff --git a/lib/command.c b/lib/command.c index 42a8bf77..634eb066 100644 --- a/lib/command.c +++ b/lib/command.c @@ -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; |