X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVPPUtil.py;h=726ba2bde63b2108cdfd8590b218b651bca56156;hb=5899ac744eb5f722f53151c98e5acfdbdf678d0c;hp=57a78fc03afb2414f064d462a9cc0a19d3e992d7;hpb=c353d540f70907eac811acd19de8955a55c7eaed;p=csit.git diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py index 57a78fc03a..726ba2bde6 100644 --- a/resources/libraries/python/VPPUtil.py +++ b/resources/libraries/python/VPPUtil.py @@ -58,7 +58,7 @@ class VPPUtil(object): exec_cmd_no_error(node, command, timeout=30, sudo=True) @staticmethod - def start_vpp_service(node, retries=60): + def start_vpp_service(node, retries=120): """Start VPP service on the specified node. :param node: VPP node. @@ -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):