]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
delete_port: ensure quota usage is marked as dirty
authorSalvatore Orlando <salv.orlando@gmail.com>
Fri, 18 Sep 2015 21:57:21 +0000 (14:57 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 21 Sep 2015 12:49:24 +0000 (05:49 -0700)
commit0cf620bdf945527077f9875a1849e71ec0d1c6b2
tree00638f1585908435d573f59975fcfc6971fa1772
parent12c2f969f2adb5d0b017fa7c0da3d42732480b25
delete_port: ensure quota usage is marked as dirty

To this aim the ORM session mapper must be used.
This patch simply uses context.session.delete rather than
query.delete, and handles UnmappedInstanceError to safely
complete the operation when the record is deleted by
another transaction.

Change-Id: I55c701fc1e2fda4461501aae532bbe11cce45b75
Closes-Bug: #1497459
neutron/db/ipam_backend_mixin.py