summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-14 18:59:17 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-14 18:59:17 +0200
commit804fc81d2bc563d744dc2e7ff8aef54d6f03b974 (patch)
tree11854944c12d425983b6ddfe1cf66f42ee25593a /openbsc
parent731d1fc956f6fc5cd0c08e4536c00598e391bc75 (diff)
[VTY] Remove OpenBSC specific node-exit handling from src/vty
The idea is to move the VTY code into libosmocore at some point, and for that we need to eliminate OpenBSC specifics from it
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/gprs_ns_vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_ns_vty.c b/openbsc/src/gprs/gprs_ns_vty.c
index 8f0628af..b18e6517 100644
--- a/openbsc/src/gprs/gprs_ns_vty.c
+++ b/openbsc/src/gprs/gprs_ns_vty.c
@@ -37,6 +37,7 @@
#include <openbsc/signal.h>
#include <openbsc/gprs_ns.h>
#include <openbsc/gprs_bssgp.h>
+#include <openbsc/vty.h>
#include <vty/vty.h>
#include <vty/command.h>
@@ -281,6 +282,7 @@ int gprs_ns_vty_init(struct gprs_ns_inst *nsi)
install_element(CONFIG_NODE, &cfg_ns_cmd);
install_node(&ns_node, config_write_ns);
install_default(NS_NODE);
+ install_element(NS_NODE, &ournode_exit_cmd);
install_element(NS_NODE, &cfg_nse_nsvci_cmd);
install_element(NS_NODE, &cfg_nse_remoteip_cmd);
install_element(NS_NODE, &cfg_nse_remoteport_cmd);