Beispiel #1
0
 def setUp(self):
     super(TestAgentScheduler, self).setUp()
     cfg.CONF.set_override('core_plugin',
                           "neutron.plugins.ml2.plugin.Ml2Plugin")
     self.plugin = FakePlugin()
     self.context = neutron_context.get_admin_context()
     cfg.CONF.set_override('agent_down_time', 10)
     cfg.CONF.set_override('periodic_monitoring_interval', 5)
     self.agentsch = agent_scheduler.L2GatewayAgentScheduler(cfg.CONF)
     self.agentsch._plugin = self.plugin
     self.agentsch.context = self.context
     self.agentsch.agent_ext_support = True
     self.LOG = agent_scheduler.LOG
Beispiel #2
0
 def start_l2gateway_agent_scheduler(self):
     """Start l2gateway agent scheduler thread."""
     self.agentscheduler = agent_scheduler.L2GatewayAgentScheduler()
     self.agentscheduler.initialize_thread()