-
Notifications
You must be signed in to change notification settings - Fork 99
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
Replace OpenWrt 19.07 switch config style with OpenWrt 21.02 one in proto-lan and network.lua's device parser #959
Conversation
Codecov Report
@@ Coverage Diff @@
## master #959 +/- ##
==========================================
- Coverage 77.72% 77.48% -0.24%
==========================================
Files 52 52
Lines 4359 4384 +25
==========================================
+ Hits 3388 3397 +9
- Misses 971 987 +16
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Just thought (will test ASAP): maybe only lan1_29 was added because it was the only Ethernet port with an active link (to my laptop). So maybe the others would get added as soon as the lower lanX interface gets up. |
I can confirm that, with the current state of this PR, it works on OpenWrt 19.07. and you can compare it with the one obtained without this PR here: #951 (comment) |
I don't have DSA devices at hand, @ilario can you test it with a few of them and see if everything looks good? |
I thought I had more of the supported ones, but actually I just have two (I will check if some more, but if any they will be very old): I tested on the first (both with OpenWrt 22.03 and 19.07) but not yet on the second (I started testing on Ubiquiti NanoStation M5 XM and NS Loco M2 XM and was going to test on TP-Link TL-WDR3600 before realizing they were not ported yet to DSA, maybe I could compile master including the pull request you mentioned in the meeting). |
Having a mixed setup of DSA and non-DSA routers is ideal for testing this PR, all must work fine on all of them, at that point we can merge it |
Just tested on OpenWrt 22.03 on a non-DSA device (Ubiquiti NanoStation M5 XW) and the Considering this mess, and the need to restructure everything related to the firewall (OpenWrt 22.03 replaced iptables and ebtables with nftables, which means that installing a simple package like lime-proto-wan can pulll a ton of useless dependencies) I would suggest to not support anything older than OpenWrt 22.03 for the next release. |
This is not difficult, eh, I can modify the PR if we consider that is too early for abandoning OpenWrt 19.07... |
It is not useless, and not dangerous, please keep this behaviour unchanged, so keep the wan interface used for mesh too by default |
Ok, anyway the firewall will block it, so ok. |
With so many changes what IMHO should we do, is decide which OpenWrt version is our development target, if we decide to target a new non-compatible version we should tag/branch the last commit compatible with the previous version as target_OpenWrt_XX.XX, if we use a tag it means that commit is the last supporting that OpenWrt version carved in stone, aka absolutely no more works gets there, if we branch we remain open to the possibility to accept some very very very well tested bug fix commit ending up there. |
Also because of that it should not be installed :-p |
Yep, after a very short discussion on the Element chat, it was decided to go on supporting only OpenWrt 22.03 on the master branch.
Yep, I think that a branch is better.
Let's keep the discussion on libremesh/libremesh.github.io#139 (or #280). |
Even if I include The main reason why I need to include So the possible solutions are 2, that I can think of:
|
Maybe I observed that just because I didn't have lime-hwd-openwrt-wan installed, as otherwise it should create specific configuration for the WAN interface and not include it in the lan bridge. If this is the case, sorry, I thought it was a general behavior. Anyway, the complete absence of users commenting on the wan-wan use-case make me think that we are struggling to support something that nobody uses. |
ed56e82
to
6617c8c
Compare
6617c8c
to
3be314b
Compare
What is remaining to do:
And I also kept the DSA checker even if it is not being used anymore in this PR, supposing that is going to be useful in other occasions. |
In order to be able to update the tests, I would need someone to prepare a Docker image based on OpenWrt 22.03 to be uploaded on Docker Hub https://hub.docker.com/u/libremesh who can do that? @spiccinini @altergui |
I think we should keep this whole PR for after the retargetting, so please keep de DSA detection code as it will be useful |
3be314b
to
277e414
Compare
I have been pushing some improvements here https://github.com/G10h4ck/lime-packages/tree/test_PR_959 |
I saw that you implemented the usage of |
Thanks for suggestion and for pointing out documentation, I have fixed it as you suggested |
I took the liberty to include your commits here, as they look correct. |
I think we should merge this for now, next iteration is to get rid of iptables/ebtables, ans see if we can do what we need with firewall4 or if we need to write nftables rules by hand |
Wait, before merging this I think we need to do the following:
Do you agree? |
Already done that https://github.com/libremesh/lime-packages/tree/OpenWrt_19.07_compatible I live the rest to you ;)
|
So this is ready to merge now? |
Yes, I think it is ready to merge. I could not test @G10h4ck 's commits yet but he surely did. |
Yeah I have tested the commits, those are not enough to run properly libremesh on top of newer OpenWrt, and hence as @ilario said the resulting build will be broken, but I am already working on more stuff to push in another PR soon that should fix at least what I have detected so far. |
Sound great. I'd be happy to rest things. Please let me know |
WAN isn't detect on my device...
Is it possible that the wan interface isn't scanned at all? |
Seems that lime-hwd-openwrt-wan is working correctly. |
The interface is correctly scanned and it is called |
See #951
Specifically, here I tried to address two big differences that can be spotted in the reports attached in #951:
On the last point, there are two big doubts:
I coarsely tested on a single router, so this PR is not ready to merge at all.
Indeed, what I observed is that only lan1_29 gets added to bat0, while lan2_29... do not get added, even if in
/etc/config/network
they are all indicated to be part of bat0 in the same way. No idea what is happening here.