VTY: fix writing of custom timer values to a configuration file
Calling osmo_tdef_vty_write() twice: with and without the 'timer ' prefix definitely looks like a bug. After setting any timer to a custom (non-default) value, config_write_net() would generate an incorrect configuration file: $ osmo-bsc -c /tmp/osmo-bsc.cfg There is no such command. Error occurred during reading the below line: T10 10 Change-Id: I5cc893fb2077bb21f1f661e30a7ab2af1b9bd561
This commit is contained in:
parent
40e3f1e3d7
commit
b84463e36a
|
@ -1062,8 +1062,6 @@ static int config_write_net(struct vty *vty)
|
|||
|
||||
ho_vty_write_net(vty, gsmnet);
|
||||
|
||||
osmo_tdef_vty_write(vty, gsmnet->T_defs, " ");
|
||||
|
||||
if (!gsmnet->dyn_ts_allow_tch_f)
|
||||
vty_out(vty, " dyn_ts_allow_tch_f 0%s", VTY_NEWLINE);
|
||||
if (gsmnet->tz.override != 0) {
|
||||
|
|
Loading…
Reference in New Issue