]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Port binding registration with NeutronDbPlugin causes Neutron crash
authorsukhdev <sukhdev@aristanetworks.com>
Mon, 16 Sep 2013 19:00:13 +0000 (12:00 -0700)
committersukhdev <sukhdev@aristanetworks.com>
Wed, 18 Sep 2013 01:41:06 +0000 (18:41 -0700)
commit9b18a8035f2e804040f5d0778c83cf72b06b6c41
treee977a1d2bdae8522a4562a8b67dd97d595dd7eb5
parentcabcabdda2386f0254b928e5d56267556caf5109
Port binding registration with NeutronDbPlugin causes Neutron crash

fixes bug: 1226169

port binding feature of ML2 plugin registers a callback function with
db_base_plugin_v2.NeutronDbPluginV2, which is invoked during a query of
port DB. This function is registered by name instead by refefence. This
causes wrong context to be passed to the function upon invocation, which
causes the exception. If this query is made during neutron
initilization, Neutron service will fail to start.

This fix changes the registration from function name to function
pointer

Change-Id: I44f7f1a222f80c9ce35f7d49610e52170f76dfd1
neutron/plugins/ml2/plugin.py