Skip to content

Commit 0a41fe3

Browse files
authored
Merge pull request #887 from b-ehlers/openvswitch
openvswitch - IP configuration for bridge interfaces
2 parents b0b0d6f + 0adce56 commit 0a41fe3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker/openvswitch/init.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ if [ $firstrun -ne 0 ]; then
4646
done
4747
fi
4848

49-
# activate br0..br3
50-
for intf in br0 br1 br2 br3; do
51-
ip link set dev $intf up
49+
# activate bridge interfaces
50+
ovs-vsctl --bare -f table --columns=name find interface type=internal | \
51+
while read -r intf; do
52+
ip link set dev "$intf" up
53+
ifup -f "$intf"
5254
done

0 commit comments

Comments
 (0)