'Called when a rule is added to or removed from a security_group.'

def trigger_rules_refresh(self, context, id):

    instances = objects.InstanceList.get_by_security_group_id(context, id)
    self._refresh_instance_security_rules(context, instances)
