The LuCI web app provides a dropdown list of devices that are currently up in the system. If you had previously set a device that is no longer up and try to update any of the config options, the device will be overwritten from one in the list.
Rather than specifying the device, it would be better to specify the interface, and then lookup the device and check if it is up with something like.
network_get_device dev $1
network_is_up $1 && {
...
}
LuCI also provides the widgets.NetworkSelect widget that can be used to create the dropdown menu.
Is this still valid with the new reworked (client-side) LUCI? If so, please re-open an issue against the OpenWrt LUCI repository at https://github.com/openwrt/luci/ since luci-app-sqm has moved there...
The LuCI web app provides a dropdown list of devices that are currently up in the system. If you had previously set a device that is no longer up and try to update any of the config options, the device will be overwritten from one in the list.
Rather than specifying the device, it would be better to specify the interface, and then lookup the device and check if it is up with something like.
LuCI also provides the
widgets.NetworkSelect
widget that can be used to create the dropdown menu.