code: def rule_update(self, rule_id, rule):
          
          if rule_id not in self.rules:
              LOG.error("Rule ID not present %s", rule_id)
              return
          self.rules[rule_id].update(rule)
docs: Update the rule.