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

Suggestion for improvement in switch menu #7303

Open
siegfriedhoellrigl1 opened this issue Oct 4, 2024 · 7 comments
Open

Suggestion for improvement in switch menu #7303

siegfriedhoellrigl1 opened this issue Oct 4, 2024 · 7 comments

Comments

@siegfriedhoellrigl1
Copy link

It would be very nice if we could have a "Comment" field for each port under :
Network - Switch menu.

@systemcrash
Copy link
Contributor

What fields do you see today?

@siegfriedhoellrigl1
Copy link
Author

Today I can only make comments for the VLANs.
Not for the physical Ports.

@siegfriedhoellrigl1 siegfriedhoellrigl1 changed the title Suggestion for improvement im switch menu Suggestion for improvement in switch menu Oct 4, 2024
@dannil
Copy link
Contributor

dannil commented Oct 4, 2024

Which device are you running? The Network -> Switch menu isn't present on targets which has migrated to DSA (Distributed Switch Architecture), so if we want to have a place to make comments like this regarding the physical ports it should probably not be there, see https://github.com/openwrt/luci/blob/master/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json#L11-L12

@siegfriedhoellrigl1
Copy link
Author

siegfriedhoellrigl1 commented Oct 7, 2024

At the moment I am using 3 TP-Links :
Archer A7 v5
TL-WDR4300 v1
TL-WR1043ND v2.
So you think, this is useless, because the switch menu will disappear in a short time, correct ?

@dannil
Copy link
Contributor

dannil commented Oct 7, 2024

At the moment I am using 3 TP-Links : Archer A7 v5 TL-WDR4300 v1 TL-WR1043ND v2. So you think, this is useless, because the switch menu will appear in a short time, correct ?

Maybe not useless, some devices will probably never get DSA and stay on swconfig, so for them the switch menu would still appear. But, if we're thinking of a general solution about being able to add comments to the physical ports, there maybe could be a nice solution that would incorporate both swconfig and DSA targets.

EDIT: I took a look at all your listed devices and they're all part of ath79 and that target still uses swconfig, which is why you can still see and use the switch menu component. For example, on my Netgear R7800 I can't see it since it's part of ipq806x, which has migrated to DSA.

Screenshot_48

@systemcrash
Copy link
Contributor

Admittedly, it's harmless to have a comment field, since it's only ever used in the GUI here. Lower level scripts aren't looking for it. DSA stuff is under Interfaces, right?

@dannil
Copy link
Contributor

dannil commented Oct 7, 2024

Admittedly, it's harmless to have a comment field, since it's only ever used in the GUI here. Lower level scripts aren't looking for it. DSA stuff is under Interfaces, right?

Yes, for example VLAN:s are configured as a new device under interfaces with DSA. If moving this to some "common" place (it would maybe even need a new UI) is too hard I'm fine with just adding a comment field as well.

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

No branches or pull requests

3 participants