neels has uploaded this change for review.

View Change

fix missing write-back of rnc-id

Change-Id: Ide006379b26949e34371bd316a22c130ea09da82
---
M src/osmo-hnbgw/hnbgw_vty.c
M tests/osmo-hnbgw.vty
2 files changed, 20 insertions(+), 3 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/16/32716/1
diff --git a/src/osmo-hnbgw/hnbgw_vty.c b/src/osmo-hnbgw/hnbgw_vty.c
index 93eca41..90f7fbc 100644
--- a/src/osmo-hnbgw/hnbgw_vty.c
+++ b/src/osmo-hnbgw/hnbgw_vty.c
@@ -419,6 +419,9 @@
vty_out(vty, " log-prefix %s%s", g_hnbgw->config.log_prefix_hnb_id ? "hnb-id" : "umts-cell-id",
VTY_NEWLINE);
osmo_tdef_vty_groups_write(vty, " ");
+
+ vty_out(vty, " rnc-id %u%s", g_hnbgw->config.rnc_id, VTY_NEWLINE);
+
return CMD_SUCCESS;
}

diff --git a/tests/osmo-hnbgw.vty b/tests/osmo-hnbgw.vty
index 5ffbf15..dc213cc 100644
--- a/tests/osmo-hnbgw.vty
+++ b/tests/osmo-hnbgw.vty
@@ -27,11 +27,16 @@
<0-65535> RNC Id value

OsmoHNBGW(config-hnbgw)# show running-config
-... !rnc-id
+...
+hnbgw
+...
+ rnc-id 23
+...

OsmoHNBGW(config-hnbgw)# rnc-id 42
-OsmoHNBGW(config-hnbgw)# ### ERROR! We don't write back the rnc-id
OsmoHNBGW(config-hnbgw)# show running-config
...
hnbgw
-... !rnc-id
+...
+ rnc-id 42
+...

To view, visit change 32716. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Ide006379b26949e34371bd316a22c130ea09da82
Gerrit-Change-Number: 32716
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr@sysmocom.de>
Gerrit-MessageType: newchange