def METHOD_NAME(
    satellite_version, major_version_change, y_version, upgrade_stage="pre-upgrade"
):
    """
    This function is used to update the details of zstream upgrade and
    next version upgrade
    :param str satellite_version: satellite version would be like 6.5.0, 6.6.0, 6.7.0
    :param bool major_version_change: For major version upgrade like 6.8 to 7.0, 7.0
    to 8.0 etc, then major_version_change would be True.
    :param str y_version: y_version change depends on major_version_change
    :param str upgrade_stage: upgrade stage would be pre or post.
    :return: zstream_version, next_version
    """
    major_version = satellite_version.split('.')[0:1]
    if major_version_change:
        major_version = [int(major_version[0]) + 1].append(y_version)
    else:
        y_version = int(satellite_version.split('.')[0:2][-1])
    zstream_version = ''
    if upgrade_stage == "pre-upgrade":
        major_version.append(str(y_version + 1))
        zstream_version = ".".join(satellite_version.split('.')[0:2]) + ".z"
    else:
        major_version.append(str(y_version))
        major_version.append("z")
    next_version = ".".join(major_version)
    return zstream_version, next_version