Skip to content
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

Synchronize official source code #70

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Synchronize official source code #70

merged 3 commits into from
Oct 10, 2024

Conversation

openwrtdiy
Copy link
Owner

No description provided.

systemcrash and others added 3 commits October 7, 2024 18:07
Strength gauge is now displayed. Appended dBm measurement also.

Corrected some labels.

Closes openwrt#6147

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 723eb38)
The previous implementation of binding the protocol validation to the
name validation caused problems when creating a new interface where an
already existing interface had the new one's protocol as its name, as the
protocol would be used when validating if an interface of that name already
existed.

Consider the following case:
1. Interface 'gre' with protocol PPPoE is created
2. Interface 'foo' with protocol GRE tunnel over IPv4 (which resolves to
   'gre') tries to be created

Creating interface 'foo' would error out during protocol validation as
'gre' would be passed to the name validation, which in turn would check if
an interface with name 'gre' already exists, which it does.

Instead of reusing the validation logic, simply trigger the name
validation manually as the protocol changes to properly pass the name of
the interface instead of the protocol. This also gives the benefit of
keeping all error states related to the name contained in the appropriate
UI element.

Fixes openwrt#7146

Tested-by: Tiago Gaspar <[email protected]>
Signed-off-by: Daniel Nilsson <[email protected]>
(cherry picked from commit 300961b)
Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 3aa6087)
@openwrtdiy openwrtdiy merged commit 33735fe into diy-23.05 Oct 10, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants