]> git.proxmox.com Git - mirror_frr.git/blob - tests/lib/test_plist.c
doc: Add `show ipv6 rpf X:X::X:X` command to docs
[mirror_frr.git] / tests / lib / test_plist.c
1 /*
2 * Simple prefix list querying tool
3 *
4 * Copyright (C) 2021 by David Lamparter,
5 * for Open Source Routing / NetDEF, Inc.
6 *
7 * Quagga is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * Quagga is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #include <zebra.h>
23
24 #include "lib/plist.h"
25 #include "lib/filter.h"
26 #include "tests/lib/cli/common_cli.h"
27
28 static const struct frr_yang_module_info *const my_yang_modules[] = {
29 &frr_filter_info,
30 NULL,
31 };
32
33 __attribute__((_CONSTRUCTOR(2000)))
34 static void test_yang_modules_set(void)
35 {
36 test_yang_modules = my_yang_modules;
37 }
38
39 void test_init(int argc, char **argv)
40 {
41 prefix_list_init();
42 filter_cli_init();
43
44 /* nothing else to do here, giving stand-alone access to the prefix
45 * list code's "debug prefix-list ..." command is the only purpose of
46 * this "test".
47 */
48 }