Browse Source

Pass context in disassociate_floatingip notification

With L3 flavors, disassociate_ports to fip is handled by
floatingip_precommit_update and it does not have separate
callback like L3 service plugin for disassociating ports from
fips, precommit_update needs context information to process
an update on a floating ip.

Change-Id: Ia31b9e1d9f31265da84b865a776da99358ca9b75
(cherry picked from commit d9aecfaa9d)
changes/36/749436/1
Manjeet Singh Bhatia 3 years ago
committed by LIU Yulong
parent
commit
44e73de280
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      neutron/db/l3_db.py

+ 1
- 1
neutron/db/l3_db.py View File

@ -1615,7 +1615,7 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase,
context, values, fixed_port_id=port_id)
for fip in floating_ip_objs:
registry.notify(resources.FLOATING_IP, events.PRECOMMIT_UPDATE,
self,
self, context=context,
floatingip={l3_apidef.FLOATINGIP: values},
floatingip_db=fip,
old_floatingip=old_fips[fip.id],


Loading…
Cancel
Save