Ethernet: change Link name value from device

This commit is contained in:
Amin Ben Ramdhane 2020-04-14 18:07:51 +01:00
parent 8c8cd72622
commit 2f30e6d079

View file

@ -823,7 +823,7 @@ static int set_EthernetLink_Alias(char *refparam, struct dmctx *ctx, void *data,
static int get_EthernetLink_Name(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
*value = dmstrdup(section_name(((struct dm_args *)data)->section));
dmuci_get_value_by_section_string(((struct dm_args *)data)->section, "device", value);
return 0;
}