summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-07-31 19:58:20 +0200
committerGitHub <noreply@github.com>2017-07-31 19:58:20 +0200
commit812ff999ca00bc7d58b16af37965d8c4375bd6aa (patch)
tree9a7a63b1233de067419f7f16c0405a70275703a5 /lib/command.h
parent62b9d81407ded6c5b7aa5cb29f9d868bdf465630 (diff)
parent9d356c939f26f864a77f9bce007efd2b567a7466 (diff)
Merge pull request #865 from qlyoung/find
Find
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/command.h b/lib/command.h
index 5d52fe3fc3..533b4b3289 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -68,7 +68,7 @@ struct host {
char *motdfile;
};
-/* There are some command levels which called from command node. */
+/* 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. */
@@ -135,8 +135,12 @@ enum node_type {
VTY_NODE, /* Vty node. */
LINK_PARAMS_NODE, /* Link-parameters node */
BGP_EVPN_VNI_NODE, /* BGP EVPN VNI */
+ NODE_TYPE_MAX, /* maximum */
};
+extern vector cmdvec;
+extern const char *node_names[];
+
/* Node which has some commands and prompt string and configuration
function pointer . */
struct cmd_node {