Skip to contentSkip to conversation

KVM test: Test 802.1Q vlan of nic

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Dec 1, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Test 802.1Q vlan of nic

Test 802.1Q vlan of nic, config it by vconfig command.
1) Create two VMs
2) Setup guests in different vlan by vconfig and test communication by ping using hard-coded ip address
3) Setup guests in same vlan and test communication by ping
4) Recover the vlan config

The subnet of vlan can be setup in configure file.

3rd try:
* Instead of using lists of vms and sessions, just use vm1 and vm2 and session1 and session2 as it's clearer and we just need 2 vms.

---
 client/tests/kvm/kvm_tests.cfg.sample |   13 ++++++-
 client/tests/kvm/tests/vlan_tag.py    |   67 +++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+), 1 deletions(-)
 create mode 100644 client/tests/kvm/tests/vlan_tag.py
client/tests/kvm/kvm_tests.cfg.sample +12 -1
index feffb8d..5e15b30 100644
@@ -243,6 +243,17 @@ variants:
         kill_vm = yes
         kill_vm_gracefully = no
 
+    - vlan_tag:  install setup unattended_install
+        type = vlan_tag
+        # subnet should not be used by host
+        subnet = 192.168.123
+        vlans = "10 20"
+        nic_mode = tap
+        vms += " vm2"
+        extra_params_vm1 += " -snapshot"
+        extra_params_vm2 += " -snapshot"
+        kill_vm_gracefully_vm2 = no
+        address_index_vm2 = 1
 
 # NICs
 variants:
@@ -525,7 +536,7 @@ variants:
                             unattended_file = unattended/RHEL-3-series.ks
     # Windows section
     - @Windows:
-        no autotest linux_s3
+        no autotest linux_s3 vlan_tag
         shutdown_command = shutdown /s /t 0
         reboot_command = shutdown /r /t 0
         status_test_command = echo %errorlevel%
client/tests/kvm/tests/vlan_tag.py new file +67 -0

67 lines not on this page · raw message

Signature · 1 line
1.6.5.2