]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Passes the plugin context variable in the ML2 Extension Driver API
authorShweta P <shpadubi@cisco.com>
Wed, 4 Feb 2015 01:23:31 +0000 (20:23 -0500)
committerYalei Wang <yalei.wang@intel.com>
Wed, 25 Feb 2015 20:13:23 +0000 (04:13 +0800)
commitc027c6cef8145b666e5622a3a2796d4a2d67af7a
tree6ecfa8211fb8504f5f4de9bf4f0b2ba683369768
parent10b3a5bc901c8b7a77f75a6b5a9ce2d0da6e5922
Passes the plugin context variable in the ML2 Extension Driver API

Many neutron extensions(like portsecurity) use the plugin_context
variable instead of just the database session. This change
modifies the extension driver api to pass the plugin_context

Change request also modifies the extend_XXX resource api to use the
respective data model(network/subnet/port) passed to it.

Implements: blueprint extensions-in-ml2
Partially Implements: blueprint ml2-ovs-portsecurity
Closes-Bug: 1382448
Change-Id: Icf84615e5fee8b59cbc95ab9b634f1a49f4b56a3
neutron/plugins/ml2/driver_api.py
neutron/plugins/ml2/managers.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_extension_driver_api.py