Switch DB and driver precommit methods for delete and update
Deleting network and router assoc calls need to execute precommit and
postcommit checks. The method deleted the object in the DB before making
precommit checks.
With this change it makes precommit checks before deleting the object, which
allows the drivers to read the DB with the object being present at delete
precomit time.
Reviewed: https:/ /review. openstack. org/499943 /git.openstack. org/cgit/ openstack/ networking- bgpvpn/ commit/ ?id=79c7a612676 00629b3e2fee727 d9c3d80af5db04
Committed: https:/
Submitter: Jenkins
Branch: master
commit 79c7a6126760062 9b3e2fee727d9c3 d80af5db04
Author: Omar Sanhaji <email address hidden>
Date: Wed Aug 30 10:27:53 2017 +0200
Switch DB and driver precommit methods for delete and update
Deleting network and router assoc calls need to execute precommit and
postcommit checks. The method deleted the object in the DB before making
precommit checks.
With this change it makes precommit checks before deleting the object, which
allows the drivers to read the DB with the object being present at delete
precomit time.
The same change is applied to updates.
Co-Authored-By: Omar Sanhaji <email address hidden>
Co-Authored-By: Thomas Morin <email address hidden>
Closes-Bug: #1709647
Partial Implements: blueprint bagpipe-bgpvpn-ovo
Change-Id: I4a191c1c6a1c52 81cd18e07dcee53 4dc84338acc