From 180d17939d123c04bf142cedf02daa325e3f4fa6 Mon Sep 17 00:00:00 2001 From: Miroslav Miklus Date: Fri, 13 May 2016 00:35:53 +0200 Subject: T-REX stl traffic send improvement for async calls JIRA: CSIT-68 - show runtime statistics with running traffic - T-REX driver async. driver Change-Id: Ie5eb7021f610fb58383b033dda5b1b867f7d3d2c Signed-off-by: Miroslav Miklus --- resources/libraries/python/VppCounters.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'resources/libraries/python/VppCounters.py') diff --git a/resources/libraries/python/VppCounters.py b/resources/libraries/python/VppCounters.py index d8d4554899..4bb7d63135 100644 --- a/resources/libraries/python/VppCounters.py +++ b/resources/libraries/python/VppCounters.py @@ -57,9 +57,19 @@ class VppCounters(object): vat = VatExecutor() vat.execute_script("show_errors_verbose.vat", node, json_out=False) + @staticmethod + def vpp_show_runtime(node): + """Run "show runtime" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("show_runtime.vat", node, json_out=False) + @staticmethod def vpp_show_runtime_verbose(node): - """Run "show runtime" debug CLI command. + """Run "show runtime verbose" CLI command. :param node: Node to run command on. :type node: dict @@ -77,6 +87,16 @@ class VppCounters(object): vat = VatExecutor() vat.execute_script("show_hardware_detail.vat", node, json_out=False) + @staticmethod + def vpp_clear_runtime(node): + """Run "clear runtime" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("clear_runtime.vat", node, json_out=False) + @staticmethod def vpp_clear_interface_counters(node): """Clear interface counters on VPP node. -- cgit 1.2.3-korg