]> git.puffer.fish Git - mirror/frr.git/commit
lib, vtysh: vrf walkup bugfix 1998/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 30 Mar 2018 02:13:57 +0000 (22:13 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 30 Mar 2018 17:14:34 +0000 (13:14 -0400)
commit16d6ea59d3d738cceeaabe6a2df5afad4b515b00
tree32c34cfff3df175a65686f8b69340d4a401c35ea
parent465cd0eb941d45dc125c5e843df965f8a387868e
lib, vtysh: vrf walkup bugfix

Static route commands are now installed inside the VRF nodes. This has
quietly broken top-level static routes in certain scenarios due to
walkup logic resolving a static route configuration command inside
VRF_NODE first if the command is issued while in a CLI node lower than
VRF_NODE. To fix this VRF_NODE needs a special exit command, as has been
done for many other nodes with the same issue, to explicitly change the
vrf context to the default VRF so that when walkup resolves against the
VRF node it will configure against the default VRF as desired.

Of course this is a hack on top of a hack and the CLI walkup
implementation needs to be rewritten.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/vrf.c
vtysh/vtysh.c