]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
fa8e714a DL |
2 | /* |
3 | * Simple prefix list querying tool | |
4 | * | |
5 | * Copyright (C) 2021 by David Lamparter, | |
6 | * for Open Source Routing / NetDEF, Inc. | |
fa8e714a DL |
7 | */ |
8 | ||
9 | #include <zebra.h> | |
10 | ||
11 | #include "lib/plist.h" | |
12 | #include "lib/filter.h" | |
13 | #include "tests/lib/cli/common_cli.h" | |
14 | ||
15 | static const struct frr_yang_module_info *const my_yang_modules[] = { | |
16 | &frr_filter_info, | |
17 | NULL, | |
18 | }; | |
19 | ||
20 | __attribute__((_CONSTRUCTOR(2000))) | |
21 | static void test_yang_modules_set(void) | |
22 | { | |
23 | test_yang_modules = my_yang_modules; | |
24 | } | |
25 | ||
26 | void test_init(int argc, char **argv) | |
27 | { | |
28 | prefix_list_init(); | |
29 | filter_cli_init(); | |
30 | ||
31 | /* nothing else to do here, giving stand-alone access to the prefix | |
32 | * list code's "debug prefix-list ..." command is the only purpose of | |
33 | * this "test". | |
34 | */ | |
35 | } |