aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-22 16:26:04 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-24 21:40:48 +0100
commitae9006aeed4a577d3a0a548b403ec2406ede03ee (patch)
treeed2e525a641d69d98b707512990a151a54348708 /openbsc
parentf694d5f47ae4d0fb2ea9ff7d5c3ed2d856fa75ef (diff)
subscr: Introduce VTY option to keep subscribers in ram.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_vty.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsc/src/bsc_vty.c b/openbsc/src/bsc_vty.c
index 82737e3c7..71fd9b5be 100644
--- a/openbsc/src/bsc_vty.c
+++ b/openbsc/src/bsc_vty.c
@@ -550,6 +550,8 @@ static int config_write_net(struct vty *vty)
vty_out(vty, " timer t3122 %u%s", gsmnet->T3122, VTY_NEWLINE);
vty_out(vty, " timer t3141 %u%s", gsmnet->T3141, VTY_NEWLINE);
vty_out(vty, " dtx-used %u%s", gsmnet->dtx_enabled, VTY_NEWLINE);
+ vty_out(vty, " subscriber-keep-in-ram %d%s",
+ gsmnet->keep_subscr, VTY_NEWLINE);
return CMD_SUCCESS;
}
@@ -1360,6 +1362,17 @@ DEFUN(cfg_net_dtx,
return CMD_SUCCESS;
}
+DEFUN(cfg_net_subscr_keep,
+ cfg_net_subscr_keep_cmd,
+ "subscriber-keep-in-ram (0|1)",
+ "Keep unused subscribers in RAM.\n"
+ "Delete unused subscribers\n" "Keep unused subscribers\n")
+{
+ struct gsm_network *gsmnet = gsmnet_from_vty(vty);
+ gsmnet->keep_subscr = atoi(argv[0]);
+ return CMD_SUCCESS;
+}
+
/* per-BTS configuration */
DEFUN(cfg_bts,
cfg_bts_cmd,
@@ -2552,6 +2565,7 @@ int bsc_vty_init(void)
install_element(GSMNET_NODE, &cfg_net_T3122_cmd);
install_element(GSMNET_NODE, &cfg_net_T3141_cmd);
install_element(GSMNET_NODE, &cfg_net_dtx_cmd);
+ install_element(GSMNET_NODE, &cfg_net_subscr_keep_cmd);
install_element(GSMNET_NODE, &cfg_net_pag_any_tch_cmd);
install_element(GSMNET_NODE, &cfg_bts_cmd);