diff options
| author | Dan Prince <dprince@redhat.com> | 2012-09-20 11:35:06 -0400 |
|---|---|---|
| committer | Dan Prince <dprince@redhat.com> | 2012-09-20 11:35:06 -0400 |
| commit | ff8e3efb98bcd7301ce41683a1ee542ffc0ad3d8 (patch) | |
| tree | 26819a7a1eff2c39252483be55ac19b4588314b3 | |
| parent | 2fb9fe92fd24ecf52720f6762c32c2056ecbe2b9 (diff) | |
| download | nova-ff8e3efb98bcd7301ce41683a1ee542ffc0ad3d8.tar.gz nova-ff8e3efb98bcd7301ce41683a1ee542ffc0ad3d8.tar.xz nova-ff8e3efb98bcd7301ce41683a1ee542ffc0ad3d8.zip | |
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
| -rw-r--r-- | nova/network/manager.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
