示例#1
0
 def __init__(self, ovsdb_identifier=None):
     self.ovsdb_identifier = ovsdb_identifier
     self._setup_entry_table()
     self.agent_rpc = agent_api.L2gatewayAgentApi(topics.L2GATEWAY_AGENT,
                                                  cfg.CONF.host)
     self.l2gw_mixin = l2gateway_db.L2GatewayMixin()
     self.core_plugin = directory.get_plugin()
     self.tunnel_call = tunnel_calls.Tunnel_Calls()
示例#2
0
    def setUp(self):
        self.client_mock_p = mock.patch.object(n_rpc, 'get_client')
        self.client_mock = self.client_mock_p.start()
        self.context = mock.ANY
        self.topic = 'foo_topic'
        self.host = 'foo_host'

        self.plugin_rpc = agent_api.L2gatewayAgentApi(self.topic, self.host)
        super(TestL2GatewayAgentApi, self).setUp()
 def setUp(self):
     super(TestAgentScheduler, self).setUp()
     cfg.CONF.set_override('core_plugin',
                           "neutron.plugins.ml2.plugin.Ml2Plugin")
     self.plugin = FakePlugin()
     self.agent_rpc = agent_api.L2gatewayAgentApi(
         l2gw_topics.L2GATEWAY_AGENT, cfg.CONF.host)
     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(self.agent_rpc,
                                                             cfg.CONF)
     self.agentsch._plugin = self.plugin
     self.agentsch.context = self.context
     self.agentsch.agent_ext_support = True
     self.LOG = agent_scheduler.LOG
示例#4
0
 def __init__(self, ovsdb_identifier=None):
     self.ovsdb_identifier = ovsdb_identifier
     self._setup_entry_table()
     self.agent_rpc = agent_api.L2gatewayAgentApi(topics.L2GATEWAY_AGENT,
                                                  cfg.CONF.host)
     self.l2gw_mixin = l2gateway_db.L2GatewayMixin()
示例#5
0
 def create_rpc_conn(self):
     self.agent_rpc = agent_api.L2gatewayAgentApi(topics.L2GATEWAY_AGENT,
                                                  cfg.CONF.host)