From ff8e3efb98bcd7301ce41683a1ee542ffc0ad3d8 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 20 Sep 2012 11:35:06 -0400 Subject: Recreate nw_info after auto assigning floating ip. When auto assigning floating IPs recreate the nw_info array so that API calls to get instance details will immediately display the assigned floating IP info. Fixes LP Bug #1053479. Change-Id: Ia58a5391099317479d968fcf01682229926a4a99 --- nova/network/manager.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova') diff --git a/nova/network/manager.py b/nova/network/manager.py index ff1b92ee8..02bd4097d 100644 --- a/nova/network/manager.py +++ b/nova/network/manager.py @@ -334,6 +334,10 @@ class FloatingIP(object): floating_address, fixed_address, affect_auto_assigned=True) + + # create a fresh set of network info that contains the floating ip + nw_info = self.get_instance_nw_info(context, **kwargs) + return nw_info @wrap_check_policy -- cgit