]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Implement ML2 port binding
authorBob Kukura <rkukura@redhat.com>
Tue, 13 Aug 2013 01:58:36 +0000 (21:58 -0400)
committerBob Kukura <rkukura@redhat.com>
Tue, 3 Sep 2013 22:05:20 +0000 (18:05 -0400)
commit8bc02a7fbeaf2e0c8bccbaad52f41d026c1bbf40
tree5790417a95a765255e4ae30a7fcbc8b2c26cc843
parent0160ee2c5c744934626f1e8e100990b829dcb27b
Implement ML2 port binding

The ml2 plugin uses mechanism drivers to determine which network
segment and what VIF driver to use for a port. Mechanism drivers
supporting the openvswitch, linuxbridge, and hyperv agents are
added. The binding:host attribute is set on ports belonging to the
dhcp and l3 agents so that they can be bound.

To use with devstack until it is updated, set
"Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge" in localrc.

The hyperv L2 agent does not currently implement the agents_db RPC,
and will therefore not work with its ml2 mechanism driver. This issue
will be tracked as a bug to be fixed in a separate merge.

implements blueprint: ml2-portbinding

Change-Id: Icb9c70d8b0d7fcb34b57adc760bb713b740e5dad
26 files changed:
neutron/common/constants.py
neutron/db/dhcp_rpc_base.py
neutron/db/l3_rpc_base.py
neutron/db/migration/alembic_migrations/versions/32a65f71af51_ml2_portbinding.py [new file with mode: 0644]
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/ml2/db.py
neutron/plugins/ml2/driver_api.py
neutron/plugins/ml2/driver_context.py
neutron/plugins/ml2/drivers/mech_agent.py [new file with mode: 0644]
neutron/plugins/ml2/drivers/mech_hyperv.py [new file with mode: 0644]
neutron/plugins/ml2/drivers/mech_linuxbridge.py [new file with mode: 0644]
neutron/plugins/ml2/drivers/mech_openvswitch.py [new file with mode: 0644]
neutron/plugins/ml2/managers.py
neutron/plugins/ml2/models.py
neutron/plugins/ml2/plugin.py
neutron/plugins/ml2/rpc.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/ml2/_test_mech_agent.py [new file with mode: 0644]
neutron/tests/unit/ml2/drivers/mechanism_logger.py
neutron/tests/unit/ml2/drivers/mechanism_test.py
neutron/tests/unit/ml2/test_mech_hyperv.py [new file with mode: 0644]
neutron/tests/unit/ml2/test_mech_linuxbridge.py [new file with mode: 0644]
neutron/tests/unit/ml2/test_mech_openvswitch.py [new file with mode: 0644]
neutron/tests/unit/ml2/test_ml2_plugin.py
neutron/tests/unit/ml2/test_port_binding.py [new file with mode: 0644]
setup.cfg