pkgs/openwrt/uci-config: create bridge devices for DSA
This commit is contained in:
parent
cbf7404027
commit
7605141e3e
|
@ -225,6 +225,7 @@ in
|
||||||
uci set network.br0.device='br0'
|
uci set network.br0.device='br0'
|
||||||
|
|
||||||
${concatMapStrings (net: ''
|
${concatMapStrings (net: ''
|
||||||
|
uci add network bridge-vlan
|
||||||
uci set network.@bridge-vlan[-1].device='br0'
|
uci set network.@bridge-vlan[-1].device='br0'
|
||||||
uci set network.@bridge-vlan[-1].vlan='${toString config.site.net.${net}.vlan}'
|
uci set network.@bridge-vlan[-1].vlan='${toString config.site.net.${net}.vlan}'
|
||||||
${concatMapStrings (port: ''
|
${concatMapStrings (port: ''
|
||||||
|
@ -283,6 +284,9 @@ in
|
||||||
uci set network.${net}=interface
|
uci set network.${net}=interface
|
||||||
${optionalString (iface.type == "bridge") ''
|
${optionalString (iface.type == "bridge") ''
|
||||||
uci set network.${net}.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
|
uci set network.${net}.proto=static
|
||||||
${if hasDSA
|
${if hasDSA
|
||||||
|
|
Loading…
Reference in New Issue
Block a user