]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2: ODL driver sets port status
authorRobert Kukura <kukura@noironetworks.com>
Thu, 3 Apr 2014 21:01:00 +0000 (17:01 -0400)
committerAkihiro Motoki <motoki@da.jp.nec.com>
Sun, 6 Apr 2014 22:04:10 +0000 (07:04 +0900)
commit01380b7c67ba2ef1f923d0cf4265dd2d20e31093
treee544aa2f0a35f4445e44c0ef0fd8001341f2c23b
parentb70d5198a3d224ef3025e4425cab13dfb6778641
ML2: ODL driver sets port status

The OpenDaylight mechanism driver does not depend on an L2 agent to
plug the port. Now that nova waits for notification that the port
status is ACTIVE, the ML2 driver API is extended so that the mechanism
driver that binds a port can optionally set the port status, and the
OpenDaylight mechanism driver uses this to set the port status to
ACTIVE.

Closes-Bug: 1301449
Change-Id: I171c405f36b4f2354d9585e8ae3dfa50ddaa9a7e
(cherry picked from commit a9e3074aa9f442c2fff1ba058ac8ed585c6caa24)
neutron/plugins/ml2/driver_api.py
neutron/plugins/ml2/driver_context.py
neutron/plugins/ml2/drivers/mechanism_odl.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/drivers/mechanism_test.py
neutron/tests/unit/ml2/test_port_binding.py