diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-18 23:33:07 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-18 23:46:32 +0300 |
commit | 3651723c548d6730e272a2f3509084b7f34286ce (patch) | |
tree | cc8714d7ee530d704765bdd085c01accc856d34f /scripts/dpdk_nic_bind.py | |
parent | 08def8d3b3e909b9bbafcb0f4820a84ab7d522ad (diff) |
revert mmain_dpdk.h commited by mistake code
add create config functional test
change order of cores in config file
Diffstat (limited to 'scripts/dpdk_nic_bind.py')
-rwxr-xr-x | scripts/dpdk_nic_bind.py | 6 |
1 files changed, 4 insertions, 2 deletions
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(): |