]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2 Cisco Nexus MD: Create pre/post DB event handlers
authorRich Curran <rcurran@cisco.com>
Thu, 14 Nov 2013 22:20:07 +0000 (17:20 -0500)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:17 +0000 (15:20 +0800)
commitd20f6b8a86045d33cf6f9fb3353049efc9f09889
treec31df5a43acc80203440621ae3301ac96e2747f8
parenta93d1850ccc4d77b085ec2aab64c8ce09a3a66c1
ML2 Cisco Nexus MD: Create pre/post DB event handlers

Split ML2 cisco nexus event handers for update and delete
into precommit (called during DB transactions) and postcommit
(called after DB transactions) methods.

Also fixes some unit tests that were incorrectly accessing
context managers without using the "with" statement.

Closes-Bug: #1241098
Change-Id: I59b046342706230222c1be39d13a455ca5a884ea
neutron/plugins/ml2/drivers/cisco/exceptions.py
neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py
neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py
neutron/tests/unit/ml2/drivers/test_cisco_mech.py
neutron/tests/unit/ml2/drivers/test_cisco_nexus.py