-
Notifications
You must be signed in to change notification settings - Fork 2.5k
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
luci-mod-network: Can't configure second GRE tunnel #7146
Comments
Is there an indication of what error is thrown in the debug console? |
I'm not seeing anything in the browser console logs, is there any way to turn on the debug mode? or should it show up in console logs? |
If anything it should appear in the console log. Maybe some error is logged if the GUI flags a problem and marks it in red. I could not identify any cause in the GRE code, so perhaps the error arises from a different vector. |
In your picture, you're in the elements view. Try the console view next to it. |
Worked fine for me. |
Weird, two of the same protocol type? I was able to reproduce this in two devices 😕 Could I be doing something wrong? |
Could not on my VM. what is the relevant GRE config? |
I get these unsaved changes, and can make 2 GRE fine:
|
What if you create one, apply and then try to create a second tunnel? That's what I did. |
I can make 50 tunnels in the same fashion (as you did). No problem. |
Unless there's enough evidence to find a problem or we can localise a fault, I'm closing this, since you have a custom build going, and nobody else reports anything with GRE. |
If you hover the red select box, is any error description shown in the red tooltip? Is the select box colored red after hitting any button or automatically? Does it turn white if you select another protocol? |
Ok, I nailed down on the issue after making a video that almost embarrassed me 😓 Magic.-.LuCI.-.Google.Chrome.2024-06-17.22-31-50.mp4 |
Video was corrupt. Were you attempting to show us the problem? |
I can see it in my phone and my laptop 😅 |
I took at look at this problem and the reason is at least simple; the protocol validate functionality reuses the name validate functionality, which means that if you create the first GRE tunnel with name This affects every case where the name of the first interface collides with the protocol name of the second interface, I just tried DHCPv6 as an example. @jow- is there a special reason why it reuses it one-to-one as implemented in e4bc192 or was it just for convenience sake? The protocol is a list value so I assume that we won't need the too long of an interface name either. This is a corner case of course, since you could just name the interface something else, but it's not obvious to the user what the actual issue is. |
Seems to be for convenience. If you see a trivial fix, like anchoring on additional conditions, we're open to suggestions. |
Steps to reproduce:
gre
Actual behavior:
Lucy throws an error in the device selector:
Expected behavior:
The GRE tunnel is created.
Additional Information:
OpenWrt version information from system
/etc/openwrt_release
If the tunnel is created directly in UCI it works and shows up in LuCI correctly
The text was updated successfully, but these errors were encountered: