Migrate cvp-sanity to Python3
* use print function from future
* convert dict keys and values to list
* do not use bunch imports
* fix requirements mismatch
Related: PROD-33849
Change-Id: Ifecc3a9dcdcfe3243f7dcf2c709a80e9a7c765a1
diff --git a/test_set/cvp-sanity/tests/test_duplicate_ips.py b/test_set/cvp-sanity/tests/test_duplicate_ips.py
index ba52f64..ca814c4 100644
--- a/test_set/cvp-sanity/tests/test_duplicate_ips.py
+++ b/test_set/cvp-sanity/tests/test_duplicate_ips.py
@@ -45,7 +45,7 @@
no_dups = (len(ipv4_list) == len(set(ipv4_list)))
if not no_dups:
ips_count = Counter(ipv4_list).most_common()
- dup_ips = filter(lambda x: x[1] > 1, ips_count)
+ dup_ips = [x for x in ips_count if x[1] > 1]
dup_ifaces = get_duplicate_ifaces(nodes, [v[0] for v in dup_ips])
msg = ("\nDuplicate IP addresses found:\n{}"