Exemplo n.º 1
0
 def setUp(self):
     super(TestAgentMonitor, self).setUp()
     cfg.CONF.set_default('agent_down_time', 10)
     cfg.CONF.set_override('core_plugin',
                           "neutron.plugins.ml2.plugin.Ml2Plugin")
     self.plugin = FakePlugin()
     self.context = neutron_context.get_admin_context()
     self.notifier = ovsvapp_rpc.OVSvAppAgentNotifyAPI(topics.AGENT)
     self.ovsvapp_monitor = ovsvapp_monitor.AgentMonitor()
     self.ovsvapp_monitor.context = self.context
     self.ovsvapp_monitor.plugin = self.plugin
     self.ovsvapp_monitor.notifier = self.notifier
     self.ovsvapp_monitor.agent_ext_support = True
     self.LOG = ovsvapp_monitor.LOG
 def _start_ovsvapp_monitor(self):
     self.ovsvapp_monitor = ovsvapp_monitor.AgentMonitor()
     self.ovsvapp_monitor.initialize_thread(self.notifier)