Fix update floatingip description
The standard-attr-description extension isn't being honored during floatingip update operations, due to the fact that the upstream neutron code has been monkey-patched by GBP. This change set fixes the GBP monkey-patch to properly support the standard-attr-description extension. Change-Id: I874052879d3a51545a5b47cc362071d3f3e031d0 Closes-Bug: 1702073
This commit is contained in:
parent
e19cc9e2ca
commit
40b666359c
@ -55,10 +55,13 @@ def _update_fip_assoc(self, context, fip, floatingip_db, external_port):
|
||||
previous_router_id = floatingip_db.router_id
|
||||
port_id, internal_ip_address, router_id = (
|
||||
self._check_and_get_fip_assoc(context, fip, floatingip_db))
|
||||
floatingip_db.update({'fixed_ip_address': internal_ip_address,
|
||||
'fixed_port_id': port_id,
|
||||
'router_id': router_id,
|
||||
'last_known_router_id': previous_router_id})
|
||||
update = {'fixed_ip_address': internal_ip_address,
|
||||
'fixed_port_id': port_id,
|
||||
'router_id': router_id,
|
||||
'last_known_router_id': previous_router_id}
|
||||
if 'description' in fip:
|
||||
update['description'] = fip['description']
|
||||
floatingip_db.update(update)
|
||||
next_hop = None
|
||||
if router_id:
|
||||
router = self._get_router(context.elevated(), router_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user