summaryrefslogtreecommitdiff
path: root/nova/network/api.py
diff options
context:
space:
mode:
authorMatthew Treinish <treinish@linux.vnet.ibm.com>2012-12-04 11:10:51 -0500
committerMatthew Treinish <treinish@linux.vnet.ibm.com>2012-12-05 10:57:01 -0500
commita7551a20b2f54daf952097a93126c554b91098cc (patch)
treec80a906a306af3293c5b6d7225a2ed1819b7da65 /nova/network/api.py
parentf35427693091bfca336207f2135f12b91348febb (diff)
downloadnova-a7551a20b2f54daf952097a93126c554b91098cc.tar.gz
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
Diffstat (limited to 'nova/network/api.py')
-rw-r--r--nova/network/api.py4
1 files changed, 2 insertions, 2 deletions
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