'This function gives list of comma separated consistency group uris.
:param project_name: Name of the project path
:param tenant: Name of the tenant
:returns: list of consistency group ids separated by comma'

def list(self, project_name, tenant):

    if (tenant is None):
        tenant = ''
    projobj = project.Project(self.ipaddr, self.port)
    fullproj = ((tenant + '/') + project_name)
    projuri = projobj.project_query(fullproj)
    (s, h) = common.service_json_request(self.ipaddr, self.port, 'GET', self.URI_CONSISTENCY_GROUPS_SEARCH.format(projuri), None)
    o = common.json_decode(s)
    if (not o):
        return []
    congroups = []
    resources = common.get_node_value(o, 'resource')
    for resource in resources:
        congroups.append(resource['id'])
    return congroups
