vty: Add 'show bts pdch' command
This allows to see which channels have been enabled according to PCU.
Change-Id: If72e67ba80aab4e0c68408e6996d74d2ff70c322
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 99c92b7..0756136 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -828,6 +828,14 @@
return CMD_SUCCESS;
}
+DEFUN(show_bts_pdch,
+ show_bts_pdch_cmd,
+ "show bts pdch",
+ SHOW_STR "BTS related functionality\nPDCH timeslots\n")
+{
+ return pcu_vty_show_bts_pdch(vty, bts_main_data());
+}
+
#define IDLE_TIME_STR "keep an idle DL TBF alive for the time given\n"
DEFUN_DEPRECATED(cfg_pcu_dl_tbf_idle_time,
cfg_pcu_dl_tbf_idle_time_cmd,
@@ -1273,6 +1281,7 @@
install_element(PCU_NODE, &cfg_pcu_timer_cmd);
install_element_ve(&show_bts_stats_cmd);
+ install_element_ve(&show_bts_pdch_cmd);
install_element_ve(&show_tbf_cmd);
install_element_ve(&show_ms_all_cmd);
install_element_ve(&show_ms_tlli_cmd);