'This method is used to get the pools list.
This method uses Load Balancer v2_0 API to achieve
the detailed list of the pools.
:returns: The list of the pool resources'

@logged
def list_pools_v2(self):

    pool_status = dict()
    resp = self.client.list_lbaas_pools()
    temp_pools = resp.get('pools')
    resources = []
    pool_listener_dict = self._get_pool_and_listener_ids(temp_pools)
    for (k, v) in pool_listener_dict.items():
        loadbalancer_id = self._get_loadbalancer_id_with_listener_id(v)
        status = self._get_pool_status(loadbalancer_id, v)
        for (k, v) in status.items():
            pool_status[k] = v
    for pool in temp_pools:
        pool_id = pool.get('id')
        pool['status'] = pool_status[pool_id]
        pool['lb_method'] = pool.get('lb_algorithm')
        pool['status_description'] = pool['status']
        pool['provider'] = ''
        pool['vip_id'] = ''
        pool['subnet_id'] = ''
        resources.append(pool)
    return resources
