From d9aecfaa9dd27d17bc81254df2594d3d2392f9cd Mon Sep 17 00:00:00 2001 From: Manjeet Singh Bhatia Date: Wed, 9 May 2018 01:04:02 +0000 Subject: [PATCH] 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 --- neutron/db/l3_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/db/l3_db.py b/neutron/db/l3_db.py index be63e5ddef4..33b5d99b101 100644 --- a/neutron/db/l3_db.py +++ b/neutron/db/l3_db.py @@ -1576,7 +1576,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],