Blame 0014-TEST-50-MULTINIC-fix-bridge-test.patch

Harald Hoyer 3763a8
From 29fd71b23dc1aca1301510bf68ee8e1a5e336496 Mon Sep 17 00:00:00 2001
Harald Hoyer 3763a8
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 3763a8
Date: Wed, 26 Apr 2017 09:39:20 +0200
Harald Hoyer 3763a8
Subject: [PATCH] TEST-50-MULTINIC: fix bridge test
Harald Hoyer 3763a8
Harald Hoyer 3763a8
Bridge with nics on a different vlan, otherwise we will see:
Harald Hoyer 3763a8
Harald Hoyer 3763a8
[  117.750825] bridge0: received packet on ens5 with own address as source address
Harald Hoyer 3763a8
---
Harald Hoyer 3763a8
 test/TEST-50-MULTINIC/test.sh | 12 +++++++-----
Harald Hoyer 3763a8
 1 file changed, 7 insertions(+), 5 deletions(-)
Harald Hoyer 3763a8
Harald Hoyer 3763a8
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 3763a8
index 84792fe6..917272d8 100755
Harald Hoyer 3763a8
--- a/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 3763a8
+++ b/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 3763a8
@@ -51,10 +51,12 @@ client_test() {
Harald Hoyer 3763a8
     fi
Harald Hoyer 3763a8
 
Harald Hoyer 3763a8
     $testdir/run-qemu -drive format=raw,index=0,media=disk,file="$TESTDIR"/client.img -m 512M  -smp 2 -nographic \
Harald Hoyer 3763a8
-        -net socket,connect=127.0.0.1:12350 \
Harald Hoyer 3763a8
-        -net nic,macaddr=52:54:00:12:34:$mac1,model=e1000 \
Harald Hoyer 3763a8
-        -net nic,macaddr=52:54:00:12:34:$mac2,model=e1000 \
Harald Hoyer 3763a8
-        -net nic,macaddr=52:54:00:12:34:$mac3,model=e1000 \
Harald Hoyer 3763a8
+        -net socket,vlan=0,connect=127.0.0.1:12350 \
Harald Hoyer 3763a8
+        -net nic,vlan=0,macaddr=52:54:00:12:34:$mac1,model=e1000 \
Harald Hoyer 3763a8
+        -net nic,vlan=0,macaddr=52:54:00:12:34:$mac2,model=e1000 \
Harald Hoyer 3763a8
+        -net nic,vlan=0,macaddr=52:54:00:12:34:$mac3,model=e1000 \
Harald Hoyer 3763a8
+        -net nic,vlan=1,macaddr=52:54:00:12:34:98,model=e1000 \
Harald Hoyer 3763a8
+        -net nic,vlan=2,macaddr=52:54:00:12:34:99,model=e1000 \
Harald Hoyer 3763a8
         -watchdog i6300esb -watchdog-action poweroff \
Harald Hoyer 3763a8
         -no-reboot \
Harald Hoyer 3763a8
         -append "panic=1 rd.shell=0 $cmdline $DEBUGFAIL rd.retry=5 ro console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
Harald Hoyer 3763a8
@@ -146,7 +148,7 @@ test_client() {
Harald Hoyer 3763a8
 
Harald Hoyer 3763a8
     client_test "MULTINIC bridging" \
Harald Hoyer 3763a8
         00 01 02 \
Harald Hoyer 3763a8
-        "root=nfs:192.168.50.1:/nfs/client ip=bridge0:dhcp  bridge=bridge0:ens3,ens4,ens5" \
Harald Hoyer 3763a8
+        "root=nfs:192.168.50.1:/nfs/client ip=bridge0:dhcp  bridge=bridge0:ens3,ens6,ens7" \
Harald Hoyer 3763a8
         "bridge0" || return 1
Harald Hoyer 3763a8
     return 0
Harald Hoyer 3763a8
 }