summaryrefslogtreecommitdiffstats
path: root/lib/vrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index f8702973b..6bd577fce 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -726,7 +726,7 @@ DEFUN_NOSH(vrf_exit,
{
/* We have to set vrf context to default vrf */
VTY_PUSH_CONTEXT(VRF_NODE, vrf_get(VRF_DEFAULT, VRF_DEFAULT_NAME));
- vty->node = CONFIG_NODE;
+ cmd_exit(vty);
return CMD_SUCCESS;
}