aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/VPPUtil.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-03-09 08:00:54 +0000
committerPeter Mikus <pmikus@cisco.com>2019-03-20 20:16:56 +0000
commit33bd6f2425ddff8e4167d36ea61b64ac81da3a65 (patch)
tree15e0c2e2e96cfbc1c225df88b3770baf64b925ab /resources/libraries/python/VPPUtil.py
parent8231ea666c43c0d514708b41cf52667f5e8d0311 (diff)
CSIT-1386 KernelVM - Part II
- Implementation of KernelVM (ThinVM) - nf_density tests for KernelVM with VPP as VNF. Change-Id: Ife5c2e1ab419c55cbcd442792f940db3a41da471 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/VPPUtil.py')
-rw-r--r--resources/libraries/python/VPPUtil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py
index 57a78fc03a..64bba75e53 100644
--- a/resources/libraries/python/VPPUtil.py
+++ b/resources/libraries/python/VPPUtil.py
@@ -146,6 +146,8 @@ class VPPUtil(object):
otherwise show only version.
:type node: dict
:type verbose: bool
+ :returns: VPP version.
+ :rtype: str
"""
with PapiExecutor(node) as papi_exec:
@@ -159,6 +161,7 @@ class VPPUtil(object):
format(date=data['build_date'].rstrip('\0x00'),
cl=data['build_directory'].rstrip('\0x00')))
logger.info(version)
+ return data['version'].rstrip('\0x00')
@staticmethod
def vpp_show_version_verbose(node):