From a7551a20b2f54daf952097a93126c554b91098cc Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 4 Dec 2012 11:10:51 -0500 Subject: Add host to get_backdoor_port() for network api. get_backdoor_port() in the network api doesn't have a host parameter. However, if there are more than one network service running on multiple hosts then you will only be able to get the backdoor port for one of those services. So the host field is needed to target the rpc call. Also, the RPC_API_VERSION number was incremented because this was overlooked in change id: I95fdb5ca9bce9f3128300e3b5601fb2b2fc5e82f Change-Id: I90357548c0483559982469b7c26d40511755924e --- nova/network/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/network/api.py') diff --git a/nova/network/api.py b/nova/network/api.py index bd12e73c0e..b61de3cf61 100644 --- a/nova/network/api.py +++ b/nova/network/api.py @@ -123,8 +123,8 @@ class API(base.Base): return self.network_rpcapi.get_floating_ips_by_fixed_address(context, fixed_address) - def get_backdoor_port(self, context): - return self.network_rpcapi.get_backdoor_port(context) + def get_backdoor_port(self, context, host): + return self.network_rpcapi.get_backdoor_port(context, host) def get_instance_id_by_floating_address(self, context, address): # NOTE(tr3buchet): i hate this -- cgit v1.2.1