-
Notifications
You must be signed in to change notification settings - Fork 96
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
draft: Scrape device names from board.json #1154
base: master
Are you sure you want to change the base?
Conversation
Allow to check if a specific port is a DSA user port. Without arguments the function behaviour does not change.
- Scrape configurable network devices from /etc/board.json. - Avoid configuration on DSA conduit devices. - Allow device specific configuration for network devices with arbitrary names. - Remove 'nobridge' tag. - Add 'dsa' tag for DSA user ports.
I have tested the following:
To create the dummy devices, I installed 'kmod-dummy' and then ran |
This looks amazing :D I flashed 3 routers with this and here you are the outputs of lime-report (beware that I included in the flashed images all the pull requests currently open): A PlasmaCloud PA1200: A TP-Link WDR3600: A YouHua WR1200JS: If you consider useful to have some references good for comparisons, I can flash images with and without this pull request, just let me know! With this code, the ethernet1 and ethernet2 interfaces from the PlasmaCloud device are correctly configured! :D One doubt: |
Adding the report from a Ubiquiti NanoStation LoCo M2 XM (with just 32 MB of RAM, so I had to create a very minimal image). lime-report-20241216-NanoStation_Loco_M2_XM-libremesh_bis.txt |
Interfaces are added to batadv when they are up and removed when they are down. On WDR3600, eth0 is always up, because it's connected to the switch. So this is expected. One thing that at first striked me as odd is that with PlasmaCloud PA1200, without patch it has
and with patch it has
. But this is expected too, because lime-packages/packages/lime-proto-wan/files/usr/lib/lua/lime/proto/wan.lua Lines 16 to 24 in 50a4a09
is only run when there is an actual interface configured with lime-proto-wan (which does not happen without the patch), while lime-packages/packages/lime-system/files/usr/lib/lua/lime/network.lua Lines 174 to 181 in 50a4a09
is always run. All reports look good to me. |
Great! The network was like this: ISP router --cable-- TP-Link WDR3600 --wifi-- (Ubiquiti NanoStation LoCo M2 XM --cable-- LAN3 YouHua WR1200JS LAN1 --cable-- LAN PlasmaCloud PA1200) I did not configure the ethernet interfaces manually, so I would also expect some issues due to #1121. The internet connection was not working due to a new issue #1157. No idea what caused this new issue. The report from the Ubiquiti NanoStation LoCo M2 XM is incomplete as, in this network, it was frequently rebooting. lime-report-20241218-YouHua-libremesh.txt lime-report-20241218-WDR3600-libremesh.txt |
arbitrary names. This is more intuitive from a users perpective. Before, devices whose names don't match certain patterns were ignored. This could be helpful for network devices with unforseen names.
fixes #1132