Use VM.get_mac_address() instead of kvm_utils.get_mac_ip_pair_from_dict().
Signed-off-by: Michael Goldish <[email protected]>
---
client/tests/kvm/kvm_vm.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 51e7cfa..f3e803b 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -930,11 +930,7 @@ class VM:
"%s" % mac)
return None
# Make sure the IP address is assigned to this guest
- nic_dicts = [kvm_utils.get_sub_dict(self.params, nic)
- for nic in nics]
- macs = [kvm_utils.get_mac_ip_pair_from_dict(dict)[0]
- for dict in nic_dicts]
- macs.append(mac)
+ macs = [self.get_mac_address(i) for i in range(len(nics))]
if not kvm_utils.verify_ip_address_ownership(ip, macs):
logging.debug("Could not verify MAC-IP address mapping: "
"%s ---> %s" % (mac, ip))
--
1.5.5.6
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html