diff options
author | Lijuan Tu <lijuanx.a.tu@intel.com> | 2016-08-29 14:39:37 +0800 |
---|---|---|
committer | Marvin Liu <yong.liu@intel.com> | 2016-09-05 10:19:41 +0800 |
commit | 17f4a97cc64f8ef8e536033e60c1e8516a844d49 (patch) | |
tree | 0ae0642f35273a5dcb3820e40c252b9acf4e814a /nics | |
parent | cc8cfa0945f909a943dc11ee4a113de7b31886de (diff) |
net_device: fix nic_pci_num not defined
Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
Diffstat (limited to 'nics')
-rw-r--r-- | nics/net_device.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nics/net_device.py b/nics/net_device.py index 897ceb9..2ad950e 100644 --- a/nics/net_device.py +++ b/nics/net_device.py @@ -768,6 +768,7 @@ class NetDevice(object): Bind NIC port to the pci-stub driver on linux. """ new_id = self.pci_id.replace(':', ' ') + nic_pci_num = ':'.join([domain_id, bus_id, devfun_id]) self.__send_expect( "echo %s > /sys/bus/pci/drivers/pci-stub/new_id" % new_id, "# ") self.__send_expect( |