[dts] [patch]fix virtual tests with pci domain id caused by commit 5eeb83331f56bd11a00119928017f187f41ec6a0

Lijuan Tu lijuanx.a.tu at intel.com
Fri Apr 29 10:33:41 CEST 2016


Signed-off-by: Lijuan Tu <lijuanx.a.tu at intel.com>
---
 nics/net_device.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nics/net_device.py b/nics/net_device.py
index afd6036..b87bc7c 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -582,7 +582,7 @@ class NetDevice(object):
                         "cat %s" %
                         os.path.join(virtfn, "uevent"), "# ")
                     vf_pci = re.search(
-                        r"PCI_SLOT_NAME=%s:([0-9a-f]+:[0-9a-f]+\.[0-9a-f]+)" %domain_id,
+                        r"PCI_SLOT_NAME=(%s+:[0-9a-f]+:[0-9a-f]+\.[0-9a-f]+)" %domain_id,
                         vf_uevent).group(1)
                     sriov_vfs_pci.append(vf_pci)
             except Exception as e:
-- 
1.9.3



More information about the dts mailing list