vty: Fix lost 'no timer-dynamic T3113' config when writing current config

The default is to have a dynamic T3113. However, if the user wished to
set it statically, it would show up when writing the current VTY config.

Change-Id: If121a97bbb4a0234a0c162ef37c3692d6408404d
This commit is contained in:
Pau Espin 2022-11-28 12:35:08 +01:00
parent 882602cdd8
commit 8ff2931862
1 changed files with 3 additions and 1 deletions

View File

@ -3033,7 +3033,7 @@ DEFUN_USRATTR(cfg_bts_no_mgw_pool_target,
#define TNUM_STR "T-number, optionally preceded by 't' or 'T'\n"
DEFUN_ATTR(cfg_bts_t3113_dynamic, cfg_bts_t3113_dynamic_cmd,
"timer-dynamic TNNNN",
"Calculate T3113 dynamically based on channel config and load\n"
"Calculate T3113 dynamically based on channel config and load (default)\n"
TNUM_STR,
CMD_ATTR_IMMEDIATE)
{
@ -4516,6 +4516,8 @@ static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts)
/* if we have a limit, write it */
if (bts->paging.free_chans_need >= 0)
vty_out(vty, " paging free %d%s", bts->paging.free_chans_need, VTY_NEWLINE);
if (!bts->T3113_dynamic)
vty_out(vty, " no timer-dynamic T3113%s", VTY_NEWLINE);
vty_out(vty, " neighbor-list mode %s%s",
get_value_string(bts_neigh_mode_strs, bts->neigh_list_manual_mode), VTY_NEWLINE);