Skip to content

Commit f5846b2

Browse files
committed
Add case to test 802.1q vlan in guest
1. VIRT-95961 [virtual network][virtual-nic-device] Test 802.1q vlan in guest 2. All the function doc string from Gemini CLI Signed-off-by: Lei Yang <[email protected]>
1 parent 794b8d1 commit f5846b2

File tree

2 files changed

+423
-0
lines changed
  • libvirt/tests

2 files changed

+423
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
- virtual_network.qemu_test.vlan: image_copy
2+
type = vlan
3+
# subnet should not be used by host
4+
create_vm_libvirt = yes
5+
kill_vm_libvirt = yes
6+
master_images_clone = img1
7+
main_vm = avocado-vt-vm1
8+
subnet = "192.168"
9+
vlan_num = 5
10+
file_size = 10
11+
maximal = 4094
12+
listen_cmd = "nc -l %s > %s"
13+
send_cmd = "nc %s %s < %s"
14+
vms += " vm2"
15+
cmd_type = ip
16+
stop_firewall_cmd = "systemctl stop firewalld || service firewalld stop"
17+
load_8021q_cmd = "modprobe 8021q"
18+
msg_pattern = '8021q: Invalid VLAN id'
19+
RHEL.7, ALT.7, RHEL.6:
20+
msg_pattern = 'RTNETLINK answers: Numerical result out of range'
21+
Windows:
22+
# two windows VM, need more time to boot and login
23+
only virtio_net
24+
login_timeout = 720
25+
vlan_num = 1
26+
win_vlan_id = 900
27+
cdroms += " virtio"
28+
driver_verifier = netkvm
29+
set_vlan_cmd = powershell -command "Set-NetAdapter -Name '%s' -VlanID ${win_vlan_id} -Confirm:$False"
30+
Win2016, Win2019, Win8..1, Win2012..r2:
31+
driver_verifier += " ndis"
32+
variants:
33+
- @vlan_connective_test:
34+
- vlan_scalability_test:
35+
only Linux
36+
do_maximal_test = yes

0 commit comments

Comments
 (0)