'Returns a dict of all the backends the HostManager knows about.
Each of the consumable resources in BackendState are
populated with capabilities scheduler received from RPC.
For example:
{\'192.168.1.100\': BackendState(), ...}'

def get_all_backend_states(self, context):

    self._update_backend_state_map(context)
    all_pools = {}
    for (backend_key, state) in self.backend_state_map.items():
        for key in state.pools:
            pool = state.pools[key]
            pool_key = '.'.join([backend_key, pool.pool_name])
            all_pools[pool_key] = pool
    return all_pools.values()
