vty.c: Fix re-reading of config file after 'write file'

When writing the timeslot mode, we must write it in lower-case,
as the VTY parser reading the config file only supports that.

Change-Id: Ic60449a0ba64117a5cf5e4a8e76484e9c955f09f
This commit is contained in:
Harald Welte 2022-03-28 10:15:52 +02:00
parent 16403fce90
commit 8ec461ebe8
1 changed files with 3 additions and 3 deletions

View File

@ -126,9 +126,9 @@ static int get_remote_pid(int fd)
}
const struct value_string e1_ts_mode_names[] = {
{ E1_TS_MODE_OFF, "OFF" },
{ E1_TS_MODE_RAW, "RAW" },
{ E1_TS_MODE_HDLCFCS, "HDLC-FCS" },
{ E1_TS_MODE_OFF, "off" },
{ E1_TS_MODE_RAW, "raw" },
{ E1_TS_MODE_HDLCFCS, "hdlc-fcs" },
{ 0, NULL }
};