Ticket refs #6062: LowerLayers of IP.Interface. will remain empty for around 15 seconds When a new interface is created

This commit is contained in:
Amin Ben Ramdhane 2021-09-16 16:52:03 +01:00
parent 5c35877233
commit d804ec0d57

View file

@ -1276,6 +1276,11 @@ static int get_IPInterface_LowerLayers(char *refparam, struct dmctx *ctx, void *
}
char *device = get_device(section_name((struct uci_section *)data));
/* If the device value is empty, then get its value directly from device option */
if (device && *device == '\0')
dmuci_get_value_by_section_string((struct uci_section *)data, "device", &device);
if (device[0] != '\0') {
adm_entry_get_linker_param(ctx, "Device.Ethernet.VLANTermination.", device, value);
if (*value != NULL)