diff options
-rw-r--r-- | nova/network/api.py | 10 |
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}}) |