-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: show wifi vlan interface instead of base interface #7529
base: master
Are you sure you want to change the base?
luci: show wifi vlan interface instead of base interface #7529
Conversation
Q: is this 'instead of' or 'as well as'? And can you show me an example of this in use? I want to know what to look for to verify that existing behaviour is not affected for those not using dynamic VLANS. This regards #1324, correct? Also, please amend your commit message with 79 char line-wrap to include the description, after you've fixed the strange bit:
|
I adjusted the wording as you suggested. Yes, it is partly related to #1324. The issue was actually that clients connected to wifi interfaces with dynamic vlans don't show up in the status and the wireless page. This is not addressed with this patch. For detecting the VLANs Luci relies on the output of An alternative for the dynamic vlans is using Here is an example (not using dynamic vlans):
This will create the base interface Without this patch all clients will be reported with Configuration of lan and gst in
|
Can you show me an example of this in use? A screenshot of the changes. |
0c6c50d
to
111b92d
Compare
Description wording improved and added to the commit |
In this case, why not simply add a VLAN column? Since it's not clear from reading You can pack a couple or triplet in the VLAN column, similar to the Sig/Noise column. e.g. header has VLAN: VID, Name, , and each cell has: |
The interface name is actually the name which was chosen in the wifi-vlan section. so if you prefer the vlan id you can change the option
That would create a vlan interface with the suffix -3 instead -lan in my previous example and show up e.g. as wlan2-3 Adding another column might be a little bit tricky as that might break the rendering in mobile devices. I can do a test though. |
The old notation for VLANs in at least ifconfig and some config notations is |
So adding a column is not an option at all because that require touching the stylesheets of all themes. There are several rules for displays smaller than 800px or mobile devices to automatically hide some columns like the mac address, and they are based on the column number.
Trying to change the layout of the assoclist will certainly break the rendering on some devices/themes and would required thousands of regression tests. The text itself in the badge comes also via the stylesheet:
So it is Without changing the stylesheets of all themes we can modify only the values for ssid and ifname. So from my point of showing the vlan interface is still the best option. As said before you can name them as you like e.g. just the VLAN number, that would result in |
I did one more experiment using y zone badge element, which seems to render ok in all scenarios. The color is the same as the color of the network interface of the option What do you think? |
That would be great. I understand that in this scenario the vlans would also be defined via wifi-vlan sections and just the assignment is performed by the radius server instead of the wpa_psk file. So I would expect this work as well without any issues. The only limitation for now is dynamic_vlans, as the code does not update the ubus network,wireless objects with the vlans. |
111b92d
to
bcc8f93
Compare
Please don't include merges: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good except some small things, haven't run-tested it myself tho since I don't use VLAN's in my setup. You've mixed and matched var
and let
in the implemented code, for example in getVlans
, feel free to use ES6-syntax throughout if you'd like.
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Outdated
Show resolved
Hide resolved
bcc8f93
to
51edc92
Compare
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
Show resolved
Hide resolved
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
Outdated
Show resolved
Hide resolved
51edc92
to
534da17
Compare
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
Show resolved
Hide resolved
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Show resolved
Hide resolved
534da17
to
440667f
Compare
Hi @tobiaswaldvogel are you satisfied with the current state? If you're active in the forum, it would be nice to get this tested by dynamic vlan users. Those kinds of threads appear from time to time. |
Yes, I'm happy with the implementation now. Thanks for all the comments. |
This patch adds a badge to the associated wireless stations with the vlan id and name. It is displayed in the same color as the network, to which it is bridged, so the color corresponds to the color in the network configuration page. Signed-off-by: Tobias Waldvogel <[email protected]>
440667f
to
091bbb9
Compare
Signed-off-by: <[email protected]>
row (viagit commit --signoff
)<package name>: title
first line subject for packagespage.