diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-05-23 20:42:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-05-23 20:42:26 +0200 |
commit | cdc59ff5ccd55459068391da5e7b533fa9324842 (patch) | |
tree | 049e55218660ab75a6e232476cbc58b950a8b715 /openbsc/src/libbsc/abis_nm_vty.c | |
parent | 867d9f39852f33afdfa6ca7def56c856239e31cb (diff) |
abis_nm: Some more fall-out from the abis_nm move to libosmocore
we want get_string_value(), not the equivalent of get_value_string()
Diffstat (limited to 'openbsc/src/libbsc/abis_nm_vty.c')
-rw-r--r-- | openbsc/src/libbsc/abis_nm_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/abis_nm_vty.c b/openbsc/src/libbsc/abis_nm_vty.c index d043c352a..3a16b2b7f 100644 --- a/openbsc/src/libbsc/abis_nm_vty.c +++ b/openbsc/src/libbsc/abis_nm_vty.c @@ -86,7 +86,7 @@ DEFUN(oml_class_inst, oml_class_inst_cmd, return CMD_WARNING; oms->bts = bts; - oms->obj_class = abis_nm_obj_class_name(argv[1]); + oms->obj_class = get_string_value(abis_nm_obj_class_names, argv[1]); oms->obj_inst[0] = atoi(argv[2]); oms->obj_inst[1] = atoi(argv[3]); oms->obj_inst[2] = atoi(argv[4]); @@ -161,7 +161,7 @@ DEFUN(oml_chg_adm_state, oml_chg_adm_state_cmd, struct oml_node_state *oms = vty->index; enum abis_nm_adm_state state; - state = abis_nm_adm_state_name(argv[0]); + state = get_string_value(abis_nm_adm_state_names, argv[0]); abis_nm_chg_adm_state(oms->bts, oms->obj_class, oms->obj_inst[0], oms->obj_inst[1], oms->obj_inst[2], state); |