Skip to content

Commit

Permalink
[acl_loader] Fix default DENY rule for V6 dataplane ACLs (sonic-net#1281
Browse files Browse the repository at this point in the history
)

Signed-off-by: Danny Allen <[email protected]>
  • Loading branch information
daall authored Dec 10, 2020
1 parent 57a0b41 commit af1bb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def deny_rule(self, table_name):
rule_props["PRIORITY"] = str(self.min_priority)
rule_props["PACKET_ACTION"] = "DROP"
if 'v6' in table_name.lower():
rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV6"])
rule_props["IP_TYPE"] = "IPV6ANY" # ETHERTYPE is not supported for DATAACLV6
else:
rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV4"])
return rule_data
Expand Down

0 comments on commit af1bb47

Please sign in to comment.