self.agent_notifiers[const.AGENT_TYPE_DHCP] = (
self._dhcp_agent_notifier
)
- self.callbacks = RestProxyCallbacks()
- self.dispatcher = self.callbacks.create_rpc_dispatcher()
- self.conn.create_consumer(self.topic, self.dispatcher,
+ self.endpoints = [RestProxyCallbacks(),
+ agents_db.AgentExtRpcCallback()]
+ self.conn.create_consumer(self.topic, self.endpoints,
fanout=False)
- # Consume from all consumers in a thread
- self.conn.consume_in_thread()
+ # Consume from all consumers in threads
+ self.conn.consume_in_threads()
+ @put_context_in_serverpool
def create_network(self, context, network):
"""Create a network.