Change in osmo-hlr[master]: Correct configuration written from vty

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

keith gerrit-no-reply at lists.osmocom.org
Fri Feb 26 00:05:51 UTC 2021


keith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hlr/+/23111 )


Change subject: Correct configuration written from vty
......................................................................

Correct configuration written from vty

osmo-hlr would not read back written configuration due to bad indentation
in the mslookup->server->service section.

Also ipa-name was missing.

Change-Id: Ied4b9504f06a51c3895054a8b9d07a67eda3aeeb
---
M src/dgsm_vty.c
M src/hlr_vty.c
2 files changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/11/23111/1

diff --git a/src/dgsm_vty.c b/src/dgsm_vty.c
index 6f29d3b..00a60ea 100644
--- a/src/dgsm_vty.c
+++ b/src/dgsm_vty.c
@@ -442,7 +442,7 @@
 
 		msc = mslookup_server_msc_get(&mslookup_server_msc_wildcard, false);
 		if (msc)
-			config_write_msc_services(vty, " ", msc);
+			config_write_msc_services(vty, "  ", msc);
 
 		llist_for_each_entry(msc, &g_hlr->mslookup.server.local_site_services, entry) {
 			if (!osmo_ipa_name_cmp(&mslookup_server_msc_wildcard, &msc->name))
diff --git a/src/hlr_vty.c b/src/hlr_vty.c
index 4b91aa9..df2270b 100644
--- a/src/hlr_vty.c
+++ b/src/hlr_vty.c
@@ -102,6 +102,8 @@
 	vty_out(vty, " gsup%s", VTY_NEWLINE);
 	if (g_hlr->gsup_bind_addr)
 		vty_out(vty, "  bind ip %s%s", g_hlr->gsup_bind_addr, VTY_NEWLINE);
+	if (g_hlr->gsup_unit_name.serno)
+		vty_out(vty, "  ipa-name %s%s", g_hlr->gsup_unit_name.serno, VTY_NEWLINE);
 	return CMD_SUCCESS;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/23111
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: Ied4b9504f06a51c3895054a8b9d07a67eda3aeeb
Gerrit-Change-Number: 23111
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210226/df6acb9e/attachment.htm>


More information about the gerrit-log mailing list