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/command.c | |
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/command.c')
-rw-r--r-- | lib/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |