diff options
author | Max <msuraev@sysmocom.de> | 2017-10-09 17:12:53 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-10-09 18:42:15 +0200 |
commit | 3d049d27f5ab8d1b51bf02e752349df83774066c (patch) | |
tree | ecd4f4c64a1a699a4c7eb5c8e4148eb50c1e505e /include | |
parent | 081cebaa6ddf3abebb93025c7eb430f0c9844016 (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 'include')
-rw-r--r-- | include/osmocom/bsc/gsm_data.h | 3 | ||||
-rw-r--r-- | include/osmocom/bsc/gsm_data_shared.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index 6814662b2..429526dec 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -654,6 +654,9 @@ extern struct e1inp_line_ops bts_isdn_e1inp_line_ops; extern const struct value_string bts_type_names[_NUM_GSM_BTS_TYPE+1]; extern const struct value_string bts_type_descs[_NUM_GSM_BTS_TYPE+1]; +char *get_oml_status(const struct gsm_bts *bts); +char *get_model_oml_status(const struct gsm_bts *bts); + /* control interface handling */ int bsc_base_ctrl_cmds_install(void); diff --git a/include/osmocom/bsc/gsm_data_shared.h b/include/osmocom/bsc/gsm_data_shared.h index f41bac47c..240be1c7c 100644 --- a/include/osmocom/bsc/gsm_data_shared.h +++ b/include/osmocom/bsc/gsm_data_shared.h @@ -546,6 +546,7 @@ struct gsm_bts_model { bool started; int (*start)(struct gsm_network *net); int (*oml_rcvmsg)(struct msgb *msg); + char * (*oml_status)(const struct gsm_bts *bts); void (*e1line_bind_ops)(struct e1inp_line *line); |