vty: Make use of new mgcp_client_pool_config_write() API
Let's use the new API available in libosmo-mgcp-client to control more consciously where the mgw pool config is printed. Before this patch, the place where the node was printed was defined based on implementation details on how the enum of nodes are defined and installed. Change-Id: Ib2f04d96ca846d2d61af0b0c0ea1924609004952 Related: SYS#5987 Depends: osmo-mgw.git Change-Id I7a620cf47886d8ecab30ce369cf123d98ab842c5
This commit is contained in:
parent
1076ec91f9
commit
9e136f52c1
|
@ -9,4 +9,4 @@
|
|||
#library what description / commit summary line
|
||||
libosmogsm >1.7.0 BTS_FEAT_OSMUX, RSL_IE_OSMO_OSMUX_CID
|
||||
libosmocore >1.7.0 vty hexadecimal range support (location_area_code)
|
||||
libosmomgcp-client >1.10.0 mgcp_client_pool_member_...()
|
||||
libosmomgcp-client >1.10.0 mgcp_client_pool_member_...(), mgcp_client_pool_config_write()
|
|
@ -406,6 +406,7 @@ static int config_write_net(struct vty *vty)
|
|||
}
|
||||
|
||||
neighbor_ident_vty_write_network(vty, " ");
|
||||
mgcp_client_pool_config_write(vty, " ");
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
@ -3455,7 +3456,7 @@ int bsc_vty_init(struct gsm_network *network)
|
|||
install_element(GSMNET_NODE, &cfg_net_nri_null_del_cmd);
|
||||
|
||||
bts_vty_init();
|
||||
mgcp_client_pool_vty_init(GSMNET_NODE, MGW_NODE, " ", vty_global_gsm_network->mgw.mgw_pool);
|
||||
mgcp_client_pool_vty_init(GSMNET_NODE, MGW_NODE, NULL, vty_global_gsm_network->mgw.mgw_pool);
|
||||
|
||||
install_element(ENABLE_NODE, &drop_bts_cmd);
|
||||
install_element(ENABLE_NODE, &restart_bts_cmd);
|
||||
|
|
Loading…
Reference in New Issue