New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network.lua throws an error when owrt_device_parser cannot find ifname #944
Comments
|
Do we need to keep compatibility with devices not supported by DSA? If we want to keep retrocompatibility with OpenWrt 19.07 (or compatibility with the few targets that have not been ported to DSA), we can check if DSA is in place with these lines from Jow: |
|
I believe that we can first work in supporting 22.03 and then check if adding backwards compatibility is needed. What we will have to do is to work in some migration script so an upgrade from 19.07 is viable. Some work is being done here openwrt/openwrt#10796 |
|
I just tried with OpenWrt 19.07 and I got the same error but for another interface. And it was caused by this entry in This is very weird. I am going to try to see why this happens when installing packages one by one but not when flashing the whole thing together. |
|
PS it happens because this entry in
|
|
Waaaait, this whole thing has not been caused by DSA but by this commit: 3bafc4d merged in #900 on the 15th of September. Specifically, if something has a lime-packages/packages/lime-system/files/usr/lib/lua/lime/network.lua Lines 212 to 216 in 3bafc4d
what changed in that commit is that before skipping the lime-packages/packages/lime-system/files/usr/lib/lua/lime/network.lua Lines 255 to 263 in 3bafc4d
So this is NOT related to DSA. |
Thinking about the migration: |
Running
lime-configon a YouHua WR1200JS with OpenWrt 22.03 I got the following error:The value for
ifnamehere is missing:lime-packages/packages/lime-system/files/usr/lib/lua/lime/network.lua
Line 257 in 3bafc4d
This happens due to the changes introduced in OpenWrt 21.02 with the DSA system for configuring bridges, instead of the old swconfig, see the most important changes here
https://openwrt.org/releases/21.02/notes-21.02.0#new_network_configuration_syntax_and_boardjson_change
specifically the point "in
config deviceof typebridge,ifnamehas been renamed toports".Additionally, its content changed from a string containing the ports to a table, so that a change in the code is needed.
Also, the parsing in
dev_parserneeds to be adapted to the new naming likelan1in these lines:lime-packages/packages/lime-system/files/usr/lib/lua/lime/network.lua
Line 224 in 3bafc4d
The text was updated successfully, but these errors were encountered: