gluon-core: add isolated option to gluon_wired proto
allow setting the isolated flag for all bridge interfaces
This commit is contained in:
parent
6ccd7c587b
commit
8c00051a61
@ -56,6 +56,12 @@ proto_gluon_wired_setup() {
|
||||
proto_init_update "$ifname" 1
|
||||
proto_send_update "$config"
|
||||
|
||||
if [ -d "/sys/devices/virtual/net/${ifname}/bridge" ]; then
|
||||
for brif in "/sys/class/net/${ifname}/brif/"* ; do
|
||||
echo 1 > "${brif}/isolated"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$vxlan" -eq 1 ]; then
|
||||
meshif="vx_$config"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user