]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
l3_db: it updates port attribute without L2 plugin
authorIsaku Yamahata <isaku.yamahata@intel.com>
Wed, 15 Jul 2015 19:17:48 +0000 (12:17 -0700)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 1 Dec 2015 00:37:12 +0000 (16:37 -0800)
commit0947458018725b241603139f4ec6f92e84b2f29b
treef364de21f13339c256dba4baa05e5f4dbd31c745
parenta54a551b8e161428af817c50ba71c4178d265d75
l3_db: it updates port attribute without L2 plugin

L3_NAT_dbonly_mixin._add_interface_by_port update Port.owner
db entry directly without notifying l2 plugin.
Thus L2 plugin/ML2 mechanism driver will be confused when
interface is attached to router by port because port owner is different.
Use L2 plugin update_port method to update port:owner.

Change-Id: If0178887282456842b6078a851a9233cb58a391a
Closes-Bug: #1475093
neutron/db/l3_db.py
neutron/tests/unit/extensions/test_l3.py