static void
mark_interface_down(struct interface *iface)
{
+ interface_del_all_routes(iface);
interface_del_ctx_addr(iface, NULL);
device_release(&iface->main_dev);
iface->state = IFS_DOWN;
device_add_user(&iface->main_dev, dev);
}
+ if ((cur = tb[IFACE_ATTR_AUTO]))
+ iface->autostart = blobmsg_get_bool(cur);
+ else
+ iface->autostart = true;
+
netifd_ubus_add_interface(iface);
config_set_state(&iface->config, attr);