Skip to content

Commit

Permalink
Merge pull request #3883 from yanglei-rh/KVMAUTOMA-1556
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulYuuu authored Nov 30, 2023
2 parents 5fb3e30 + 32c7dd5 commit 3b7cf22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qemu/tests/bridge_qinq.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from virttest import utils_test
from virttest import remote

from virttest.utils_version import VersionInterval


@error_context.context_aware
def run(test, params, env):
Expand Down Expand Up @@ -289,6 +291,11 @@ def compare_host_guest_md5sum():
vlan_tag="vlan 10,",
vlan_tag2="vlan 20,")

# configure the outer VLAN MTU to 1504 on qemu-8.1
if vm.devices.qemu_version in VersionInterval('[8.1.0,)') and \
params.get("nic_model") == "e1000e":
session.cmd("ip link set %s mtu 1504" % nic_name)

# scp file to guest with L2 vlan tag
cmd = "dd if=/dev/zero of=%s bs=1M count=%d" % (host_path, file_size)
error_context.context(
Expand Down

0 comments on commit 3b7cf22

Please sign in to comment.