From 7f94251fc82799d30c27b6bf71bfa420b61f9b46 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 19 Nov 2019 01:30:36 +0100 Subject: 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 --- src/osmo_ss7_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3