'Creates a consistency group from source.'

def create_consistencygroup_from_src(self, **kwargs):

    post_body = {}
    if kwargs.get('cgsnapshot_id'):
        post_body['cgsnapshot_id'] = kwargs.get('cgsnapshot_id')
    if kwargs.get('source_cgid'):
        post_body['source_cgid'] = kwargs.get('source_cgid')
    if kwargs.get('name'):
        post_body['name'] = kwargs.get('name')
    if kwargs.get('description'):
        post_body['description'] = kwargs.get('description')
    post_body = json.dumps({'consistencygroup-from-src': post_body})
    (resp, body) = self.post('consistencygroups/create_from_src', post_body)
    body = json.loads(body)
    self.expected_success(http_client.ACCEPTED, resp.status)
    return rest_client.ResponseBody(resp, body)
