Skip to contentSkip to conversation

kvm-autotest: kvm_vm.py get values from nic_params dict

PATCH New Ryan Harper 1 participant 1 message Apr 3, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-autotest: kvm_vm.py get values from nic_params dict

Looks like cut-n-paste error. We should be fetching values from nic_params, not image params.

Signature · 12 lines
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
[email protected]


diffstat output:
 kvm_vm.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Signed-off-by: Ryan Harper <[email protected]>
---
client/tests/kvm_runtest_2/kvm_vm.py +2 -2
index 2e6599e..5136a26 100644
@@ -189,8 +189,8 @@ class VM:
         for nic_name in kvm_utils.get_sub_dict_names(params, "nics"):
             nic_params = kvm_utils.get_sub_dict(params, nic_name)
             qemu_cmd += " -net nic,vlan=%d" % vlan
-            if image_params.get("nic_model"):
-                qemu_cmd += ",model=%s" % image_params.get("nic_model")
+            if nic_params.get("nic_model"):
+                qemu_cmd += ",model=%s" % nic_params.get("nic_model")
             qemu_cmd += " -net user,vlan=%d" % vlan
             vlan += 1