From f3838b281bf5e050b36a65a89a2394fe0ca43d95 Mon Sep 17 00:00:00 2001 From: Miguel Lavalle Date: Sat, 28 Dec 2019 18:09:28 -0600 Subject: [PATCH] Pass correct port data to extension manager The CRUD methods in the ML2 plugin must pass the data in the request body to the extension manager, so it can be processed by all the ML2 extensions enabled in the deployment. The create_port_bulk method is instead passing the dictionary generated after adding the port to the DB. This will cause that fields in the request body intended for extensions will not be processed. # stein-only dependency for gate fix Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/788965 Change-Id: I2fe8e2b98c05ba739e9e93b4bd5880eb97bdaef8 (cherry picked from commit 9c5156575dccf632195da2d25598bfce2823c3fa) (cherry picked from commit efca646ba3afdd44497fc0e0235123a712b84b07) --- neutron/plugins/ml2/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/plugins/ml2/plugin.py b/neutron/plugins/ml2/plugin.py index 99deb931423..f4ffcd1af83 100644 --- a/neutron/plugins/ml2/plugin.py +++ b/neutron/plugins/ml2/plugin.py @@ -1513,7 +1513,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2, port_compat = {'port': port_dict} # Activities immediately post-port-creation - self.extension_manager.process_create_port(context, port_dict, + self.extension_manager.process_create_port(context, pdata, db_port_obj) self._portsec_ext_port_create_processing(context, port_dict, port_compat)