def isExistingSameDevice(config_db, deviceName, table):
    """Check if the given device name is conflict with existing device"""
    settings = config_db.get_table(table)
    for key,values in settings.items():
        if "remote_device" in values and deviceName == values["remote_device"]:
            return True

    return False