summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-11-19 01:30:36 +0100
committerHarald Welte <laforge@osmocom.org>2019-11-19 01:30:36 +0100
commit7f94251fc82799d30c27b6bf71bfa420b61f9b46 (patch)
treec9e35c1adbb1a3499ab7c01d6f7c82ec40468231
parent737016a9542ae8086b4db745ece29bc2532a98e3 (diff)
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
-rw-r--r--src/osmo_ss7_vty.c2
1 files changed, 1 insertions, 1 deletions
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 @@ static void write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp)
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)