From 5b28bc8c52a5f7ef72f03d03806f61ba45ecc623 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Wed, 7 Aug 2019 11:14:15 +0200 Subject: FIX: macip_acl_rule needs binary mac data Change-Id: I0d26b2b31f0ce7497c91b4ae965f9cc45a66ef0c Signed-off-by: Jan Gelety --- resources/libraries/python/Classify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources') diff --git a/resources/libraries/python/Classify.py b/resources/libraries/python/Classify.py index 46785dd3c2..6f05a6157d 100644 --- a/resources/libraries/python/Classify.py +++ b/resources/libraries/python/Classify.py @@ -892,12 +892,12 @@ class Classify(object): groups = re.search(reg_ex_mac, rule) if groups: mac = groups.group(1).split(' ')[1].replace(':', '') - acl_rule["src_mac"] = unicode(mac) + acl_rule["src_mac"] = binascii.unhexlify(unicode(mac)) groups = re.search(reg_ex_mask, rule) if groups: mask = groups.group(1).split(' ')[1].replace(':', '') - acl_rule["src_mac_mask"] = unicode(mask) + acl_rule["src_mac_mask"] = binascii.unhexlify(unicode(mask)) groups = re.search(reg_ex_ip, rule) if groups: -- cgit 1.2.3-korg