[MERGED] osmo-iuh[master]: hnbgw: vty conformance: rename iuh 'bind' command to 'local-ip'

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Sep 27 05:55:56 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: hnbgw: vty conformance: rename iuh 'bind' command to 'local-ip'
......................................................................


hnbgw: vty conformance: rename iuh 'bind' command to 'local-ip'

The standard osmo VTY terminology is 'remote-ip', 'remote-port', 'local-ip',
'local-port'. Conform to that. osmo-hnbgw is so far not rolled out widely, so
it makes sense to do this now.

Change-Id: Ifda2653bf58044552a5f1477cd7008dec3fb9100
---
M include/osmocom/iuh/hnbgw.h
M src/hnbgw.c
M src/hnbgw_vty.c
3 files changed, 7 insertions(+), 7 deletions(-)

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



diff --git a/include/osmocom/iuh/hnbgw.h b/include/osmocom/iuh/hnbgw.h
index dfe287c..dfc9d82 100644
--- a/include/osmocom/iuh/hnbgw.h
+++ b/include/osmocom/iuh/hnbgw.h
@@ -106,7 +106,7 @@
 	struct hnb_context *hnb;
 };
 
-#define HNBGW_IUH_BIND_ADDR_DEFAULT "0.0.0.0"
+#define HNBGW_IUH_LOCAL_IP_DEFAULT "0.0.0.0"
 
 struct hnb_gw {
 	struct {
diff --git a/src/hnbgw.c b/src/hnbgw.c
index bd0b3ba..500cf0f 100644
--- a/src/hnbgw.c
+++ b/src/hnbgw.c
@@ -312,7 +312,7 @@
 {
 	const char *addr = gw->config.iuh_bind_addr;
 	if (!addr)
-		addr = HNBGW_IUH_BIND_ADDR_DEFAULT;
+		addr = HNBGW_IUH_LOCAL_IP_DEFAULT;
 	return addr;
 }
 
diff --git a/src/hnbgw_vty.c b/src/hnbgw_vty.c
index d6fad64..5dee41a 100644
--- a/src/hnbgw_vty.c
+++ b/src/hnbgw_vty.c
@@ -105,9 +105,9 @@
 	return CMD_SUCCESS;
 }
 
-DEFUN(cfg_hnbgw_iuh_bind, cfg_hnbgw_iuh_bind_cmd, "bind A.B.C.D",
+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_IUH_BIND_ADDR_DEFAULT ")")
+      "Local interface IP address (default: " HNBGW_IUH_LOCAL_IP_DEFAULT ")")
 {
 	talloc_free((void*)g_hnb_gw->config.iuh_bind_addr);
 	g_hnb_gw->config.iuh_bind_addr = talloc_strdup(tall_hnb_ctx, argv[0]);
@@ -137,8 +137,8 @@
 	vty_out(vty, " iuh%s", VTY_NEWLINE);
 
 	addr = g_hnb_gw->config.iuh_bind_addr;
-	if (addr && (strcmp(addr, HNBGW_IUH_BIND_ADDR_DEFAULT) != 0))
-		vty_out(vty, "  bind %s%s", addr, VTY_NEWLINE);
+	if (addr && (strcmp(addr, HNBGW_IUH_LOCAL_IP_DEFAULT) != 0))
+		vty_out(vty, "  local-ip %s%s", addr, VTY_NEWLINE);
 
 	if (g_hnb_gw->config.hnbap_allow_tmsi)
 		vty_out(vty, "  hnbap-allow-tmsi 1%s", VTY_NEWLINE);
@@ -159,7 +159,7 @@
 	install_node(&iuh_node, config_write_hnbgw_iuh);
 	vty_install_default(IUH_NODE);
 
-	install_element(IUH_NODE, &cfg_hnbgw_iuh_bind_cmd);
+	install_element(IUH_NODE, &cfg_hnbgw_iuh_local_ip_cmd);
 	install_element(IUH_NODE, &cfg_hnbgw_iuh_hnbap_allow_tmsi_cmd);
 
 	install_element_ve(&show_hnb_cmd);

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifda2653bf58044552a5f1477cd7008dec3fb9100
Gerrit-PatchSet: 3
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



More information about the gerrit-log mailing list