'Skip bindings for which the agent is dead, but starting up.'

def _filter_bindings(self, context, bindings):

    checked_agents = {}
    for binding in bindings:
        try:
            agent_id = binding.dhcp_agent['id']
            if (agent_id not in checked_agents):
                if self.agent_starting_up(context, binding.dhcp_agent):
                    checked_agents[agent_id] = True
                    LOG.debug('Agent    %s    is    starting    up,    skipping', agent_id)
                else:
                    checked_agents[agent_id] = False
            if (not checked_agents[agent_id]):
                (yield binding)
        except exc.ObjectDeletedError:
            LOG.debug('binding    was    removed    concurrently,    skipping    it')
