neutron/neutron/tests/unit/plugins/ml2/drivers
Moshe Levi f6d956c1f5 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
(cherry picked from commit b184558ab6)
2017-09-20 05:11:55 +00:00
..
agent Remove deprecated prevent_arp_spoofing option 2017-07-20 13:57:14 -07:00
l2pop DVR: Fix binding info for DVR port not found error 2017-07-27 09:07:55 -04:00
linuxbridge Always try to delete bridge for ID on network_delete 2017-07-21 19:51:33 +00:00
macvtap Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
mech_sriov ovs mech: bind only if user request switchdev 2017-09-20 05:11:55 +00:00
openvswitch ovs mech: bind only if user request switchdev 2017-09-20 05:11:55 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
base_type_tunnel.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
ext_test.py New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
mech_fake_agent.py use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
mech_faulty_agent.py Exit on failure to load mechanism drivers 2017-04-11 09:56:08 -05:00
mechanism_logger.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
mechanism_test.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
test_helpers.py Spin off context module 2017-03-06 16:25:29 +00:00
test_type_flat.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
test_type_geneve.py Change tunnel MTU calculation to support IPv6 2016-07-05 18:07:29 -04:00
test_type_gre.py Change passing session to context for TypeDriver 2016-12-21 14:22:16 +04:00
test_type_local.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
test_type_vlan.py Integration of Allocation/Endpoints OVO 2017-06-14 20:24:58 +00:00
test_type_vxlan.py Change tunnel MTU calculation to support IPv6 2016-07-05 18:07:29 -04:00