def inconsistent_type_for_given_date(log_file_list, eid, date_list, logger):
    res = rc.is_coherent_for_given_date(log_file_list, eid, logger, date_list)
    if res['type_coherent'] == False:
        return 'negative_RLOCs'
    elif (res['locator_count_coherent'] and res['rloc_address_coherent']
          and res['te_coherent'] and res['auth_coherent']) == False:
        return 'RLOC1_RLOC2'
def inconsistent_type_for_given_date(log_file_list, eid, date_list, logger):
    res = rc.is_coherent_for_given_date(log_file_list, eid, logger, date_list)
    if res['type_coherent'] == False:
        return 'negative_RLOCs'
    elif (res['locator_count_coherent'] and res['rloc_address_coherent']
          and res['te_coherent'] and res['auth_coherent']) == False:
        return 'RLOC1_RLOC2'
def is_conherent_in_group(vp, eid_list):
    # 根据输入的 vp 和 eid_list 确定 log_file_list
    consistent_result_list = []
    for eid in eid_list:
        log_file_list = []
        for mr in MR_LIST:
            log_file_list.append(os.path.join(PLANET_CSV_DIR, vp,
                                              '{0}-EID-{1}-MR-{2}.log.csv'.format(LOG_PREFIX[vp], eid, mr)))
        consistent_result_list.append(rc.is_coherent_for_given_date(log_file_list, eid, logger)['coherent'])

    # 得到类似于 consistent_result_list = [True, True, False] 的list,如果其中有一个为False,则几组之间的比较结果肯定也为False
    # 只有全为True,则整体比较才可能是True
    if False in consistent_result_list:
        return False
    else:
        return True
def is_conherent_in_group(vp, eid_list):
    # 根据输入的 vp 和 eid_list 确定 log_file_list
    consistent_result_list = []
    for eid in eid_list:
        log_file_list = []
        for mr in MR_LIST:
            log_file_list.append(
                os.path.join(
                    PLANET_CSV_DIR, vp, '{0}-EID-{1}-MR-{2}.log.csv'.format(
                        LOG_PREFIX[vp], eid, mr)))
        consistent_result_list.append(
            rc.is_coherent_for_given_date(log_file_list, eid,
                                          logger)['coherent'])

    # 得到类似于 consistent_result_list = [True, True, False] 的list,如果其中有一个为False,则几组之间的比较结果肯定也为False
    # 只有全为True,则整体比较才可能是True
    if False in consistent_result_list:
        return False
    else:
        return True