From fa22aa6bbdb7b44a33dea985b8dfc6eb5c57033b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 5 Apr 2010 22:40:49 +0200 Subject: 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. --- openbsc/src/vty/command.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openbsc') 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; } -- cgit v1.2.3