We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 993df17 commit 2acfac7Copy full SHA for 2acfac7
files/image_config/caclmgrd/caclmgrd
@@ -183,7 +183,15 @@ class ControlPlaneAclManager(object):
183
184
for ((rule_table_name, rule_id), rule_props) in self._rules_db_info.iteritems():
185
if rule_table_name == table_name:
186
- acl_rules[rule_props["PRIORITY"]] = rule_props
+ if not rule_props:
187
+ log_warning("rule_props for rule_id {} empty or null!".format(rule_id))
188
+ continue
189
+
190
+ try:
191
+ acl_rules[rule_props["PRIORITY"]] = rule_props
192
+ except KeyError:
193
+ log_error("rule_props for rule_id {} does not have key 'PRIORITY'!".format(rule_id))
194
195
196
# If we haven't determined the IP version for this ACL table yet,
197
# try to do it now. We determine heuristically based on whether the
0 commit comments