Introduce RpcCallback class

This class will be used to create proper self.target with appropriate
API version once we migrate to oslo.messaging.

blueprint oslo-messaging

Change-Id: I1fb5eb0aaac0d115fd84630e58b333e695ad4f5f
This commit is contained in:
Ihar Hrachyshka
2014-05-30 17:03:00 +02:00
parent 382795ca1d
commit 13b4fed39c
34 changed files with 116 additions and 40 deletions

View File

@@ -17,6 +17,7 @@ import weakref
from oslo.config import cfg
from neutron.common import rpc_compat
from neutron.common import utils
from neutron.openstack.common import importutils
from neutron.openstack.common import log as logging
@@ -29,7 +30,7 @@ from stevedore import driver
LOG = logging.getLogger(__name__)
class Manager(periodic_task.PeriodicTasks):
class Manager(rpc_compat.RpcCallback, periodic_task.PeriodicTasks):
# Set RPC API version to 1.0 by default.
RPC_API_VERSION = '1.0'