]> 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)
committerGerrit Code Review <review@openstack.org>
Fri, 7 Feb 2014 16:16:15 +0000 (16:16 +0000)
commit8d0abf2db701803eaf11c0a8ff4d759b0da5dc39
tree2ce357bfe50de31fbf53b4bede7cee5738732b94
parent260a9f5935499f44e9160040c4b7018cfc3f08f8
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