blob_data(attr), blob_len(attr));
device_init_settings(dev, tb);
- return DEV_CONFIG_APPLIED;
+ return DEV_CONFIG_RESTART;
} else
return DEV_CONFIG_RECREATE;
}
odev->current_config = true;
change = device_set_config(odev, type, config);
switch (change) {
+ case DEV_CONFIG_RESTART:
case DEV_CONFIG_APPLIED:
D(DEVICE, "Device '%s': config applied\n", odev->ifname);
free(odev->config);
odev->config = config;
- if (odev->present) {
+ if (change == DEV_CONFIG_RESTART && odev->present) {
device_set_present(odev, false);
device_set_present(odev, true);
}