]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add support to request vnic type on port
authorIrena Berezovsky <irenab@mellanox.com>
Mon, 10 Feb 2014 12:55:49 +0000 (14:55 +0200)
committerIrena Berezovsky <irenab@mellanox.com>
Thu, 20 Feb 2014 05:29:38 +0000 (07:29 +0200)
commit9623e6c967e6bdf5e1c906b8f5a262cdd55ec15e
treeb9954caa8a307f5682e488ac050111df01dcb13e
parent6e8aebac95122f092a90410630da65a92e52bc13
Add support to request vnic type on port

This patch adds support for requested vnic_type to be plugged to neutron port to ML2 plugin.
This patch contains:
1. New attribute 'binding:vnic_type' added to port binding extension.
   Possible values are 'direct', 'macvtap' and 'normal'.
   'binding:vnic_type' is allowed to be defined on port creation or changed
   on port update by admin or tenant user.
   'binding:vnic_type' can be also skipped in port defintion
2. Management of vnic_type by ML2 plugin, assuming default
vnic_type=normal
3. Add 'vnic_type' to ml2_port_bindings DB table
4. Add supported vnic_types for MechanismDrivers that are capable to bind
port.
5. Add DB migration script for ml2_vnic_type.

DocImpact: Need to update portbindings API docs and include in SR-IOV user docs

Change-Id: Ic88708fa9ece742f807c1d09bb49e499f99bd092
Implements: blueprint ml2-request-vnic-type
etc/policy.json
neutron/db/migration/alembic_migrations/versions/27cc183af192_ml2_vnic_type.py [new file with mode: 0644]
neutron/db/portbindings_db.py
neutron/extensions/portbindings.py
neutron/plugins/ml2/drivers/mech_agent.py
neutron/plugins/ml2/managers.py
neutron/plugins/ml2/models.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/_test_extension_portbindings.py
neutron/tests/unit/ml2/_test_mech_agent.py
neutron/tests/unit/ml2/test_ml2_plugin.py