aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 22:40:49 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 22:40:49 +0200
commitfa22aa6bbdb7b44a33dea985b8dfc6eb5c57033b (patch)
tree6a370c33ef2af3ed197f40d57d3cb978ec66a532 /openbsc
parent4072ceed32e004c5d866f3127207a1e3e50b8ae5 (diff)
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.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/vty/command.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/src/vty/command.c b/openbsc/src/vty/command.c
index 30c26ac9b..8c6ad2e48 100644
--- a/openbsc/src/vty/command.c
+++ b/openbsc/src/vty/command.c
@@ -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;
}