On 04/19/2013 10:47 AM, Mike Qiu wrote:
From: Mike Qiu <[email protected]>

Nowadays, netdev_id has been a part of nic, and not
belongs to vm anymore.

At the sametime nic already has the key 'device_id', so
use nic.device_id is OK.

Signed-off-by: Mike Qiu <[email protected]>
---
  qemu/tests/nic_bonding.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/tests/nic_bonding.py b/qemu/tests/nic_bonding.py
index e194bda..cb2c3bd 100644
--- a/qemu/tests/nic_bonding.py
+++ b/qemu/tests/nic_bonding.py
@@ -60,7 +60,7 @@ def run_nic_bonding(test, params, env):
              transfer_thread.start()
              while transfer_thread.isAlive():
                  for vlan, nic in enumerate(vm.virtnet):
-                    device_id = vm.get_peer(vm.netdev_id[vlan])
+                    device_id = nic.device_id
Acked-by: Feng Yang <[email protected]>
                      if not device_id:
                          raise error.TestError("Could not find peer device for"
                                                " nic device %s" % nic)

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to