]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
VMware NSX: Fix db integrity error on dhcp port operations
authorarmando-migliaccio <armamig@gmail.com>
Mon, 6 Jan 2014 12:42:30 +0000 (04:42 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Mon, 6 Jan 2014 14:21:18 +0000 (06:21 -0800)
commit5bdbfc2e52ac8d97e8421d0f8c74993de08191f5
tree7cca21ee9e7e8c573a51683447f2455ace244bd6
parentbf8bf46cbbe7428c9a12886604fe5aa10019aaec
VMware NSX: Fix db integrity error on dhcp port operations

If the dhcp port and network disappear, ensure that
the integrity constraint violation that results from
inserting the neutron/nsx port mapping to the DB does
not propagate the exception all the way through, but
instead is caught and handled correctly.

Closes-bug: #1265472

Change-Id: I3ae072729d579def0bd9658241eda1011a3dcfa0
neutron/plugins/nicira/NeutronPlugin.py
neutron/tests/unit/nicira/test_nicira_plugin.py