Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
051d266
)
FIX: macip_acl_rule needs binary mac data
90/21190/1
author
Jan Gelety
<jgelety@cisco.com>
Wed, 7 Aug 2019 09:14:15 +0000
(11:14 +0200)
committer
Jan Gelety
<jgelety@cisco.com>
Fri, 9 Aug 2019 12:33:50 +0000
(12:33 +0000)
Change-Id: I0d26b2b31f0ce7497c91b4ae965f9cc45a66ef0c
Signed-off-by: Jan Gelety <jgelety@cisco.com>
(cherry picked from commit
5b28bc8c52a5f7ef72f03d03806f61ba45ecc623
)
resources/libraries/python/Classify.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/Classify.py
b/resources/libraries/python/Classify.py
index
46785dd
..
6f05a61
100644
(file)
--- 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: