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 <renato@opensourcerouting.org>
This commit is contained in:
Renato Westphal 2019-05-13 15:18:57 -03:00
parent 4ac9d2cbe4
commit 8d0d863754

View File

@ -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);