import oslo_messaging
+from neutron.common import constants
from neutron.common import log
from neutron.common import rpc as n_rpc
from neutron.common import topics
class DVRServerRpcApi(object):
- """Agent-side RPC (stub) for agent-to-plugin interaction."""
+ """Agent-side RPC (stub) for agent-to-plugin interaction.
+
+ This class implements the client side of an rpc interface. The server side
+ can be found below: DVRServerRpcCallback. For more information on changing
+ rpc interfaces, see doc/source/devref/rpc_api.rst.
+ """
def __init__(self, topic):
- target = oslo_messaging.Target(topic=topic, version='1.0')
+ target = oslo_messaging.Target(topic=topic, version='1.0',
+ namespace=constants.RPC_NAMESPACE_DVR)
self.client = n_rpc.get_client(target)
@log.log
class DVRServerRpcCallback(object):
- """Plugin-side RPC (implementation) for agent-to-plugin interaction."""
+ """Plugin-side RPC (implementation) for agent-to-plugin interaction.
+
+ This class implements the server side of an rpc interface. The client side
+ can be found above: DVRServerRpcApi. For more information on changing rpc
+ interfaces, see doc/source/devref/rpc_api.rst.
+ """
# History
# 1.0 Initial version
- target = oslo_messaging.Target(version='1.0')
+ target = oslo_messaging.Target(version='1.0',
+ namespace=constants.RPC_NAMESPACE_DVR)
@property
def plugin(self):
RPC_NAMESPACE_DHCP_PLUGIN = 'dhcp'
# RPC interface for the metadata service to get info from the plugin side
RPC_NAMESPACE_METADATA = 'metadata'
-# RPC interface for plugin to agent security group API
+# RPC interface for agent to plugin security group API
RPC_NAMESPACE_SECGROUP = 'secgroup'
+# RPC interface for agent to plugin DVR api
+RPC_NAMESPACE_DVR = 'dvr'