From 2e6b88e7c414e31336fd6644143b257e94b89624 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Thu, 5 May 2016 15:27:08 +0200 Subject: Add "show error" output into vpp stats - Add "show error" debug output into VPP show stats as verbose subcommand is not parsed correctly in output of vpp_api_test Change-Id: I924c54bb86375e43770fd449b8d6aaa7a3413bcb Signed-off-by: Peter Mikus --- resources/libraries/python/VppCounters.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/VppCounters.py b/resources/libraries/python/VppCounters.py index 375bdfb519..d8d4554899 100644 --- a/resources/libraries/python/VppCounters.py +++ b/resources/libraries/python/VppCounters.py @@ -37,6 +37,16 @@ class VppCounters(object): if node['type'] == NodeType.DUT: self.vpp_clear_interface_counters(node) + @staticmethod + def vpp_show_errors(node): + """Run "show errors" debug CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("show_errors.vat", node, json_out=False) + @staticmethod def vpp_show_errors_verbose(node): """Run "show errors verbose" debug CLI command. -- cgit 1.2.3-korg