bigswitch: drop usage of SecurityGroupServerRpcApiMixin
Drop usage of SecurityGroupServerRpcApiMixin in the bigswitch plugin. This is required to be able to eventually move this API into a messaging namespace. It needs to use its own messaging client instance, instead of a different one it gets after being used as a mixin. Part of blueprint rpc-docs-and-namespaces. Change-Id: Ib1c06d5b79c51fb63131efdf6ed83a7e85a7b820
This commit is contained in:
parent
8364c03d10
commit
f3505e873f
|
@ -71,11 +71,6 @@ class IVSBridge(ovs_lib.OVSBridge):
|
|||
return False
|
||||
|
||||
|
||||
class PluginApi(agent_rpc.PluginApi,
|
||||
sg_rpc.SecurityGroupServerRpcApiMixin):
|
||||
pass
|
||||
|
||||
|
||||
class SecurityGroupAgent(sg_rpc.SecurityGroupAgentRpcMixin):
|
||||
def __init__(self, context, plugin_rpc, root_helper):
|
||||
self.context = context
|
||||
|
@ -93,7 +88,7 @@ class RestProxyAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin):
|
|||
self.polling_interval = polling_interval
|
||||
self._setup_rpc()
|
||||
self.sg_agent = SecurityGroupAgent(self.context,
|
||||
self.plugin_rpc,
|
||||
self.sg_plugin_rpc,
|
||||
root_helper)
|
||||
if vs == 'ivs':
|
||||
self.int_br = IVSBridge(integ_br, root_helper)
|
||||
|
@ -102,7 +97,8 @@ class RestProxyAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin):
|
|||
|
||||
def _setup_rpc(self):
|
||||
self.topic = topics.AGENT
|
||||
self.plugin_rpc = PluginApi(topics.PLUGIN)
|
||||
self.plugin_rpc = agent_rpc.PluginApi(topics.PLUGIN)
|
||||
self.sg_plugin_rpc = sg_rpc.SecurityGroupServerRpcApi(topics.PLUGIN)
|
||||
self.context = q_context.get_admin_context_without_session()
|
||||
self.endpoints = [self]
|
||||
consumers = [[topics.PORT, topics.UPDATE],
|
||||
|
|
|
@ -21,7 +21,7 @@ from oslo.utils import importutils
|
|||
from neutron.tests import base
|
||||
|
||||
OVSBRIDGE = 'neutron.agent.linux.ovs_lib.OVSBridge'
|
||||
PLUGINAPI = 'neutron.plugins.bigswitch.agent.restproxy_agent.PluginApi'
|
||||
PLUGINAPI = 'neutron.agent.rpc.PluginApi'
|
||||
CONTEXT = 'neutron.context'
|
||||
CONSUMERCREATE = 'neutron.agent.rpc.create_consumers'
|
||||
SGRPC = 'neutron.agent.securitygroups_rpc'
|
||||
|
|
Loading…
Reference in New Issue