Overriding the default br-lan device created automatically by OpenWrt via OpenWISP is not possible because it is called "device1", while the OpenWISP netjsonconfig library generates something like "devicelan" (the name is calculated as `device`).
This leads to a situation in which two bridges devices are defined, one which is pre-existing another one added by OpenWISP, leading to inconsistent results.
To prevent this issue we could change the openwisp-uci-autoname.lua script so that it treats network.device objects in a special way:
if it's being referenced by any other interface
rename it as device_<name_of_interface> instead of device<number>
Overriding the default br-lan device created automatically by OpenWrt via OpenWISP is not possible because it is called "device1", while the OpenWISP netjsonconfig library generates something like "devicelan" (the name is calculated as `device`).
This leads to a situation in which two bridges devices are defined, one which is pre-existing another one added by OpenWISP, leading to inconsistent results.
To prevent this issue we could change the
openwisp-uci-autoname.lua
script so that it treats network.device objects in a special way:device_<name_of_interface>
instead ofdevice<number>