X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVPPUtil.py;h=64bba75e539b9769cbfdfbae0c357f62dc54c9b0;hp=57a78fc03afb2414f064d462a9cc0a19d3e992d7;hb=33bd6f2425ddff8e4167d36ea61b64ac81da3a65;hpb=8231ea666c43c0d514708b41cf52667f5e8d0311 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):