]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix SR-IOV mech driver to set port status to down when agent is required
authorMoshe Levi <moshele@mellanox.com>
Thu, 11 Jun 2015 09:24:03 +0000 (12:24 +0300)
committerMoshe Levi <moshele@mellanox.com>
Thu, 18 Jun 2015 11:17:24 +0000 (14:17 +0300)
commit63e318f5f8159f108cf1e7a82c952fa5f882870f
tree53ecae728298b6231e8df2e44971c619c7e8878b
parent9d649129ca762f406846190d31997397f0a0c53b
Fix SR-IOV mech driver to set port status to down when agent is required

SR-IOV mech driver has 2 modes agent and agent-less. Currently in both
modes port status are active. This patch update the port status to down
when using agent mode. This will allow the SR-IOV agent to get port
update notification and apply its additional functionality
when launching vm.

Co-Authored-By: Berezovsky Irena <irenab.dev@gmail.com>
Closes-Bug: #1464186

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