diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-26 12:20:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-26 12:20:54 +0300 |
| commit | 66aa87d03e547272c219f1323e880ede401f47d3 (patch) | |
| tree | c561686ed71e1e42e50684beb12958d7ca9668ad /tests/lib/cli/common_cli.c | |
| parent | c48ebbdb2021fb01a1a8a7ad8ef9ef99e418c6a3 (diff) | |
| parent | a2810d30256e8de250b9e0fdc274fc4852c7877c (diff) | |
Merge pull request #8637 from opensourcerouting/pim-vrf-acl-fixes
Pim vrf acl fixes
Diffstat (limited to 'tests/lib/cli/common_cli.c')
| -rw-r--r-- | tests/lib/cli/common_cli.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index 49bc0f4fb2..8be81cc4cb 100644 --- a/tests/lib/cli/common_cli.c +++ b/tests/lib/cli/common_cli.c @@ -59,10 +59,13 @@ static void vty_do_exit(int isexit) exit(0); } +const struct frr_yang_module_info *const *test_yang_modules = NULL; + /* main routine. */ int main(int argc, char **argv) { struct thread thread; + size_t yangcount; /* Set umask before anything for security */ umask(0027); @@ -79,7 +82,11 @@ int main(int argc, char **argv) vty_init(master, false); lib_cmd_init(); - nb_init(master, NULL, 0, false); + + for (yangcount = 0; test_yang_modules && test_yang_modules[yangcount]; + yangcount++) + ; + nb_init(master, test_yang_modules, yangcount, false); test_init(argc, argv); |
