]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix foreign key constraint error on ml2_dvr_port_bindings
authorarmando-migliaccio <armamig@gmail.com>
Fri, 19 Sep 2014 19:11:11 +0000 (12:11 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 19 Sep 2014 19:11:24 +0000 (12:11 -0700)
commit7ca696c7355ba93dd89e69a76162c6d9a3429a2b
tree3c101bb3c65b81656394755f236fef3f919bfa64
parent6090d4d777d5771ef21db3ac8eb6c8ed6ea133a1
Fix foreign key constraint error on ml2_dvr_port_bindings

Get the port before creating the DVR binding. This should guarantee that, if
the port is found, no foreign key violation is triggered.

Closes-bug: #1371696

Change-Id: I90c3d6460c14ef27823be95bc26aae38eba4879a
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py