aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/bsc_vty.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-10-09 17:12:53 +0200
committerMax <msuraev@sysmocom.de>2017-10-09 18:42:15 +0200
commit3d049d27f5ab8d1b51bf02e752349df83774066c (patch)
treeecd4f4c64a1a699a4c7eb5c8e4148eb50c1e505e /src/libbsc/bsc_vty.c
parent081cebaa6ddf3abebb93025c7eb430f0c9844016 (diff)
OML: consider RSL link state
OML link state is available via vty ("sh bts 0" command) and ctrl ("oml-connection-state" RO variable). When showing OML link state, take into consideration RSL link state as well: if OML is up but RSL is missing show it as degraded. That's implemented via BTS model-specific functions (currently Sysmo- and Nano- BTS only) Change-Id: I5952fc59e4d82e0aa627ad91d20f964d9559a4c4 Related: OS#2486
Diffstat (limited to 'src/libbsc/bsc_vty.c')
-rw-r--r--src/libbsc/bsc_vty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index f1c78c8d8..43cb282a4 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -308,9 +308,8 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts)
paging_pending_requests_nr(bts),
bts->paging.available_slots, VTY_NEWLINE);
if (is_ipaccess_bts(bts)) {
- vty_out(vty, " OML Link state: ");
+ vty_out(vty, " OML Link state: %s", get_model_oml_status(bts));
if (bts->oml_link) {
- vty_out(vty, "connected");
if (bts->uptime) {
rc = clock_gettime(CLOCK_MONOTONIC, &tp);
if (rc == 0) { /* monotonic clock helps to ensure that conversion below is valid */
@@ -320,8 +319,7 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts)
sec % 60, VTY_NEWLINE);
}
}
- } else
- vty_out(vty, "disconnected.%s", VTY_NEWLINE);
+ }
} else {
vty_out(vty, " E1 Signalling Link:%s", VTY_NEWLINE);
e1isl_dump_vty(vty, bts->oml_link);