]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2: DB changes for hierarchical port binding
authorRobert Kukura <kukura@noironetworks.com>
Thu, 21 Aug 2014 19:46:11 +0000 (15:46 -0400)
committerHenry Gessau <gessau@cisco.com>
Sat, 14 Feb 2015 04:30:25 +0000 (23:30 -0500)
commit0b790f649631f449dc576492b96fecfa54049e45
treefe82d1c0517397ed3f01f487cb642473a040537d
parentc49c87d1e4d015a08a4612846dce816bfbb755ee
ML2: DB changes for hierarchical port binding

To support hierarchical port binding, the driver and segment columns
are moved from the ml2_port_bindings and ml2_dvr_port_bindings tables
to a new ml2_port_binding_levels table. This new table can store
multiple levels of binding information for each port. It has the host
as part of its primary key so that it can be used for both normal and
DVR port bindings.

The cap_port_filter column is also removed from the
ml2_dvr_port_bindings table, since the adjacent driver and segment
columns are being moved, and this can trivially be done via the same
DB migration. It was included in the table by mistake and was never
used.

The logic required for hierarchical port binding will be implemented
in a dependent patch.

Gerrit Spec: https://review.openstack.org/#/c/139886/

Partially-implements: blueprint ml2-hierarchical-port-binding

Change-Id: I08ddc384763087fbac0fa3da3ed6e99b897df031
neutron/db/migration/alembic_migrations/versions/2d2a8a565438_hierarchical_binding.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/plugins/ml2/db.py
neutron/plugins/ml2/driver_context.py
neutron/plugins/ml2/managers.py
neutron/plugins/ml2/models.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/db/test_ml2_dvr_db.py
neutron/tests/unit/ml2/test_driver_context.py
neutron/tests/unit/ml2/test_ml2_plugin.py