From a75ddafd4f342b6c7964f0c5b152d0674144e33a Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Mon, 14 Aug 2017 09:04:09 +0200 Subject: CSIT-777: L2 keywords for MACIP ACL tests Change-Id: I678d87770405105555ccc30ce0003f704d7ca82e Signed-off-by: Jan Gelety --- resources/libraries/python/Classify.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/Classify.py b/resources/libraries/python/Classify.py index b89a20dd2d..a66994906b 100644 --- a/resources/libraries/python/Classify.py +++ b/resources/libraries/python/Classify.py @@ -410,8 +410,10 @@ class Classify(object): :type acl_idx: list :raises RuntimeError: If unable to set ACL list for the interface. """ - sw_if_index = Topology.get_interface_sw_index(node, interface) \ - if isinstance(interface, basestring) else interface + if isinstance(interface, basestring): + sw_if_index = Topology.get_interface_sw_index(node, interface) + else: + sw_if_index = interface acl_list = acl_type + ' ' + ' '.join(str(idx) for idx in acl_idx) \ if acl_idx else acl_type -- cgit 1.2.3-korg