diff options
author | mklyus <mklyus@cisco.com> | 2019-10-11 08:35:51 +0300 |
---|---|---|
committer | mklyus <mklyus@cisco.com> | 2020-01-31 11:20:59 +0300 |
commit | 423f360415e2834dd8de065434023b822e2ca3f8 (patch) | |
tree | d7a85ebdc6c4b4be982288f5c6ba2f925919f334 /nfvbench/utils.py | |
parent | ae838f98fa020d0ad0aa37ab58e02456889c3375 (diff) |
MPLS support + loop_vm_arp test fix4.1.0
Change-Id: I17b1b2a97f0bc185d3906250d5f91b4c8fcb9686
Signed-off-by: Max Klyus <mklyus@cisco.com>
Diffstat (limited to 'nfvbench/utils.py')
-rw-r--r-- | nfvbench/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nfvbench/utils.py b/nfvbench/utils.py index 3974fd7..c8c485f 100644 --- a/nfvbench/utils.py +++ b/nfvbench/utils.py @@ -113,8 +113,8 @@ def get_intel_pci(nic_slot=None, nic_ports=None): if nic_slot and nic_ports: dmidecode = subprocess.check_output(['dmidecode', '-t', 'slot']) - regex = r"(?<=SlotID:%s).*?(....:..:..\..)" % nic_slot - match = re.search(regex, dmidecode, flags=re.DOTALL) + regex = r"(?<=SlotID:{}).*?(....:..:..\..)".format(nic_slot) + match = re.search(regex, dmidecode.decode('utf-8'), flags=re.DOTALL) if not match: return None |