From 5aa03bac1ea4fe07f59c6b294b23fce94a0a805b Mon Sep 17 00:00:00 2001 From: pmikus Date: Fri, 24 Jun 2016 16:38:03 +0100 Subject: CSIT-180 Add VPP api trace dump after each TC - Add VPP api trace dump after each TC Change-Id: I7c8bc0ffbca620f6fdb48369014a2ca9ffa3b3e4 Signed-off-by: pmikus --- resources/libraries/python/DUTSetup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index 4731063fba..e2d183fe4e 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -45,6 +45,26 @@ class DUTSetup(object): vat = VatExecutor() vat.execute_script("show_version_verbose.vat", node, json_out=False) + @staticmethod + def vpp_api_trace_save(node): + """Run "api trace save" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("api_trace_save.vat", node, json_out=False) + + @staticmethod + def vpp_api_trace_dump(node): + """Run "api trace custom-dump" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("api_trace_dump.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