From 8c00051a611dc0ff9b8d49b1572fb4e630a69383 Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Tue, 19 Apr 2022 16:00:12 +0200 Subject: [PATCH] gluon-core: add isolated option to gluon_wired proto allow setting the isolated flag for all bridge interfaces --- package/gluon-core/files/lib/netifd/proto/gluon_wired.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/gluon-core/files/lib/netifd/proto/gluon_wired.sh b/package/gluon-core/files/lib/netifd/proto/gluon_wired.sh index 796ee3e5..842db34e 100755 --- a/package/gluon-core/files/lib/netifd/proto/gluon_wired.sh +++ b/package/gluon-core/files/lib/netifd/proto/gluon_wired.sh @@ -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"