X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FDUTSetup.py;h=4731063fbacedb7484992863b92f1cfa3d0cc269;hp=a0a48708b77e5ce8645eb97c9e3622edb314c082;hb=244693d43a5d4a2b8ac3fa7dfcb659b2135743d9;hpb=23d5e7c58dff725043bf15d2099e2e168050f256 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."""