]> git.proxmox.com Git - mirror_frr.git/commit
lib, vtysh: fix inconsistent VRF commands in vtysh
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 9 Jul 2018 00:16:47 +0000 (21:16 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 13 Aug 2018 21:59:31 +0000 (18:59 -0300)
commit34c462745724f4c7693a8dcc17fef70f8dac7dbb
treeb3e4f42166d66b92922fe172b34ebfd9789ef292
parent1e9d11834535c506af8ba426f5c9c580e071313a
lib, vtysh: fix inconsistent VRF commands in vtysh

* Only zebra and pimd call vrf_cmd_init(), so these are the only daemons
  that should receive VRF commands from vtysh;
* "netns NAME" and "no netns NAME" are available only in zebra, write
  custom DEFSHs in vtysh to make it aware of that;
* Remove the "no vrf NAME" definition from vtysh.c and expose the
  original command to vtysh by converting the DEFUN_NOSH to a simple
  DEFUN. This command doesn't change the vty node so there's no need to
  special case it.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/vrf.c
vtysh/extract.pl.in
vtysh/vtysh.c