From: Russell Bryant Date: Fri, 16 Jan 2015 14:54:53 +0000 (-0500) Subject: ofagent: drop usage of SecurityGroupServerRpcApiMixin X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=010750960a68053ea622ead98c4df9314b2048d5;p=openstack-build%2Fneutron-build.git ofagent: drop usage of SecurityGroupServerRpcApiMixin Drop usage of SecurityGroupServerRpcApiMixin in the ofagent 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: I932072bd5ab40c58c0706264cf5087d4f5786fce --- diff --git a/neutron/plugins/ofagent/agent/ofa_neutron_agent.py b/neutron/plugins/ofagent/agent/ofa_neutron_agent.py index 2ea34e31f..693d4f835 100644 --- a/neutron/plugins/ofagent/agent/ofa_neutron_agent.py +++ b/neutron/plugins/ofagent/agent/ofa_neutron_agent.py @@ -123,11 +123,6 @@ class Bridge(flows.OFAgentIntegrationBridge, ovs_lib.OVSBridge): self.get_datapath(retry_max) -class OFAPluginApi(agent_rpc.PluginApi, - sg_rpc.SecurityGroupServerRpcApiMixin): - pass - - class OFASecurityGroupAgent(sg_rpc.SecurityGroupAgentRpcMixin): def __init__(self, context, plugin_rpc, root_helper): self.context = context @@ -259,7 +254,7 @@ class OFANeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin, # Security group agent support self.sg_agent = OFASecurityGroupAgent(self.context, - self.plugin_rpc, + self.sg_plugin_rpc, self.root_helper) # Initialize iteration counter self.iter_num = 0 @@ -287,7 +282,8 @@ class OFANeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin, mac = self.int_br.get_local_port_mac() self.agent_id = '%s%s' % ('ovs', (mac.replace(":", ""))) self.topic = topics.AGENT - self.plugin_rpc = OFAPluginApi(topics.PLUGIN) + self.plugin_rpc = agent_rpc.PluginApi(topics.PLUGIN) + self.sg_plugin_rpc = sg_rpc.SecurityGroupServerRpcApi(topics.PLUGIN) self.state_rpc = agent_rpc.PluginReportStateAPI(topics.PLUGIN) # RPC network init