Change in libosmo-sccp[master]: fix generating asp-role that can be parsed when re-opening config file

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

laforge gerrit-no-reply at lists.osmocom.org
Tue Nov 19 00:33:01 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/16101 )


Change subject: fix generating asp-role that can be parsed when re-opening config file
......................................................................

fix generating asp-role that can be parsed when re-opening config file

The ASP role must be saved in lowercas as the parser during config file
reading only understands it in lowercase.

Change-Id: I38b8e4d73121f8bf001037fdd2dd164113544d94
Closes: OS#4270
---
M src/osmo_ss7_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/01/16101/1

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 08d8c43..ebae5a5 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -753,7 +753,7 @@
 	if (asp->cfg.qos_class)
 		vty_out(vty, "  qos-class %u%s", asp->cfg.qos_class, VTY_NEWLINE);
 	if (asp->cfg.role_set_by_vty) {
-		vty_out(vty, "  role %s%s", get_value_string(osmo_ss7_asp_role_names, asp->cfg.role),
+		vty_out(vty, "  role %s%s", osmo_str_tolower(get_value_string(osmo_ss7_asp_role_names, asp->cfg.role)),
 			VTY_NEWLINE);
 	}
 	if (!asp->cfg.is_server)

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/16101
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I38b8e4d73121f8bf001037fdd2dd164113544d94
Gerrit-Change-Number: 16101
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191119/63149e61/attachment.htm>


More information about the gerrit-log mailing list