From 3651723c548d6730e272a2f3509084b7f34286ce Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 18 Aug 2016 23:33:07 +0300 Subject: revert mmain_dpdk.h commited by mistake code add create config functional test change order of cores in config file --- scripts/dpdk_nic_bind.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/dpdk_nic_bind.py') diff --git a/scripts/dpdk_nic_bind.py b/scripts/dpdk_nic_bind.py index a2c8e197..13806fd1 100755 --- a/scripts/dpdk_nic_bind.py +++ b/scripts/dpdk_nic_bind.py @@ -35,8 +35,10 @@ import sys, os, getopt, subprocess, shlex from os.path import exists, abspath, dirname, basename from distutils.util import strtobool -sys.path.append(os.path.join('external_libs', 'texttable-0.8.4')) +text_tables_path = os.path.join('external_libs', 'texttable-0.8.4') +sys.path.append(text_tables_path) import texttable +sys.path.remove(text_tables_path) import re # The PCI device class for ETHERNET devices @@ -506,7 +508,7 @@ def get_macs_from_trex(pci_addr_list): print("Could not run TRex to get MAC info about interfaces, check if it's already running.") else: print('Error upon running TRex to get MAC info:\n%s.' % stdout) - return {} + sys.exit(1) pci_mac_str = 'PCI: (\S+).+?MAC: (\S+)' pci_mac_re = re.compile(pci_mac_str) for line in stdout.splitlines(): -- cgit 1.2.3-korg