summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-07-25 14:20:55 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-07-26 22:58:52 -0400
commitcf6c83e712733f41a870a9c077803bc2e29ac69e (patch)
treee41c52bdb12126d69c99c4f808b2b85b55406caf /lib/command.h
parenta83a533139f64434b68ebc3ae9a65a013b04cc34 (diff)
lib, vtysh: add `find COMMAND`
Substring search through all defined commands in all nodes. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command.h b/lib/command.h
index 28aa1ac5dd..533b4b3289 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -68,7 +68,7 @@ struct host {
char *motdfile;
};
-/* List of CLI nodes. Please remember to update the names array below. */
+/* List of CLI nodes. Please remember to update the name array in command.c. */
enum node_type {
AUTH_NODE, /* Authentication mode of vty interface. */
VIEW_NODE, /* View node. Default mode of vty interface. */
@@ -138,6 +138,7 @@ enum node_type {
NODE_TYPE_MAX, /* maximum */
};
+extern vector cmdvec;
extern const char *node_names[];
/* Node which has some commands and prompt string and configuration