]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
SR-IOV: Fix SR-IOV agent to run ip link commands as root
authorMoshe Levi <moshele@mellanox.com>
Thu, 30 Jul 2015 09:04:15 +0000 (12:04 +0300)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 30 Jul 2015 09:40:46 +0000 (09:40 +0000)
commit991ea00e6c115343eabecc62e86072175823f81f
tree6103e02be29aa8b0d4cd03bcf55490c3443b7010
parent50d662d95a03fa7986c0ddadb386cad12590c0ab
SR-IOV: Fix SR-IOV agent to run ip link commands as root

Commit https://review.openstack.org/#/c/155523/
remove the remaining root_helper args, but didn't
update the SR-IOV agent to execute them as root.

This patch updates the agent to execute ip link commands
as root and pass options argument as a list in the
self._as_root method.

Closes-Bug: #1479694
Change-Id: I53cafd61845a69fae3a759fb7526950d655ffa20
neutron/plugins/ml2/drivers/mech_sriov/agent/pci_lib.py
neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_pci_lib.py