Ejemplo n.º 1
0
 def setUp(self):
     super(L2GWTestCase, self).setUp()
     self.ctx = context.get_admin_context()
     self.mixin = l2gateway_db.L2GatewayMixin()
     self.gw_resource = constants.L2_GATEWAYS
     self.con_resource = constants.CONNECTION_RESOURCE_NAME
     self.plugin = importutils.import_object(DB_PLUGIN_KLASS)
Ejemplo n.º 2
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()
Ejemplo n.º 3
0
 def __init__(self, service_plugin, validator=None):
     super(L2gwRpcDriver, self).__init__(service_plugin, validator)
     self.ovsdb_callback = importutils.import_object(L2GW_CALLBACK, self)
     self.endpoints = ([
         self.ovsdb_callback,
         agents_db.AgentExtRpcCallback()
     ])
     self.conn = n_rpc.Connection()
     self.conn.create_consumer(topics.L2GATEWAY_PLUGIN,
                               self.endpoints,
                               fanout=False)
     self.conn.consume_in_threads()
     self.create_rpc_conn()
     LOG.debug("starting l2gateway agent scheduler")
     self.start_l2gateway_agent_scheduler()
     self.gateway_resource = constants.GATEWAY_RESOURCE_NAME
     self.l2gateway_db = l2_gw_db.L2GatewayMixin()
     self.type_manager = managers.TypeManager()
     self.port_dict_before_update = []
Ejemplo n.º 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()