Enforce reception of multicast traffic on virbr[1|2]
This is needed to let the ha/both-active test pass.
This commit is contained in:
committed by
Tobias Brunner
parent
41943e9c1b
commit
f3db566983
@@ -9,6 +9,7 @@ CONFDIR=$DIR/config/kvm
|
|||||||
KNLSRC=$BUILDDIR/$KERNEL/arch/x86/boot/bzImage
|
KNLSRC=$BUILDDIR/$KERNEL/arch/x86/boot/bzImage
|
||||||
KNLTARGET=/var/run/kvm-swan-kernel
|
KNLTARGET=/var/run/kvm-swan-kernel
|
||||||
HOSTFSTARGET=/var/run/kvm-swan-hostfs
|
HOSTFSTARGET=/var/run/kvm-swan-hostfs
|
||||||
|
MCASTBRS="virbr1 virbr2"
|
||||||
|
|
||||||
echo "Starting test environment"
|
echo "Starting test environment"
|
||||||
|
|
||||||
@@ -35,3 +36,13 @@ do
|
|||||||
log_action "Guest $host"
|
log_action "Guest $host"
|
||||||
execute "virsh create $CONFDIR/$host.xml"
|
execute "virsh create $CONFDIR/$host.xml"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Enforce reception of multicast traffic on bridges
|
||||||
|
for br in $MCASTBRS
|
||||||
|
do
|
||||||
|
cd /sys/devices/virtual/net/$br/brif
|
||||||
|
for vnet in `find . -name "vnet*"`
|
||||||
|
do
|
||||||
|
echo 2 > $vnet/multicast_router
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user