mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	VTY: Move BSC specific openbsc_vty_print_statistics() to vty_interface.c
This commit is contained in:
		@@ -1978,6 +1978,23 @@ DEFUN(cfg_ts_e1_subslot,
 | 
			
		||||
	return CMD_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *net)
 | 
			
		||||
{
 | 
			
		||||
	vty_out(vty, "Channel Requests        : %lu total, %lu no channel%s",
 | 
			
		||||
		counter_get(net->stats.chreq.total),
 | 
			
		||||
		counter_get(net->stats.chreq.no_channel), VTY_NEWLINE);
 | 
			
		||||
	vty_out(vty, "Channel Failures        : %lu rf_failures, %lu rll failures%s",
 | 
			
		||||
		counter_get(net->stats.chan.rf_fail),
 | 
			
		||||
		counter_get(net->stats.chan.rll_err), VTY_NEWLINE);
 | 
			
		||||
	vty_out(vty, "Paging                  : %lu attempted, %lu complete, %lu expired%s",
 | 
			
		||||
		counter_get(net->stats.paging.attempted),
 | 
			
		||||
		counter_get(net->stats.paging.completed),
 | 
			
		||||
		counter_get(net->stats.paging.expired), VTY_NEWLINE);
 | 
			
		||||
	vty_out(vty, "BTS failures            : %lu OML, %lu RSL%s",
 | 
			
		||||
		counter_get(net->stats.bts.oml_fail),
 | 
			
		||||
		counter_get(net->stats.bts.rsl_fail), VTY_NEWLINE);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
extern int bsc_vty_init_extra(void);
 | 
			
		||||
extern const char *openbsc_copyright;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -429,23 +429,6 @@ gDEFUN(cfg_no_description, cfg_no_description_cmd,
 | 
			
		||||
	return CMD_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *net)
 | 
			
		||||
{
 | 
			
		||||
	vty_out(vty, "Channel Requests        : %lu total, %lu no channel%s",
 | 
			
		||||
		counter_get(net->stats.chreq.total),
 | 
			
		||||
		counter_get(net->stats.chreq.no_channel), VTY_NEWLINE);
 | 
			
		||||
	vty_out(vty, "Channel Failures        : %lu rf_failures, %lu rll failures%s",
 | 
			
		||||
		counter_get(net->stats.chan.rf_fail),
 | 
			
		||||
		counter_get(net->stats.chan.rll_err), VTY_NEWLINE);
 | 
			
		||||
	vty_out(vty, "Paging                  : %lu attempted, %lu complete, %lu expired%s",
 | 
			
		||||
		counter_get(net->stats.paging.attempted),
 | 
			
		||||
		counter_get(net->stats.paging.completed),
 | 
			
		||||
		counter_get(net->stats.paging.expired), VTY_NEWLINE);
 | 
			
		||||
	vty_out(vty, "BTS failures            : %lu OML, %lu RSL%s",
 | 
			
		||||
		counter_get(net->stats.bts.oml_fail),
 | 
			
		||||
		counter_get(net->stats.bts.rsl_fail), VTY_NEWLINE);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void openbsc_vty_add_cmds()
 | 
			
		||||
{
 | 
			
		||||
	install_element_ve(&enable_logging_cmd);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user