summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrey Morris <treyemorris@gmail.com>2012-12-11 17:30:07 -0600
committerTrey Morris <treyemorris@gmail.com>2012-12-11 17:34:02 -0600
commit342dbd361d5d90823758e78d865e9be6bb711bd8 (patch)
tree14894fec07ad4f917ee52c834a09f3551db0ec24
parent135b46407a7c837c0a7eb8b69443390c03372669 (diff)
add and removed fixed ip now refresh cache
fixed bug 1089154 Change-Id: I007c9f1a31321e613e7dc2afb8ec090b608ec2df
-rw-r--r--nova/network/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/network/api.py b/nova/network/api.py
index b61de3cf6..db8b87268 100644
--- a/nova/network/api.py
+++ b/nova/network/api.py
@@ -210,6 +210,7 @@ class API(base.Base):
args['host'] = instance['host']
self.network_rpcapi.deallocate_for_instance(context, **args)
+ @refresh_cache
def add_fixed_ip_to_instance(self, context, instance, network_id):
"""Adds a fixed ip to instance from specified network."""
args = {'instance_id': instance['id'],
@@ -217,6 +218,7 @@ class API(base.Base):
'network_id': network_id}
self.network_rpcapi.add_fixed_ip_to_instance(context, **args)
+ @refresh_cache
def remove_fixed_ip_from_instance(self, context, instance, address):
"""Removes a fixed ip from instance from specified network."""