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:
madhanmellanox 2020-11-10 10:16:32 -08:00 committed by GitHub
parent f2b22b5cd1
commit b177ed9efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))