def fq_name_to_uuid(self, obj_type, fq_name):
    fq_name_str = utils.encode_string(':'.join(fq_name))
    col_infos = self._cassandra_driver.get(datastore_api.OBJ_FQ_NAME_CF_NAME, obj_type, start=(fq_name_str + ':'), finish=(fq_name_str + ';'))
    if (not col_infos):
        raise NoIdError(('%s %s' % (obj_type, fq_name_str)))
    if (len(col_infos) > 1):
        raise VncError(('Multi match %s for %s' % (fq_name_str, obj_type)))
    fq_name_uuid = utils.decode_string(col_infos.popitem()[0]).split(':')
    if ((obj_type != 'route_target') and (fq_name_uuid[:(- 1)] != fq_name)):
        raise NoIdError(('%s %s' % (obj_type, fq_name_str)))
    return fq_name_uuid[(- 1)]
def fq_name_to_uuid(self, obj_type, fq_name):
    fq_name_str = utils.encode_string(':'.join(fq_name))
    col_infos = self._cassandra_driver.get(datastore_api.OBJ_FQ_NAME_CF_NAME, obj_type, start=(fq_name_str + ':'), finish=(fq_name_str + ';'))
    if (not col_infos):
        raise NoIdError(('%s %s' % (obj_type, fq_name_str)))
    if (len(col_infos) > 1):
        raise VncError(('Multi match %s for %s' % (fq_name_str, obj_type)))
    fq_name_uuid = utils.decode_string(col_infos.popitem()[0]).split(':')
    if ((obj_type != 'route_target') and (fq_name_uuid[:(- 1)] != fq_name)):
        raise NoIdError(('%s %s' % (obj_type, fq_name_str)))
    return fq_name_uuid[(- 1)]