aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-01 16:07:33 +0100
committerHarald Welte <laforge@gnumonks.org>2019-04-08 07:35:00 +0000
commit12a0987b360f6825217aa25249719f1ef85f4a1c (patch)
tree8867ef2a255ffb59427696a4b4f5714a668bf76e /src/pcu_vty.c
parent0e6ac799f7f75639ae37e01feeb507e301a12745 (diff)
vty: add commands to show TBF of a certain kind
Add vty commands to show only TBFs allocated via PACCH or CCCH. Change-Id: I80f8df4fe663a0346f4289a4220b761e39726312 Related: OS#1759
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r--src/pcu_vty.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 960c90d9..3a733ef8 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -1083,11 +1083,20 @@ DEFUN(cfg_pcu_gb_dialect,
DEFUN(show_tbf,
show_tbf_cmd,
- "show tbf all",
- SHOW_STR "information about TBFs\n" "All TBFs\n")
+ "show tbf (all|ccch|pacch)",
+ SHOW_STR "information about TBFs\n"
+ "All TBFs\n"
+ "TBFs allocated via CCCH\n"
+ "TBFs allocated via PACCH\n")
{
struct gprs_rlcmac_bts *bts = bts_main_data();
- return pcu_vty_show_tbf_all(vty, bts);
+ if (!strcmp(argv[0], "all"))
+ return pcu_vty_show_tbf_all(vty, bts, true, true);
+
+ if (!strcmp(argv[0], "ccch"))
+ return pcu_vty_show_tbf_all(vty, bts_main_data(), true, false);
+
+ return pcu_vty_show_tbf_all(vty, bts_main_data(), false, true);
}
DEFUN(show_ms_all,