vty: Add 'show ms all' command
This command lists the entries of the ms_store by a line per MS.
Beside TLLI and IMSI, some measurement and state information is
shown.
A ms_list() getter method is added to GprsMsStorage to obtain a list
of the MsGprs objects.
The following VTY command is added to the 'enable' node:
- show ms all
Sponsored-by: On-Waves ehf
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 7add393..8c2a8d8 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -531,6 +531,15 @@
return CMD_SUCCESS;
}
+DEFUN(show_ms_all,
+ show_ms_all_cmd,
+ "show ms all",
+ SHOW_STR "information about MSs\n" "All TBFs\n")
+{
+ struct gprs_rlcmac_bts *bts = bts_main_data();
+ return pcu_vty_show_ms_all(vty, bts);
+}
+
static const char pcu_copyright[] =
"Copyright (C) 2012 by Ivan Kluchnikov <kluchnikovi@gmail.com> and \r\n"
" Andreas Eversberg <jolly@eversberg.eu>\r\n"
@@ -587,6 +596,7 @@
install_element_ve(&show_bts_stats_cmd);
install_element_ve(&show_tbf_cmd);
+ install_element_ve(&show_ms_all_cmd);
return 0;
}