NSX|V3: allow updating a floatingip without changing the port

Change-Id: Id4f6accc047c2020338687c9c2fbd077b3d56183
This commit is contained in:
Adit Sarfaty 2017-11-14 12:45:08 +02:00
parent 26453ac833
commit ce78bf60f6
1 changed files with 1 additions and 1 deletions

View File

@ -3848,7 +3848,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
old_fip = self.get_floatingip(context, fip_id)
old_port_id = old_fip['port_id']
new_status = (const.FLOATINGIP_STATUS_ACTIVE
if floatingip['floatingip']['port_id']
if floatingip['floatingip'].get('port_id')
else const.FLOATINGIP_STATUS_DOWN)
new_fip = super(NsxV3Plugin, self).update_floatingip(
context, fip_id, floatingip)