From af2567b646a9bdf22c3f47caeedc8f2de1dac81c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 16 Dec 2016 08:11:37 +0100 Subject: grammar_sandbox: add into daemons if DEV_BUILD Also adds "grammar access " to test/dump an existing command node (e.g. BGP_NODE). Signed-off-by: David Lamparter --- lib/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index cb1f54fbbd..6fad28ce6c 100644 --- a/lib/command.c +++ b/lib/command.c @@ -523,7 +523,7 @@ compare_completions (const void *fst, const void *snd) * @param completions linked list of cmd_token * @return deduplicated and sorted vector with */ -static vector +vector completions_to_vec (struct list *completions) { vector comps = vector_init (VECTOR_MIN_SIZE); @@ -2398,6 +2398,10 @@ cmd_init (int terminal) vrf_install_commands (); } srandom(time(NULL)); + +#ifdef DEV_BUILD + grammar_sandbox_init(); +#endif } struct cmd_token * -- cgit v1.2.3