gluon-core: add isolated option to gluon_wired proto

allow setting the isolated flag for all bridge interfaces
This commit is contained in:
Julian Labus 2022-04-19 16:00:12 +02:00
parent 6ccd7c587b
commit 8c00051a61
No known key found for this signature in database
GPG Key ID: 8AF209F2C6B3572A

View File

@ -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"