From 5fb4c19f93e441ce9f396b61f1ab445f5fda2c11 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 8 Feb 2018 18:21:55 +0100 Subject: show complete ACC config in VTY Change-Id: I4115c7b98373d199cf2a46f7d840f2e77de51e80 --- src/libbsc/bsc_vty.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c index 171d5a72a..c927c0770 100644 --- a/src/libbsc/bsc_vty.c +++ b/src/libbsc/bsc_vty.c @@ -267,6 +267,17 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) VTY_NEWLINE); vty_out(vty, "Cell Reselection Hysteresis: %u dBm%s", bts->si_common.cell_sel_par.cell_resel_hyst*2, VTY_NEWLINE); + vty_out(vty, "Access Control Class ramping: %senabled%s", + bts->acc_ramping_enabled ? "" : "not ", VTY_NEWLINE); + if (bts->acc_ramping_enabled) { + if (bts->acc_ramp.step_interval_is_fixed) + vty_out(vty, " Access Control class ramping step interval: %u seconds%s", + bts->acc_ramp.step_interval_sec, VTY_NEWLINE); + else + vty_out(vty, " Access Control class ramping step interval: dynamic%s", VTY_NEWLINE); + vty_out(vty, " enabling %u Access Control Class%s per ramping step%s", + bts->acc_ramp.step_size, bts->acc_ramp.step_size > 1 ? "es" : "", VTY_NEWLINE); + } vty_out(vty, "RACH TX-Integer: %u%s", bts->si_common.rach_control.tx_integer, VTY_NEWLINE); vty_out(vty, "RACH Max transmissions: %u%s", @@ -298,7 +309,6 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) VTY_NEWLINE); if (bts->pcu_sock_path) vty_out(vty, "PCU Socket Path: %s%s", bts->pcu_sock_path, VTY_NEWLINE); - vty_out(vty, "Access Control Class ramping: %senabled%s", bts->acc_ramping_enabled ? "" : "not ", VTY_NEWLINE); if (is_ipaccess_bts(bts)) vty_out(vty, " Unit ID: %u/%u/0, OML Stream ID 0x%02x%s", bts->ip_access.site_id, bts->ip_access.bts_id, -- cgit v1.2.3