dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/28895 )
Change subject: bts_trx_vty: do not print nmstate of bb_trxc mo
......................................................................
bts_trx_vty: do not print nmstate of bb_trxc mo
The OM2000 model does not have a separate bb_transc MO, we should
exclude it from 'show trx'
Change-Id: I0f5501f6fbc7ce6d5457676b16c7f93f70db5763
Related: OS#5101
---
M src/osmo-bsc/bts_trx_vty.c
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/95/28895/1
diff --git a/src/osmo-bsc/bts_trx_vty.c b/src/osmo-bsc/bts_trx_vty.c
index bd13a05..e128de6 100644
--- a/src/osmo-bsc/bts_trx_vty.c
+++ b/src/osmo-bsc/bts_trx_vty.c
@@ -738,8 +738,13 @@
net_dump_nmstate(vty, &trx->mo.nm_state);
if (print_rsl)
vty_out(vty, " RSL State: %s%s", trx->rsl_link_primary?
"connected" : "disconnected", VTY_NEWLINE);
- vty_out(vty, " Baseband Transceiver NM State: ");
- net_dump_nmstate(vty, &trx->bb_transc.mo.nm_state);
+
+ /* The OM2000 -> 12.21 mapping we do doesn't have separate bb_transc MO */
+ if (!is_ericsson_bts(trx->bts)) {
+ vty_out(vty, " Baseband Transceiver NM State: ");
+ net_dump_nmstate(vty, &trx->bb_transc.mo.nm_state);
+ }
+
if (is_ipaccess_bts(trx->bts)) {
vty_out(vty, " ip.access stream ID: 0x%02x ", trx->rsl_tei_primary);
e1isl_dump_vty_tcp(vty, trx->rsl_link_primary);
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/28895
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0f5501f6fbc7ce6d5457676b16c7f93f70db5763
Gerrit-Change-Number: 28895
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange