mirror_frr/pbrd
David Lamparter 89cb86aeb0 build, vtysh: extract vtysh commands from .xref
Rather than running selected source files through the preprocessor and a
bunch of perl regex'ing to get the list of all DEFUNs, use the data
collected in frr.xref.

This not only eliminates issues we've been having with preprocessor
failures due to nonexistent header files, but is also much faster.
Where extract.pl would take 5s, this now finishes in 0.2s.  And since
this is a non-parallelizable build step towards the end of the build
(dependent on a lot of other things being done already), the speedup is
actually noticeable.

Also files containing CLI no longer need to be listed in `vtysh_scan`
since the .xref data covers everything.  `#ifndef VTYSH_EXTRACT_PL`
checks are equally obsolete.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-26 17:12:34 +01:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
Makefile pbrd: Add PBR to FRR 2018-04-06 13:22:43 -04:00
pbr_debug.c build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
pbr_debug.h pbrd: move debug vty into pbr_vty.c 2018-04-17 18:43:47 -04:00
pbr_main.c *: Convert quagga_signal_X to frr_signal_X 2021-11-11 14:41:27 -05:00
pbr_map.c pbrd: fix interface compare usage 2022-05-02 11:33:48 -03:00
pbr_map.h pbrd: add vlan actions to vty 2021-10-07 09:14:59 -04:00
pbr_memory.c *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
pbr_memory.h *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
pbr_nht.c *: remove the checking returned value for hash_get() 2022-05-03 00:41:48 +08:00
pbr_nht.h pbrd: pbr route maps get addr family of nhgs 2022-01-27 12:47:00 -05:00
pbr_vrf.c *: rework renaming the default VRF 2021-12-21 22:09:29 +03:00
pbr_vrf.h *: cleanup ifp->vrf_id 2021-11-22 20:47:23 +03:00
pbr_vty.c build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
pbr_vty.h pbrd, lib: move PBR_STR def. to lib 2018-06-13 16:22:01 +00:00
pbr_zebra.c *: Fix spelling of Inteface 2022-04-02 07:46:19 -04:00
pbr_zebra.h pbrd: Fix memory leak 2020-10-23 11:28:12 -04:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00