aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2016-05-05 15:27:08 +0200
committerMiroslav Miklus <mmiklus@cisco.com>2016-05-06 14:25:45 +0000
commit2e6b88e7c414e31336fd6644143b257e94b89624 (patch)
tree503adab4ce316404522cc41c5f823fd23dbd21ac
parentad36fe000f7f28bd95bdb51908bbe9e59f8753eb (diff)
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 <pmikus@cisco.com>
-rw-r--r--resources/libraries/python/VppCounters.py10
-rw-r--r--resources/libraries/robot/counters.robot1
-rw-r--r--resources/templates/vat/show_errors.vat1
3 files changed, 12 insertions, 0 deletions
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
@@ -38,6 +38,16 @@ class VppCounters(object):
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.
diff --git a/resources/libraries/robot/counters.robot b/resources/libraries/robot/counters.robot
index 45fe3531f6..b4db3febd9 100644
--- a/resources/libraries/robot/counters.robot
+++ b/resources/libraries/robot/counters.robot
@@ -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
index 0000000000..9f0cb38dc6
--- /dev/null
+++ b/resources/templates/vat/show_errors.vat
@@ -0,0 +1 @@
+exec show errors