summaryrefslogtreecommitdiffstats
path: root/tools/systeminfo.py
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-09-01 12:13:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-01 12:13:30 +0000
commit7608b5f5b73af88bd22e1825a013cbcd123050ac (patch)
treebaebfea839fe537d9f12145d9001500ff9dd53e9 /tools/systeminfo.py
parent19e7d1368af560ef3df6ac39570b9ecc59d3a05d (diff)
parenta512ca1610a603c366de021668aa5a5d5d13f44f (diff)
Merge "trex: Add support Trex traffic generator"
Diffstat (limited to 'tools/systeminfo.py')
-rw-r--r--tools/systeminfo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/systeminfo.py b/tools/systeminfo.py
index 75b7aa0d..f34bcce6 100644
--- a/tools/systeminfo.py
+++ b/tools/systeminfo.py
@@ -230,6 +230,7 @@ def get_version(app_name):
'loopback_l2fwd' : os.path.join(S.getValue('ROOT_DIR'), 'src/l2fwd/l2fwd.c'),
'ixnet' : os.path.join(S.getValue('TRAFFICGEN_IXNET_LIB_PATH'), 'pkgIndex.tcl'),
'ixia' : os.path.join(S.getValue('TRAFFICGEN_IXIA_ROOT_DIR'), 'lib/ixTcl1.0/ixTclHal.tcl'),
+ 'trex' : os.path.join(S.getValue('ROOT_DIR'), 'src/trex/trex'),
}
@@ -312,6 +313,9 @@ def get_version(app_name):
app_version = match_line(app_version_file['ixia'], 'package provide IxTclHal')
if app_version:
app_version = app_version.split(' ')[3]
+ elif app_name.lower() == 'trex':
+ app_version = match_line(os.path.join(app_version_file['trex'], 'VERSION'), 'v')
+ app_git_tag = get_git_tag(app_version_file['trex'])
elif app_name.lower() == 'xena':
try:
app_version = S.getValue('XENA_VERSION')