aboutsummaryrefslogtreecommitdiffstats
path: root/sfc
diff options
context:
space:
mode:
authorDimitrios Markou <mardim@intracom-telecom.com>2018-05-09 17:50:23 +0300
committerDimitrios Markou <mardim@intracom-telecom.com>2018-05-09 14:55:52 +0000
commite29fe40e0c98d6c3b619de7f99f0a8fb9e4a9d7b (patch)
treec5d84e3ac7a25d45050fd69880d14f7d5bacd245 /sfc
parent5f8eb6bf01ca3ef240cfcdee297327b21b33f35a (diff)
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 <mardim@intracom-telecom.com>
Diffstat (limited to 'sfc')
-rw-r--r--sfc/lib/cleanup.py2
1 files changed, 1 insertions, 1 deletions
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)