Merge pull request #6318 from opensourcerouting/fix-exit-vrf

lib: update the CLI xpath index when exiting from the VRF node
This commit is contained in:
Donald Sharp 2020-04-30 07:30:01 -04:00 committed by GitHub
commit ba3f5f06d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,7 +726,7 @@ DEFUN_NOSH(vrf_exit,
{ {
/* We have to set vrf context to default vrf */ /* We have to set vrf context to default vrf */
VTY_PUSH_CONTEXT(VRF_NODE, vrf_get(VRF_DEFAULT, VRF_DEFAULT_NAME)); VTY_PUSH_CONTEXT(VRF_NODE, vrf_get(VRF_DEFAULT, VRF_DEFAULT_NAME));
vty->node = CONFIG_NODE; cmd_exit(vty);
return CMD_SUCCESS; return CMD_SUCCESS;
} }