Index: client/tests/kvm/kvm_vm.py |
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py |
index 135d08ebd8270040bfeb50aa4e5ae1132ccecfbc..bdc9aabcff2ae65f6bf6116ee54feb5923129dd1 100755 |
--- a/client/tests/kvm/kvm_vm.py |
+++ b/client/tests/kvm/kvm_vm.py |
@@ -235,10 +235,9 @@ class VM: |
return cmd |
def add_nic(help, vlan, model=None, mac=None, netdev_id=None): |
+ cmd = " -net nic,vlan=%d" % vlan |
if has_option(help, "netdev"): |
- cmd = " -net nic,netdev=%s" % netdev_id |
- else: |
- cmd = " -net nic,vlan=%d" % vlan |
+ cmd +=",netdev=%s" % netdev_id |
if model: cmd += ",model=%s" % model |
if mac: cmd += ",macaddr='%s'" % mac |
return cmd |