diff options
author | Jan Gelety <jgelety@cisco.com> | 2019-08-07 11:14:15 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2019-08-09 12:33:50 +0000 |
commit | 29a03ce40f1f8a9d61fc1bc4665ef3a6236b61a5 (patch) | |
tree | 91a07d56f5abb258fa41b284f5cfccfefb693d04 /resources | |
parent | 051d26619bb495ec66a3e8214dabbef35c7176a6 (diff) |
FIX: macip_acl_rule needs binary mac data
Change-Id: I0d26b2b31f0ce7497c91b4ae965f9cc45a66ef0c
Signed-off-by: Jan Gelety <jgelety@cisco.com>
(cherry picked from commit 5b28bc8c52a5f7ef72f03d03806f61ba45ecc623)
Diffstat (limited to 'resources')
-rw-r--r-- | resources/libraries/python/Classify.py | 4 |
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: |