ieee1905: Updated AL interface lowerlayer order

This commit is contained in:
vdutta 2022-04-14 13:14:05 +05:30
parent fd029c1b12
commit daa67e6bad

View file

@ -443,11 +443,13 @@ static int get_IEEE1905ALInterface_Status(char *refparam, struct dmctx *ctx, voi
static int get_IEEE1905ALInterface_LowerLayers(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
char *linker = dmjson_get_value((json_object *)data, 1, "ifname");
adm_entry_get_linker_param(ctx, "Device.Ethernet.Interface.", linker, value);
if (!(*value) || (*value)[0] == 0)
adm_entry_get_linker_param(ctx, "Device.WiFi.Radio.", linker, value);
if (!(*value) || (*value)[0] == 0)
adm_entry_get_linker_param(ctx, "Device.WiFi.AccessPoint.", linker, value);
if (!(*value) || (*value)[0] == 0)
adm_entry_get_linker_param(ctx, "Device.WiFi.Radio.", linker, value);
return 0;
}