diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-18 14:37:17 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-18 14:37:17 +0200 |
commit | 9e136f52c1723a62c0e2dc864f45fdd78b25f180 (patch) | |
tree | d166acc1e0cf7fca9bbf597b756f279e738bfd60 | |
parent | 1076ec91f9441f961cbd64232bc71472e310e10c (diff) |
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
-rw-r--r-- | TODO-RELEASE | 2 | ||||
-rw-r--r-- | src/osmo-bsc/bsc_vty.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO-RELEASE b/TODO-RELEASE index d56a4163e..6dc738a15 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -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()
\ No newline at end of file diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c index d32baf814..11fcfad6d 100644 --- a/src/osmo-bsc/bsc_vty.c +++ b/src/osmo-bsc/bsc_vty.c @@ -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); |