nat: Fix navigation inside the config structure (fix exit)

Make sure exit in nat and nat/bsc is working and we go one
level up.
This commit is contained in:
Holger Hans Peter Freyther
2010-04-05 22:40:49 +02:00
parent 4072ceed32
commit fa22aa6bbd

View File

@@ -2370,6 +2370,15 @@ DEFUN(config_exit,
case VTY_NODE:
vty->node = CONFIG_NODE;
break;
case NAT_NODE:
vty->node = CONFIG_NODE;
vty->index = NULL;
break;
case BSC_NODE:
vty->node = NAT_NODE;
vty->index = NULL;
break;
default:
break;
}