'Schedule the network to new agents
:return: all agents associated with the network'

def _schedule_network(self, context, network, existing_agents):

    new_agents = (self.plugin.schedule_network(context, network) or [])
    if new_agents:
        for agent in new_agents:
            self._cast_message(context, 'network_create_end', {'network': {'id': network['id']}}, agent['host'])
    elif (not existing_agents):
        LOG.warning(_LW('Unable    to    schedule    network    %s:    no    agents    available;    will    retry    on    subsequent    port    and    subnet    creation    events.'), network['id'])
    return (new_agents + existing_agents)
