diff options
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-25 00:01:37 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-25 00:46:12 +0100
commitda58d26cbcfb1b523830b359a17beb8660311bd7 (patch)
parente045da02613850aa1beff73516644834fcbc26f8 (diff)
osmo-hnbgw config: add 'rnc-id' config item
So far, the RNC-Id is hard-coded as 23. Still use 23 as default, but allow configuring by config file. Hence make it possible to run multiple osmo-hnbgw with differing RNC-Id each. Change-Id: I374f558cc4bb36055f39efe9c58ae1b9bd49da46
1 files changed, 13 insertions, 0 deletions
diff --git a/src/hnbgw_vty.c b/src/hnbgw_vty.c
index 4e512e4..d41e3c0 100644
--- a/src/hnbgw_vty.c
+++ b/src/hnbgw_vty.c
@@ -239,6 +239,17 @@ DEFUN(show_talloc, show_talloc_cmd, "show talloc", SHOW_STR "Display talloc info
+DEFUN(cfg_hnbgw_rnc_id, cfg_hnbgw_rnc_id_cmd,
+ "rnc-id <0-65535>",
+ "Configure the HNBGW's RNC Id, the common RNC Id used for all connected hNodeB. It is sent to"
+ " each hNodeB upon HNBAP HNB-Register-Accept, and the hNodeB will subsequently send this as"
+ " RANAP InitialUE Messages' GlobalRNC-ID IE. Takes effect as soon as the hNodeB re-registers.\n"
+ "RNC Id value\n")
+ g_hnb_gw->config.rnc_id = atoi(argv[0]);
+ return CMD_SUCCESS;
DEFUN(cfg_hnbgw_iuh_local_ip, cfg_hnbgw_iuh_local_ip_cmd, "local-ip A.B.C.D",
"Accept Iuh connections on local interface\n"
"Local interface IP address (default: " HNBGW_LOCAL_IP_DEFAULT ")")
@@ -345,6 +356,8 @@ void hnbgw_vty_init(struct hnb_gw *gw, void *tall_ctx)
install_element(CONFIG_NODE, &cfg_hnbgw_cmd);
install_node(&hnbgw_node, config_write_hnbgw);
+ install_element(HNBGW_NODE, &cfg_hnbgw_rnc_id_cmd);
install_element(HNBGW_NODE, &cfg_hnbgw_iuh_cmd);
install_node(&iuh_node, config_write_hnbgw_iuh);