summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-07-13 08:34:05 +0000
committerGerrit Code Review <review@openstack.org>2012-07-13 08:34:05 +0000
commit2a8403129e85a4e5663b3200c6d0ef2a02bfc717 (patch)
tree273171025c9e56af149eb9d6c889bc74239cb9f4
parent0fee7cb7e9cab76db4ebda663ece190ef31c251b (diff)
parent34f9d7e974d0e09c723e0a04ed6eecd1b482e77d (diff)
downloadnova-2a8403129e85a4e5663b3200c6d0ef2a02bfc717.tar.gz
nova-2a8403129e85a4e5663b3200c6d0ef2a02bfc717.tar.xz
nova-2a8403129e85a4e5663b3200c6d0ef2a02bfc717.zip
Merge "Convert remaining network API casts to calls"
-rw-r--r--nova/network/api.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/network/api.py b/nova/network/api.py
index 6a5c151da..afedb3d90 100644
--- a/nova/network/api.py
+++ b/nova/network/api.py
@@ -175,7 +175,7 @@ class API(base.Base):
def release_floating_ip(self, context, address,
affect_auto_assigned=False):
"""Removes floating ip with address from a project. (deallocates)"""
- rpc.cast(context,
+ rpc.call(context,
FLAGS.network_topic,
{'method': 'deallocate_floating_ip',
'args': {'address': address,
@@ -230,7 +230,7 @@ class API(base.Base):
args['instance_id'] = instance['id']
args['project_id'] = instance['project_id']
args['host'] = instance['host']
- rpc.cast(context, FLAGS.network_topic,
+ rpc.call(context, FLAGS.network_topic,
{'method': 'deallocate_for_instance',
'args': args})
@@ -239,7 +239,7 @@ class API(base.Base):
args = {'instance_id': instance['id'],
'host': instance['host'],
'network_id': network_id}
- rpc.cast(context, FLAGS.network_topic,
+ rpc.call(context, FLAGS.network_topic,
{'method': 'add_fixed_ip_to_instance',
'args': args})
@@ -249,13 +249,13 @@ class API(base.Base):
args = {'instance_id': instance['id'],
'host': instance['host'],
'address': address}
- rpc.cast(context, FLAGS.network_topic,
+ rpc.call(context, FLAGS.network_topic,
{'method': 'remove_fixed_ip_from_instance',
'args': args})
def add_network_to_project(self, context, project_id):
"""Force adds another network to a project."""
- rpc.cast(context, FLAGS.network_topic,
+ rpc.call(context, FLAGS.network_topic,
{'method': 'add_network_to_project',
'args': {'project_id': project_id}})