From e29fe40e0c98d6c3b619de7f99f0a8fb9e4a9d7b Mon Sep 17 00:00:00 2001 From: Dimitrios Markou Date: Wed, 9 May 2018 17:50:23 +0300 Subject: Add iteritems() when parsing dict in Python 2.x The SFC code still runs with Python 2.x version and that means that when a dictionary is getting parsed it should use the iteritems() function. Change-Id: I44f1c9cb916e7b76b277e376c8f524a99aa01f26 Signed-off-by: Dimitrios Markou --- sfc/lib/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfc') diff --git a/sfc/lib/cleanup.py b/sfc/lib/cleanup.py index ca802da3..9ee16c6e 100644 --- a/sfc/lib/cleanup.py +++ b/sfc/lib/cleanup.py @@ -19,7 +19,7 @@ def delete_odl_resources(odl_ip, odl_port, resource): def delete_odl_ietf_access_lists(odl_ip, odl_port): acl_list = odl_utils.get_odl_acl_list(odl_ip, odl_port) acl_types_names = odl_utils.odl_acl_types_names(acl_list) - for acl_type, acl_name in acl_types_names: + for acl_type, acl_name in acl_types_names.iteritems(): odl_utils.delete_odl_acl(odl_ip, odl_port, acl_type, acl_name) -- cgit 1.2.3-korg