We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6babd1c commit de31184Copy full SHA for de31184
acl_loader/main.py
@@ -474,8 +474,11 @@ def deny_rule(self, table_name):
474
rule_props = {}
475
rule_data = {(table_name, "DEFAULT_RULE"): rule_props}
476
rule_props["PRIORITY"] = str(self.min_priority)
477
- rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV4"])
478
rule_props["PACKET_ACTION"] = "DROP"
+ if 'v6' in table_name.lower():
479
+ rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV6"])
480
+ else:
481
+ rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV4"])
482
return rule_data
483
484
def convert_rules(self):
0 commit comments