'Get the srp capacity stats.
:param array: the array serial number
:param array_info: the array dict
:returns: total_capacity_gb
:returns: remaining_capacity_gb
:returns: subscribed_capacity_gb
:returns: array_reserve_percent
:returns: wlp_enabled'

def get_srp_pool_stats(self, array, array_info):

    total_capacity_gb = 0
    remaining_capacity_gb = 0
    allocated_capacity_gb = None
    subscribed_capacity_gb = 0
    array_reserve_percent = 0
    wlp_enabled = False
    srp = array_info['srpName']
    LOG.debug('Retrieving    capacity    for    srp    %(srpName)s    on    array    %(array)s.', {'srpName': srp, 'array': array})
    srp_details = self.rest.get_srp_by_name(array, srp)
    if (not srp_details):
        LOG.error('Unable    to    retrieve    srp    instance    of    %(srpName)s    on    array    %(array)s.', {'srpName': srp, 'array': array})
        return (0, 0, 0, 0, False)
    try:
        total_capacity_gb = srp_details['total_usable_cap_gb']
        allocated_capacity_gb = srp_details['total_allocated_cap_gb']
        subscribed_capacity_gb = srp_details['total_subscribed_cap_gb']
        remaining_capacity_gb = float((total_capacity_gb - allocated_capacity_gb))
        array_reserve_percent = srp_details['reserved_cap_percent']
    except KeyError:
        pass
    total_slo_capacity = self._get_remaining_slo_capacity_wlp(array, srp, array_info)
    if ((total_slo_capacity != (-1)) and allocated_capacity_gb):
        remaining_capacity_gb = float((total_slo_capacity - allocated_capacity_gb))
        wlp_enabled = True
    else:
        LOG.debug('Remaining    capacity    %(remaining_capacity_gb)s    GBs    is    determined    from    SRP    capacity    and    not    the    SLO    capacity.    Performance    may    not    be    what    you    expect.', {'remaining_capacity_gb': remaining_capacity_gb})
    return (total_capacity_gb, remaining_capacity_gb, subscribed_capacity_gb, array_reserve_percent, wlp_enabled)
