Add vagrant setup for testing VPP device locally
[csit.git] / resources / libraries / python / VPPUtil.py
index 57a78fc..726ba2b 100644 (file)
@@ -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):