diff options
author | Russell Bryant <rbryant@redhat.com> | 2013-04-10 00:59:03 +0200 |
---|---|---|
committer | Russell Bryant <rbryant@redhat.com> | 2013-04-24 15:02:56 -0400 |
commit | ddb3199318bf91e76b4c4e7330956ee581c91ccc (patch) | |
tree | 5e9789b714483481d6d1b68d94debb92ed42ab0c /nova/manager.py | |
parent | a025d7eee28026cb21cb0e732e6510d5d9b7d96f (diff) | |
download | nova-ddb3199318bf91e76b4c4e7330956ee581c91ccc.tar.gz |
Move get_backdoor_port to base rpc API.
Each service implemented the get_backdoor_port method individually. This
patch moves the implementation of this method to the base rpc API
instead, and removes the now unnecessary code from each of the services.
The server side method was left on all of the managers for rpc backwards
copmatibility. They can be removed on the next major rpc version bump
of those APIs.
Part of blueprint base-rpc-api.
Change-Id: Ia8838fafd80eb86a1c2d66f5e97370042d8d8c53
Diffstat (limited to 'nova/manager.py')
-rw-r--r-- | nova/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/manager.py b/nova/manager.py index f2a0636d1f..50f26a1b43 100644 --- a/nova/manager.py +++ b/nova/manager.py @@ -209,13 +209,13 @@ class Manager(base.Base): pluginmgr = pluginmanager.PluginManager('nova', self.__class__) pluginmgr.load_plugins() - def create_rpc_dispatcher(self): + def create_rpc_dispatcher(self, backdoor_port=None): '''Get the rpc dispatcher for this manager. If a manager would like to set an rpc API version, or support more than one class as the target of rpc messages, override this method. ''' - base_rpc = baserpc.BaseRPCAPI(self.service_name) + base_rpc = baserpc.BaseRPCAPI(self.service_name, backdoor_port) return rpc_dispatcher.RpcDispatcher([self, base_rpc]) def periodic_tasks(self, context, raise_on_error=False): |