Add "show error" output into vpp stats 02/1002/2
authorPeter Mikus <pmikus@cisco.com>
Thu, 5 May 2016 13:27:08 +0000 (15:27 +0200)
committerMiroslav Miklus <mmiklus@cisco.com>
Fri, 6 May 2016 14:25:45 +0000 (14:25 +0000)
- 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 <pmikus@cisco.com>
resources/libraries/python/VppCounters.py
resources/libraries/robot/counters.robot
resources/templates/vat/show_errors.vat [new file with mode: 0644]

index 375bdfb..d8d4554 100644 (file)
@@ -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.
index 45fe353..b4db3fe 100644 (file)
@@ -42,6 +42,7 @@
 | | [Documentation] | Show [error, hardware, interface] stats
 | | [Arguments] | ${node}
 | | Vpp Dump Stats Table | ${node}
+| | Vpp Show Errors | ${node}
 | | Vpp Show Errors Verbose | ${node}
 | | Vpp Show Hardware Detail | ${node}
 | | Vpp Show Runtime Verbose | ${node}
diff --git a/resources/templates/vat/show_errors.vat b/resources/templates/vat/show_errors.vat
new file mode 100644 (file)
index 0000000..9f0cb38
--- /dev/null
@@ -0,0 +1 @@
+exec show errors