dsaconfig: introduce package for UCI configuration of VLAN filter rules
authorJo-Philipp Wich <jo@mein.io>
Tue, 7 Jul 2020 13:34:53 +0000 (15:34 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 6 Aug 2020 06:34:19 +0000 (08:34 +0200)
commit96b87196b0788d4cdaa81a49a65d198d9f6c90d2
tree0588181c2970b363428dc10c49bd83e7e74a15f3
parent4c73c34ec4215deb690bf03faea2a0fe725476f0
dsaconfig: introduce package for UCI configuration of VLAN filter rules

This package provides the necessary files to translate `config dsa_vlan`
and `config dsa_port` sections  of `/etc/config/network` into appropriate
bridge vlan filter rules.

The approach of the configuration is to bridge all DSA ports into a logical
bridge device, called "switch0" by default, and to set VLAN port membership,
tagging state and PVID as specified by UCI on each port and on the switch
bridge device itself, allowing logical interfaces to reference port VLAN
groups by using "switch0.N" as ifname, where N denotes the VLAN ID.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/network/config/dsaconfig/Makefile [new file with mode: 0644]
package/network/config/dsaconfig/files/dsaconfig.hotplug [new file with mode: 0644]
package/network/config/dsaconfig/files/dsaconfig.include [new file with mode: 0755]
package/network/config/dsaconfig/files/dsaconfig.sh [new file with mode: 0755]