[mgcp] Fix navigation in the vty hierachy (make exit work)

Make exit from the MGCP node work properly.
This commit is contained in:
Holger Hans Peter Freyther
2010-04-05 22:42:18 +02:00
parent fa22aa6bbd
commit 516c4f073a

View File

@@ -2370,6 +2370,9 @@ DEFUN(config_exit,
case VTY_NODE: case VTY_NODE:
vty->node = CONFIG_NODE; vty->node = CONFIG_NODE;
break; break;
case MGCP_NODE:
vty->node = CONFIG_NODE;
vty->index = NULL;
case NAT_NODE: case NAT_NODE:
vty->node = CONFIG_NODE; vty->node = CONFIG_NODE;
vty->index = NULL; vty->index = NULL;