diff options
author | Harald Welte <laforge@netfilter.org> | 2009-08-07 13:29:14 +0200 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-08-07 13:29:14 +0200 |
commit | 5013b2ad42c1a63e2f168d3d8a6021e4763446f0 (patch) | |
tree | 1c27e108dad6509f5dc2e4ec076104d3d5768a60 /openbsc/src/vty | |
parent | c7c19822fd43a01c54a445addb1e8a82067d82a4 (diff) |
introduce new GSMNET node for the GSM network
Diffstat (limited to 'openbsc/src/vty')
-rw-r--r-- | openbsc/src/vty/command.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openbsc/src/vty/command.c b/openbsc/src/vty/command.c index 4c9d2db8e..16e0dfb36 100644 --- a/openbsc/src/vty/command.c +++ b/openbsc/src/vty/command.c @@ -2288,10 +2288,18 @@ DEFUN(config_exit, config_exit_cmd, "exit", "Exit current mode and down to previous mode\n") { switch (vty->node) { - case BTS_NODE: - vty->node = VIEW_NODE; + case GSMNET_NODE: + vty->node = CONFIG_NODE; vty->index = NULL; break; + case BTS_NODE: + vty->node = GSMNET_NODE; + { + /* set vty->index correctly ! */ + struct gsm_bts *bts = vty->index; + vty->index = bts->network; + } + break; case TRX_NODE: vty->node = BTS_NODE; { |