diff mbox

[KVM-AUTOTEST] KVM test: VM.create(): fix netdev_id generation

Message ID 1288172250-4304-2-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Oct. 27, 2010, 9:37 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 02d7dff..a65e2e9 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -581,6 +581,8 @@  class VM:
                 guest_port = int(redir_params.get("guest_port"))
                 self.redirs[guest_port] = host_ports[i]
 
+            # Generate netdev IDs for all NICs
+            self.netdev_id = []
             for nic in kvm_utils.get_sub_dict_names(params, "nics"):
                 self.netdev_id.append(kvm_utils.generate_random_id())