]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2 mechanism driver access to binding details
authorBob Kukura <rkukura@redhat.com>
Mon, 24 Feb 2014 21:33:26 +0000 (16:33 -0500)
committerBob Kukura <rkukura@redhat.com>
Wed, 26 Feb 2014 14:16:07 +0000 (09:16 -0500)
commitd1472deed5bf7b4cec7363e64fd4746cb278fcfb
tree4e98234b20e48a86b9206a1d9141ec7329c5ac11
parentf07f9a3d71ba331e45283984a106411b50f10850
ML2 mechanism driver access to binding details

The following properties are added to the PortContext object passed to
ML2 mechanism drivers for port operations:

* bound_driver - name of current bound driver
* original_bound_driver - name previously bound driver in an update
* original_bound_segment - network segment used in previous binding

Some issues with the existing ML2 port binding unit tests were also
fixed.

The remainder of the fix for bug 1276395, making these binding details
available to mechanism drivers when a port is deleted, will be
addressed as part of the fix for bug 1276391.

Partial-Bug: #1276395
Change-Id: I9ecff4a4e044920ed2dde709c89aeb9bc773220d
neutron/plugins/ml2/driver_api.py
neutron/plugins/ml2/driver_context.py
neutron/tests/unit/ml2/_test_mech_agent.py
neutron/tests/unit/ml2/drivers/mechanism_logger.py
neutron/tests/unit/ml2/drivers/mechanism_test.py
neutron/tests/unit/ml2/test_port_binding.py