neels has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/31615
)
Change subject: vty: add 'osmodyn' as alias for 'tch/f_tch/h_sdcch8_pdch'
......................................................................
vty: add 'osmodyn' as alias for 'tch/f_tch/h_sdcch8_pdch'
We already use "OSMO_DYN" as name for "fully dynamic" timeslot
config,
when working with osmo-bsc.cfg I dearly miss this short name, it is a
pain / has become ridiculous to write 'tch/f_tch/h_sdcch8_pdch'.
'osmodyn' is now the default name used on 'vty write', but the old
'tch/f_tch/h_sdcch8_pdch' is still supported: get_value_string() hits
'OSMODYN' first, but get_string_value() also reaches the old name.
Change-Id: I37719edd867c777d1ce944b8e2f1efffac38f00e
---
M src/osmo-bsc/gsm_data.c
1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/15/31615/1
diff --git a/src/osmo-bsc/gsm_data.c b/src/osmo-bsc/gsm_data.c
index a682a32..54f8b89 100644
--- a/src/osmo-bsc/gsm_data.c
+++ b/src/osmo-bsc/gsm_data.c
@@ -188,6 +188,8 @@
{ GSM_PCHAN_UNKNOWN, "UNKNOWN" },
{ GSM_PCHAN_CCCH_SDCCH4_CBCH, "CCCH+SDCCH4+CBCH" },
{ GSM_PCHAN_SDCCH8_SACCH8C_CBCH, "SDCCH8+CBCH" },
+ /* make get_string_value() return GSM_PCHAN_OSMO_DYN for both "OSMODYN" and
"TCH/F_TCH/H_SDCCH8_PDCH" */
+ { GSM_PCHAN_OSMO_DYN, "OSMODYN" },
{ GSM_PCHAN_OSMO_DYN, "TCH/F_TCH/H_SDCCH8_PDCH" },
{ 0, NULL }
};
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/31615
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I37719edd867c777d1ce944b8e2f1efffac38f00e
Gerrit-Change-Number: 31615
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: newchange