From 342dbd361d5d90823758e78d865e9be6bb711bd8 Mon Sep 17 00:00:00 2001 From: Trey Morris Date: Tue, 11 Dec 2012 17:30:07 -0600 Subject: add and removed fixed ip now refresh cache fixed bug 1089154 Change-Id: I007c9f1a31321e613e7dc2afb8ec090b608ec2df --- nova/network/api.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova') 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.""" -- cgit