From d804ec0d577c3dfff71b88ce887de472fa41725e Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Thu, 16 Sep 2021 16:52:03 +0100 Subject: [PATCH] Ticket refs #6062: LowerLayers of IP.Interface. will remain empty for around 15 seconds When a new interface is created --- dmtree/tr181/ip.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dmtree/tr181/ip.c b/dmtree/tr181/ip.c index 50fa1977..871e9260 100644 --- a/dmtree/tr181/ip.c +++ b/dmtree/tr181/ip.c @@ -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)