summaryrefslogtreecommitdiffstats
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-03-22 06:56:17 +0100
committerQuentin Young <qlyoung@users.noreply.github.com>2017-05-15 16:27:43 +0200
commitc09c46ae3c2702b3553e558f723e6de4fea3e05d (patch)
tree0f880205691729b8157a38c5df638df3eebe714e /lib/command_graph.h
parentlib: parser: split off & rename graph handling (diff)
downloadfrr-c09c46ae3c2702b3553e558f723e6de4fea3e05d.tar.xz
frr-c09c46ae3c2702b3553e558f723e6de4fea3e05d.zip
lib: parser: add pre-merge varname propagation step
Fills token->varname based on context. WORD tokens use the WORD - if it isn't actually "WORD". Other than that, a preceding constant token is used as name. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command_graph.h')
-rw-r--r--lib/command_graph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h
index e6d49f2f5..11cea9bd4 100644
--- a/lib/command_graph.h
+++ b/lib/command_graph.h
@@ -111,6 +111,7 @@ extern void cmd_token_del (struct cmd_token *);
extern void cmd_token_varname_set(struct cmd_token *token, const char *varname);
extern void cmd_graph_parse (struct graph *graph, struct cmd_element *cmd);
+extern void cmd_graph_names (struct graph *graph);
extern void cmd_graph_merge (struct graph *old, struct graph *new, int direction);
#endif /* _FRR_COMMAND_GRAPH_H */