neutron/neutron/tests/unit/plugins/ml2
Moshe Levi b184558ab6 ovs mech: bind only if user request switchdev
In I77650be5f04775a72e2bdf694f93988825a84b72 we added
vnic_type direct to the ovs mechanism drivers supported
vnic_types. This cause problems when working with ovs and sriovnicswitch
mechanism drivers in that order.  In this case the ovs will bind
the direct port instead of the sriovnicswitch.

This change make ovs mech driver to bind the direct port only
if user requested --binding-profile '{"capabilities": ["switchdev"]}'
in the direct port if a user don't request this capability the SR-IOV
legacy NIC mode is used.

When enable-sriov-nic-features will be implemented in nova and
libvirt will expose the switchdev capability then nova will be
able to select a host which supports SR-IOV nic with switchdev
mode.

[1] - https://review.openstack.org/#/c/435954/11/specs/pike/approved/enable-sriov-nic-features.rst
[2] - https://www.redhat.com/archives/libvir-list/2017-August/msg00583.html

Closes-Bug: #1713590

Change-Id: I0b5f062bcbf02381bdf4f694fc039f9bb17a2db5
2017-09-12 15:01:50 +03:00
..
drivers ovs mech: bind only if user request switchdev 2017-09-12 15:01:50 +03:00
extensions Add unit tests for dns_domain for ports 2017-08-09 16:12:53 -05:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py ovs mech: bind only if user request switchdev 2017-09-12 15:01:50 +03:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Move db agent schedulers test to a more appropriate place 2015-08-24 15:14:13 +03:00
test_db.py Merge "Add missing unit test for segment db" 2017-06-10 01:04:49 +00:00
test_driver_context.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_ext_portsecurity.py use neutron-lib port security api-def 2017-05-01 11:45:42 -06:00
test_extension_driver_api.py Spin off context module 2017-03-06 16:25:29 +00:00
test_managers.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Allow to set/modify network mtu 2017-08-11 00:57:34 +00:00
test_port_binding.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_rpc.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_security_group.py use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
test_tracked_resources.py Spin off context module 2017-03-06 16:25:29 +00:00