[MERGED] osmo-iuh[master]: osmo-hnbgw config: add 'rnc-id' config item

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Dec 25 13:45:01 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: osmo-hnbgw config: add 'rnc-id' config item
......................................................................


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
---
M src/hnbgw_vty.c
1 file changed, 13 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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 @@
 	return CMD_SUCCESS;
 }
 
+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 @@
 	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);
 

-- 
To view, visit https://gerrit.osmocom.org/5578
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I374f558cc4bb36055f39efe9c58ae1b9bd49da46
Gerrit-PatchSet: 1
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list