summaryrefslogtreecommitdiff
path: root/testing/start-testing
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2013-04-26 14:57:47 +0200
committerYves-Alexis Perez <corsac@debian.org>2013-04-26 14:57:47 +0200
commit10e5fb2b9b2f27c83b3e5a1d048b158d5cf42a43 (patch)
treebf1d05a2e37dbd1911b86fcc026fbe49b0239c71 /testing/start-testing
parent7585facf05d927eb6df3929ce09ed5e60d905437 (diff)
downloadvyos-strongswan-10e5fb2b9b2f27c83b3e5a1d048b158d5cf42a43.tar.gz
vyos-strongswan-10e5fb2b9b2f27c83b3e5a1d048b158d5cf42a43.zip
Imported Upstream version 5.0.3
Diffstat (limited to 'testing/start-testing')
-rwxr-xr-xtesting/start-testing9
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/start-testing b/testing/start-testing
index 183729423..45cf4c9b9 100755
--- a/testing/start-testing
+++ b/testing/start-testing
@@ -9,13 +9,13 @@ CONFDIR=$DIR/config/kvm
KNLSRC=$BUILDDIR/$KERNEL/arch/x86/boot/bzImage
KNLTARGET=/var/run/kvm-swan-kernel
HOSTFSTARGET=/var/run/kvm-swan-hostfs
-MCASTBRS="virbr1 virbr2"
+MCASTBRS="test-br0 test-br1"
echo "Starting test environment"
[ `id -u` -eq 0 ] || die "You must be root to run $0"
-check_commands virsh
+check_commands kvm virsh
log_action "Deploying kernel $KERNEL"
execute "ln -fs $KNLSRC $KNLTARGET"
@@ -41,8 +41,11 @@ done
for br in $MCASTBRS
do
cd /sys/devices/virtual/net/$br/brif
- for vnet in `find . -name "vnet*"`
+ for vnet in `find . -name "*eth?"`
do
echo 2 > $vnet/multicast_router
done
done
+
+echo 0x08 > /sys/devices/virtual/net/test-br0/bridge/group_fwd_mask
+