summaryrefslogtreecommitdiffstats
path: root/lib/command.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-20 20:34:46 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-22 23:14:55 +0200
commit26fbe47294b56bf58a7452e55d24c4204042959d (patch)
treeb4d6fdcd68b8cf5a70be9071c106c6521013184d /lib/command.h
parentlib: add DFS + DOT dumping to graph datastructure (diff)
downloadfrr-26fbe47294b56bf58a7452e55d24c4204042959d.tar.xz
frr-26fbe47294b56bf58a7452e55d24c4204042959d.zip
lib: add ability to dump cli mode graph
The grammar sandbox has had the ability to dump individual commands as DOT graphs, but now that generalized DOT support is present it's trivial to extend this to entire submodes. This is quite useful for visualizing the CLI space when debugging CLI errors. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index bb7781235..f18de3417 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -146,6 +146,7 @@ enum node_type {
};
extern vector cmdvec;
+extern const struct message tokennames[];
extern const char *node_names[];
/* Node which has some commands and prompt string and configuration