Index: client/tests/kvm/tests/physical_resources_check.py |
diff --git a/client/tests/kvm/tests/physical_resources_check.py b/client/tests/kvm/tests/physical_resources_check.py |
index 0f7cab31ba7a0daf81b8ddaa61cfa8f291093a86..682c7b21568024f681e8441020134d57e83aa768 100644 |
--- a/client/tests/kvm/tests/physical_resources_check.py |
+++ b/client/tests/kvm/tests/physical_resources_check.py |
@@ -123,9 +123,9 @@ def run_physical_resources_check(test, params, env): |
found_mac_addresses = re.findall("macaddr=(\S+)", o) |
logging.debug("Found MAC adresses: %s" % found_mac_addresses) |
- for nic_name in kvm_utils.get_sub_dict_names(params, "nics"): |
- nic_params = kvm_utils.get_sub_dict(params, nic_name) |
- mac, ip = kvm_utils.get_mac_ip_pair_from_dict(nic_params) |
+ num_nics = len(kvm_utils.get_sub_dict_names(params, "nics")) |
+ for nic_index in range(num_nics): |
+ mac = vm.get_mac_address(nic_index) |
if not string.lower(mac) in found_mac_addresses: |
n_fail += 1 |
logging.error("MAC address mismatch:") |