diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-16 08:11:37 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-23 21:52:44 +0100 |
commit | af2567b646a9bdf22c3f47caeedc8f2de1dac81c (patch) | |
tree | 776cfcdf2ed5be4069bec6bff51aa6f428c026d9 /lib/command.h | |
parent | grammar_sandbox: add .dot file writing capability (diff) | |
download | frr-af2567b646a9bdf22c3f47caeedc8f2de1dac81c.tar.xz frr-af2567b646a9bdf22c3f47caeedc8f2de1dac81c.zip |
grammar_sandbox: add into daemons if DEV_BUILD
Also adds "grammar access <node>" to test/dump an existing command node
(e.g. BGP_NODE).
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command.h')
-rw-r--r-- | lib/command.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index b71142fdc..3da77d3af 100644 --- a/lib/command.h +++ b/lib/command.h @@ -422,6 +422,9 @@ extern void cmd_terminate (void); extern void cmd_exit (struct vty *vty); extern int cmd_list_cmds (struct vty *vty, int do_permute); +/* NOT safe for general use; call this only if DEV_BUILD! */ +extern void grammar_sandbox_init (void); + /* memory management for cmd_token */ struct cmd_token * new_cmd_token (enum cmd_token_type, u_char attr, char *, char *); @@ -430,6 +433,7 @@ del_cmd_token (struct cmd_token *); struct cmd_token * copy_cmd_token (struct cmd_token *); +extern vector completions_to_vec (struct list *completions); extern void command_parse_format (struct graph *graph, struct cmd_element *cmd); /* Export typical functions. */ |