[201911][caclmgrd] Accomadating case insensitive rule props for Control plane ACLs (#5918)

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-13 11:41:05 -08:00 committed by GitHub
parent c1feae8a80
commit a79c3c219d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,6 +396,7 @@ class ControlPlaneAclManager(daemon_base.DaemonBase):
acl_rules = {}
for ((rule_table_name, rule_id), rule_props) in self._rules_db_info.iteritems():
rule_props = {k.upper(): v for k,v in rule_props.iteritems()}
if rule_table_name == table_name:
if not rule_props:
self.log_warning("rule_props for rule_id {} empty or null!".format(rule_id))