summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorSandy Walsh <sandy.walsh@rackspace.com>2011-07-06 08:14:58 -0700
committerSandy Walsh <sandy.walsh@rackspace.com>2011-07-06 08:14:58 -0700
commitf34952f27aa7acdb8bb617346aba281a86e918ae (patch)
treeea97c41525d1502d474c19335a0606e9ea196d44 /nova/compute
parent46690df48392c8967fc4f0ea05b5dba152fa400a (diff)
slightly more fleshed out call path
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py4
-rw-r--r--nova/compute/manager.py7
2 files changed, 7 insertions, 4 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index a17ab2e1c..a07ab4435 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -892,10 +892,10 @@ class API(base.Base):
instance_id, network_id)
@scheduler_api.reroute_compute("remove_fixed_ip")
- def remove_fixed_ip(self, context, instance_id, network_id):
+ def remove_fixed_ip(self, context, instance_id, network_id, ip):
"""Remove fixed_ip from specified network to given instance."""
self._cast_compute_message('remove_fixed_ip_from_instance', context,
- instance_id, network_id)
+ instance_id, network_id, ip)
#TODO(tr3buchet): how to run this in the correct zone?
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 0f761c939..ab5499209 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -840,16 +840,19 @@ class ComputeManager(manager.SchedulerDependentManager):
self.inject_network_info(context, instance_id)
self.reset_network(context, instance_id)
+
+ # TODO(sandy) pep8 until checked ...
@exception.wrap_exception
@checks_instance_lock
- def remove_fixed_ip_from_instance(self, context, instance_id, network_id):
+ def remove_fixed_ip_from_instance(self, context, instance_id, network_id,
+ ip):
"""Calls network_api to remove existing fixed_ip from instance
by injecting the altered network info and resetting
instance networking.
"""
self.network_api.remove_fixed_ip_from_instance(context, instance_id,
- network_id)
+ network_id, ip)
self.inject_network_info(context, instance_id)
self.reset_network(context, instance_id)