]> git.proxmox.com Git - mirror_frr.git/commit - pbrd/pbr_vty.c
lib, vtysh: fix inconsistent interface commands in vtysh
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 9 Jul 2018 00:39:37 +0000 (21:39 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 13 Aug 2018 21:59:31 +0000 (18:59 -0300)
commit91e5b43ab4d532cfbc38e71621c87fe98fb63130
tree9b753eacd928b18562bf7cea592b7bc9a8c5d851
parent34c462745724f4c7693a8dcc17fef70f8dac7dbb
lib, vtysh: fix inconsistent interface commands in vtysh

The definition of the interface commands in vtysh.c were outdated.
Currently, all daemons that call if_cmd_init() will have the "no interface
IFNAME" command and the "[no] description" commands as well, so there's
no need to define exceptions for these commands anymore.

To fix this, make extract.pl parse the if.c file so that vtysh can get the
interface commands from there automatically. Only the "interface IFNAME
[vrf NAME]" must be kept in vtysh.c because it changes the vty node and
thus needs special treatment.

Finally, make pimd and pbrd display interface descriptions on "sh run"
when they are configured.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/if.c
pbrd/pbr_vty.c
pimd/pim_vty.c
vtysh/Makefile.am
vtysh/extract.pl.in
vtysh/vtysh.c