Skip to content

luci-mod-status: add dynamic ethernet devices to port status view#8525

Open
KarstenH792 wants to merge 1 commit intoopenwrt:masterfrom
KarstenH792:luci-port-dynamic-devices
Open

luci-mod-status: add dynamic ethernet devices to port status view#8525
KarstenH792 wants to merge 1 commit intoopenwrt:masterfrom
KarstenH792:luci-port-dynamic-devices

Conversation

@KarstenH792
Copy link
Copy Markdown

Extend the port status view to include dynamically detected ethernet interfaces (e.g. USB adapters) in addition to board-defined ports.

Devices are derived from netifd's device map and merged into the existing port list if not already present. Loopback interfaces are excluded.

To ensure correct hotplug behaviour, the device list is filtered against the current kernel device list (/sys/class/net), preventing stale entries from being displayed after device removal.

Tested on:

  • GL.iNet GL-MT6000
  • OpenWrt 25.12.1
  • Apple USB ethernet adapters (100 Mbps and 2.5 Gbps)

Verified link state changes and device hotplug (add/remove).

@owlsy
Copy link
Copy Markdown
Contributor

owlsy commented Apr 5, 2026

Just as a heads up, the workflow test might fail the commit due to the Contributing Guidelines.

  • Commit subject I believe needs to be less than 60 characters, and have the subject prefixed with the component name (just like you did for the pull request title). Something like: luci-mod-status: add dynamic ethernet to port view.

  • Commit message must be broken up into multiple lines, and I believe less than 75 characters per line is the requirement. Pressing return to continue the sentence to a new line is what I've done to accomplish this.

  • For the commit Author and Signed-off-by, you cannot use a GitHub noreply email. If you are not comfortable using your personal email address, you could create an alternative email address for situations like this. Then, change your email address for these checks to pass.

Thought you might like to know in advance as these workflow tests can take some time for them to run.

@github-actions

This comment has been minimized.

@KarstenH792 KarstenH792 force-pushed the luci-port-dynamic-devices branch 2 times, most recently from e334022 to 1fcf0a1 Compare April 6, 2026 09:37
@KarstenH792
Copy link
Copy Markdown
Author

KarstenH792 commented Apr 6, 2026 via email

@github-actions

This comment has been minimized.

Extend port status view to include dynamically detected
ethernet interfaces (e.g. USB adapters).

Devices are merged into the existing port list if not
already present. Loopback interfaces are excluded.

Filter against /sys/class/net to avoid stale entries
after device removal.

Tested on:
- GL.iNet GL-MT6000
- OpenWrt 25.12.1
- Apple USB ethernet adapters (100 Mbps and 2.5 Gbps)

Verified link state changes and hotplug (add/remove).

Signed-off-by: Karsten Hoehn <[email protected]>
@KarstenH792 KarstenH792 force-pushed the luci-port-dynamic-devices branch from 1fcf0a1 to 67984da Compare April 7, 2026 13:19
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.

2 participants