From 244693d43a5d4a2b8ac3fa7dfcb659b2135743d9 Mon Sep 17 00:00:00 2001 From: pmikus Date: Mon, 13 Jun 2016 12:36:54 +0100 Subject: CSIT-163: Add show vpp version verbose - Add output of vpp version verbose Change-Id: Ia74b97be4636d55b115246d495a5d6eea0a94bb7 Signed-off-by: pmikus --- resources/libraries/python/DUTSetup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index a0a48708b7..4731063fba 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -16,6 +16,7 @@ from robot.api import logger from resources.libraries.python.topology import NodeType from resources.libraries.python.ssh import SSH from resources.libraries.python.constants import Constants +from resources.libraries.python.VatExecutor import VatExecutor class DUTSetup(object): @@ -34,6 +35,16 @@ class DUTSetup(object): raise Exception('DUT {0} failed to start VPP service'. format(node['host'])) + @staticmethod + def vpp_show_version_verbose(node): + """Run "show version verbose" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("show_version_verbose.vat", node, json_out=False) + @staticmethod def setup_all_duts(nodes): """Prepare all DUTs in given topology for test execution.""" -- cgit 1.2.3-korg