gluon icon indicating copy to clipboard operation
gluon copied to clipboard

Create interfaces for each "port" in /etc/config/gluon

Open lemoer opened this issue 2 years ago • 3 comments

This PR enables (migration-safe) role assignment for individual "lan" and "wan" interfaces. This is helpful especially on devices with multiple "lan" or "wan" interfaces (as they appear for devices with DSA support).

For interfaces in /lib/gluon/lan_ifname, we now create individual entries in /etc/config/gluon using a new introduced "/lan[0]", "/lan[1]", ... syntax. Before this PR, all interfaces were referenced as a single interface "/lan" in /etc/config/gluon.

The same is done for wan_ifname and single_ifname.

Migration strategy:

If new interfaces show up during gluon-reconfigure, the assigned roles of prior existing interfaces in the same category will be applied to the new interface.

(This PR is based on discussions in #2490)

lemoer avatar May 19 '22 20:05 lemoer

@NeoRaider What do you think?

lemoer avatar May 29 '22 09:05 lemoer

PR and commit contain "or" which should be "for"

rotanid avatar Jun 08 '22 00:06 rotanid

Thanks, fixed.

lemoer avatar Jun 09 '22 07:06 lemoer

As discussed above, I am closing this PR now.

lemoer avatar Oct 30 '22 19:10 lemoer