From 8d0d863754578a5b5879d6267f07ddcec090ba00 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 13 May 2019 15:18:57 -0300 Subject: [PATCH] lib: fix crash in the CLI grammar sandbox The CLI grammer sandbox needs to initialize the northbound subsystem otherwise the running_config global variable won't be set, which leads to crashes. Fixes #4319. Signed-off-by: Renato Westphal --- lib/grammar_sandbox_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/grammar_sandbox_main.c b/lib/grammar_sandbox_main.c index c9c942f9bf..38494fb007 100644 --- a/lib/grammar_sandbox_main.c +++ b/lib/grammar_sandbox_main.c @@ -58,6 +58,8 @@ int main(int argc, char **argv) vty_init(master); memory_init(); + yang_init(); + nb_init(master, NULL, 0); vty_stdio(vty_do_exit); -- 2.39.5