]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor initialize() of sriov mech driver
authorJakub Libosvar <libosvar@redhat.com>
Tue, 5 May 2015 12:32:21 +0000 (14:32 +0200)
committerJakub Libosvar <libosvar@redhat.com>
Thu, 14 May 2015 15:56:16 +0000 (17:56 +0200)
commit750ae6979d920007dc87701cb69db82d72f99fd7
treec1c3c8837536711208f09cddaa72394012a7ef3d
parent8978516e49a246fb490dad9a2a4e34f1e98afea5
Refactor initialize() of sriov mech driver

This patch rewrites checking correctness of supported_pci_vendor_devs
config value from C-style to Python-style. Patch also adds some tests
for wrong values passed.

Change-Id: I90855d665ab8d42c4dd26b91d2e8b63feef122f4
neutron/plugins/ml2/drivers/mech_sriov/mech_driver.py
neutron/tests/unit/plugins/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py