Accomadating lower case ACL rules for Control Plane ACLs (#5748)
To make Control plane ACLs handle case insensitive ACL rules. Currently, it handles only upper case ACL rules. Co-authored-by: Madhan Babu <madhan@arc-build-server.mtr.labs.mlnx>
This commit is contained in:
parent
f2b22b5cd1
commit
b177ed9efd
@ -400,6 +400,7 @@ class ControlPlaneAclManager(daemon_base.DaemonBase):
|
||||
acl_rules = {}
|
||||
|
||||
for ((rule_table_name, rule_id), rule_props) in self._rules_db_info.items():
|
||||
rule_props = {k.upper(): v for k,v in rule_props.items()}
|
||||
if rule_table_name == table_name:
|
||||
if not rule_props:
|
||||
self.log_warning("rule_props for rule_id {} empty or null!".format(rule_id))
|
||||
|
Reference in New Issue
Block a user