aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2019-08-07 11:14:15 +0200
committerJan Gelety <jgelety@cisco.com>2019-08-07 12:55:34 +0200
commit5b28bc8c52a5f7ef72f03d03806f61ba45ecc623 (patch)
tree03fbbd48384983b033d61462989cf2edb7a3dedd /resources/libraries
parenta4c6a63b84f537b3ae660eab7d2a96ffb7740514 (diff)
FIX: macip_acl_rule needs binary mac data
Change-Id: I0d26b2b31f0ce7497c91b4ae965f9cc45a66ef0c Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/Classify.py4
1 files changed, 2 insertions, 2 deletions
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: