def METHOD_NAME(label_selector, port, phase=None, sameport=True):
    ips = fetch_ips_list(label_selector, phase)
    if sameport:
        ips = ["{0}:{1}".format(ip, port) for ip in ips]
    else:
        srcips = ips
        ips = []
        port = int(port)
        for ip in srcips:
            ips.append("{0}:{1}".format(ip, port))
            port = port + 1
    return ",".join(ips)