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.

Change-Id: I2fe8e2b98c05ba739e9e93b4bd5880eb97bdaef8
This commit is contained in:
Miguel Lavalle 2019-12-28 18:09:28 -06:00
parent 68f89c79c8
commit 9c5156575d

View File

@ -1537,7 +1537,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
port_compat = {'port': port_dict} port_compat = {'port': port_dict}
# Activities immediately post-port-creation # 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) db_port_obj)
self._portsec_ext_port_create_processing(context, port_dict, self._portsec_ext_port_create_processing(context, port_dict,
port_compat) port_compat)