pkgs/openwrt/uci-config: create bridge devices for DSA

This commit is contained in:
Astro 2023-12-20 23:37:27 +01:00
parent cbf7404027
commit 7605141e3e
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,7 @@ in
uci set network.br0.device='br0'
${concatMapStrings (net: ''
uci add network bridge-vlan
uci set network.@bridge-vlan[-1].device='br0'
uci set network.@bridge-vlan[-1].vlan='${toString config.site.net.${net}.vlan}'
${concatMapStrings (port: ''
@ -283,6 +284,9 @@ in
uci set network.${net}=interface
${optionalString (iface.type == "bridge") ''
uci set network.${net}.type=bridge
uci add network device
uci set network.@device[-1].name='${net}'
uci set network.@device[-1].type='bridge'
''}
uci set network.${net}.proto=static
${if hasDSA