Skip to content

Commit

Permalink
Recreate nw_info after auto assigning floating ip.
Browse files Browse the repository at this point in the history
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
(cherry picked from commit ff8e3ef)
  • Loading branch information
dprince authored and vishvananda committed Sep 21, 2012
1 parent 4e4c484 commit c0bf0b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nova/network/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ def allocate_for_instance(self, context, **kwargs):
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
Expand Down

0 comments on commit c0bf0b7

Please sign in to comment.