'Method is used to list the members info.
This method is used to get the detailed list of the members
with Load Balancer v2_0 API
:returns: The list of the member resources'

@logged
def list_members_v2(self):

    resources = []
    pools = self.client.list_lbaas_pools().get('pools')
    for pool in pools:
        pool_id = pool.get('id')
        listeners = pool.get('listeners')
        if (not listeners):
            continue
        listener_id = listeners[0].get('id')
        lb_id = self._get_loadbalancer_id_with_listener_id(listener_id)
        status = self._get_member_status(lb_id, [listener_id, pool_id])
        resp = self.client.list_lbaas_members(pool_id)
        temp_members = resp.get('members')
        for member in temp_members:
            member['status'] = status[member.get('id')]
            member['pool_id'] = pool_id
            member['status_description'] = member['status']
            resources.append(member)
    return resources
