mirror_frr/vtysh
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 build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
daemons.pl vtysh: dynamically generate the list of daemons for commands 2020-10-02 15:06:27 +03:00
Makefile build: non-recursive vtysh 2018-09-08 21:26:54 +02:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
vtysh_config.c vtysh: Show allow-reserved-ranges once in config 2022-09-27 21:41:24 +03:00
vtysh_main.c vtysh: Handle SIGTSTP (C-z) without exiting the vty shell 2022-08-10 16:18:49 +03:00
vtysh_user.c vtysh: Account validity should be verified when authenticating users with PAM. 2022-06-23 11:15:47 -07:00
vtysh_user.h *: reindent 2017-07-17 14:04:07 +02:00
vtysh.c vtysh: fix bugged command definitions 2022-10-06 15:40:06 +02:00
vtysh.h bgpd: add 'mpls bgp forwarding' to ease mpls vpn ebgp peering 2022-09-05 22:26:33 +02:00