Split bsc_vty.c creating bts_vty.c
Change-Id: I347e7da328fed0733af2eec10a3ca6e02a148308
This commit is contained in:
parent
b2b47d2c47
commit
e19289fb89
|
@ -6,6 +6,13 @@
|
|||
#include <osmocom/vty/command.h>
|
||||
|
||||
struct gsm_network;
|
||||
struct gsm_bts;
|
||||
struct gsm_bts_trx;
|
||||
struct gsm_bts_trx_ts;
|
||||
struct gsm_nm_state;
|
||||
struct pchan_load;
|
||||
struct gsm_lchan;
|
||||
struct bsc_subscr;
|
||||
struct vty;
|
||||
|
||||
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *);
|
||||
|
@ -32,9 +39,20 @@ enum bsc_vty_node {
|
|||
struct log_info;
|
||||
int bsc_vty_init(struct gsm_network *network);
|
||||
int bsc_vty_init_extra(void);
|
||||
void net_dump_nmstate(struct vty *vty, struct gsm_nm_state *nms);
|
||||
int dummy_config_write(struct vty *v);
|
||||
void dump_pchan_load_vty(struct vty *vty, char *prefix, const struct pchan_load *pl);
|
||||
void bsc_subscr_dump_vty(struct vty *vty, struct bsc_subscr *bsub);
|
||||
|
||||
struct gsm_network *gsmnet_from_vty(struct vty *vty);
|
||||
|
||||
int bts_vty_init(void);
|
||||
void bts_dump_vty(struct vty *vty, struct gsm_bts *bts);
|
||||
void trx_dump_vty(struct vty *vty, struct gsm_bts_trx *trx, bool print_rsl, bool show_connected);
|
||||
void ts_dump_vty(struct vty *vty, struct gsm_bts_trx_ts *ts);
|
||||
void lchan_dump_full_vty(struct vty *vty, struct gsm_lchan *lchan);
|
||||
void lchan_dump_short_vty(struct vty *vty, struct gsm_lchan *lchan);
|
||||
|
||||
enum bsc_vty_cmd_attr {
|
||||
BSC_VTY_ATTR_RESTART_ABIS_OML_LINK = 0,
|
||||
BSC_VTY_ATTR_RESTART_ABIS_RSL_LINK,
|
||||
|
@ -43,4 +61,26 @@ enum bsc_vty_cmd_attr {
|
|||
/* NOTE: up to 32 entries */
|
||||
};
|
||||
|
||||
#define BTS_NR_STR "BTS Number\n"
|
||||
#define TRX_NR_STR "TRX Number\n"
|
||||
#define TS_NR_STR "Timeslot Number\n"
|
||||
#define SS_NR_STR "Sub-slot Number\n"
|
||||
#define LCHAN_NR_STR "Logical Channel Number\n"
|
||||
#define BTS_TRX_STR BTS_NR_STR TRX_NR_STR
|
||||
#define BTS_TRX_TS_STR BTS_TRX_STR TS_NR_STR
|
||||
#define BTS_TRX_TS_LCHAN_STR BTS_TRX_TS_STR LCHAN_NR_STR
|
||||
#define BTS_NR_TRX_TS_STR2 \
|
||||
"BTS for manual command\n" BTS_NR_STR \
|
||||
"TRX for manual command\n" TRX_NR_STR \
|
||||
"Timeslot for manual command\n" TS_NR_STR
|
||||
#define BTS_NR_TRX_TS_SS_STR2 \
|
||||
BTS_NR_TRX_TS_STR2 \
|
||||
"Sub-slot for manual command\n" SS_NR_STR
|
||||
|
||||
#define TSC_ARGS_OPT "[tsc] [<1-4>] [<0-7>]"
|
||||
#define TSC_ARGS_DOC \
|
||||
"Provide specific TSC Set and Training Sequence Code\n" \
|
||||
"TSC Set\n" \
|
||||
"Training Sequence Code\n"
|
||||
|
||||
#endif
|
||||
|
|
|
@ -55,6 +55,7 @@ osmo_bsc_SOURCES = \
|
|||
bts_sm.c \
|
||||
bts_osmobts.c \
|
||||
bts_unknown.c \
|
||||
bts_vty.c \
|
||||
chan_alloc.c \
|
||||
codec_pref.c \
|
||||
e1_config.c \
|
||||
|
|
|
@ -54,11 +54,6 @@ struct oml_node_state {
|
|||
uint8_t obj_inst[3];
|
||||
};
|
||||
|
||||
static int dummy_config_write(struct vty *v)
|
||||
{
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
/* FIXME: auto-generate those strings from the value_string lists */
|
||||
#define NM_OBJCLASS_VTY "(site-manager|bts|radio-carrier|baseband-transceiver|channel|adjc|handover|power-contorl|btse|rack|test|envabtse|bport|gprs-nse|gprs-cell|gprs-nsvc|siemenshw)"
|
||||
#define NM_OBJCLASS_VTY_HELP "Site Manager Object\n" \
|
||||
|
|
|
@ -63,11 +63,6 @@ struct oml_node_state {
|
|||
struct con_group *cg;
|
||||
};
|
||||
|
||||
static int dummy_config_write(struct vty *v)
|
||||
{
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
/* FIXME: auto-generate those strings from the value_string lists */
|
||||
#define OM2K_OBJCLASS_VTY "(trxc|tg|ts|tf|is|con|dp|mctr|cf|tx|rx)"
|
||||
#define OM2K_OBJCLASS_VTY_HELP "TRX Controller\n" \
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -63,6 +63,7 @@ handover_test_LDADD = \
|
|||
$(top_builddir)/src/osmo-bsc/bts_ipaccess_nanobts.o \
|
||||
$(top_builddir)/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.o \
|
||||
$(top_builddir)/src/osmo-bsc/bts_unknown.o \
|
||||
$(top_builddir)/src/osmo-bsc/bts_vty.o \
|
||||
$(top_builddir)/src/osmo-bsc/chan_alloc.o \
|
||||
$(top_builddir)/src/osmo-bsc/codec_pref.o \
|
||||
$(top_builddir)/src/osmo-bsc/gsm_04_08_rr.o \
|
||||
|
|
Loading…
Reference in New Issue