aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-06-25 12:44:32 +0000
committerPeter Mikus <pmikus@cisco.com>2019-07-09 09:54:10 +0000
commit533fcfe3d177447aee7a3dca5f0d7a5f06d70377 (patch)
tree1cc563dd180aa6f6326d4192e59d105c8cc9d351 /resources/libraries/python
parentcef20e85f1af9e4c1726a5e6132cc2eb1c102edd (diff)
CSIT-1539 Aligning FUNC/PERF keywords - Phase III
Change-Id: Ibd3e99390bf004173d3d126946b95ffe9ba8f196 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/Constants.py1
-rw-r--r--resources/libraries/python/InterfaceUtil.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py
index da61f539da..cb66a5d8d5 100644
--- a/resources/libraries/python/Constants.py
+++ b/resources/libraries/python/Constants.py
@@ -111,6 +111,7 @@ class Constants(object):
"Intel-X710": 10000000000,
"Intel-XL710": 24500000000,
"Intel-XXV710": 24500000000,
+ "virtual": 100000000,
}
# Suite file names use somewhat more rich (less readable) codes for NICs.
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index 7706c14e06..22e7160dc9 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -1650,6 +1650,8 @@ class InterfaceUtil(object):
"""
worker_id = 0
worker_cnt = len(VPPUtil.vpp_show_threads(node)) - 1
+ if not worker_cnt:
+ return
for placement in InterfaceUtil.vpp_sw_interface_rx_placement_dump(node):
for interface in node['interfaces'].values():
if placement['sw_if_index'] == interface['vpp_sw_index'] \