VppCounters: DBG CLI: show commands 33/333/1
authorMiroslav Miklus <mmiklus@cisco.com>
Tue, 16 Feb 2016 17:09:46 +0000 (18:09 +0100)
committerMiroslav Miklus <mmiklus@cisco.com>
Tue, 16 Feb 2016 17:20:00 +0000 (18:20 +0100)
show commands usefull for further debugging of FAILED tests

Change-Id: I225a2e251e2ee7a1037255dd39a833d7ca1c94ed
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
resources/libraries/python/VppCounters.py
resources/templates/vat/show_errors_verbose.vat [new file with mode: 0644]
resources/templates/vat/show_hardware_detail.vat [new file with mode: 0644]
resources/templates/vat/show_runtime_verbose.vat [new file with mode: 0644]

index f34d7a7..b99d652 100644 (file)
@@ -35,6 +35,36 @@ class VppCounters(object):
             if node['type'] == NodeType.DUT:
                 self.vpp_clear_interface_counters(node)
 
             if node['type'] == NodeType.DUT:
                 self.vpp_clear_interface_counters(node)
 
+    @staticmethod
+    def vpp_show_errors_verbose(node):
+        """Run "show errors verbose" debug CLI command
+
+        :param node: Node to run command on
+        :type node: dict
+        """
+        vat = VatExecutor()
+        vat.execute_script("show_errors_verbose.vat", node, json_out=False)
+
+    @staticmethod
+    def vpp_show_runtime_verbose(node):
+        """Run "show runtime" debug CLI command
+
+        :param node: Node to run command on
+        :type node: dict
+        """
+        vat = VatExecutor()
+        vat.execute_script("show_runtime_verbose.vat", node, json_out=False)
+
+    @staticmethod
+    def vpp_show_hardware_detail(node):
+        """Run "show hardware-interfaces detail" debug CLI command
+
+        :param node: Node to run command on
+        :type node: dict
+        """
+        vat = VatExecutor()
+        vat.execute_script("show_hardware_detail.vat", node, json_out=False)
+
     @staticmethod
     def vpp_clear_interface_counters(node):
         """Clear interface counters on VPP node.
     @staticmethod
     def vpp_clear_interface_counters(node):
         """Clear interface counters on VPP node.
diff --git a/resources/templates/vat/show_errors_verbose.vat b/resources/templates/vat/show_errors_verbose.vat
new file mode 100644 (file)
index 0000000..d35c251
--- /dev/null
@@ -0,0 +1 @@
+exec show errors verbose
diff --git a/resources/templates/vat/show_hardware_detail.vat b/resources/templates/vat/show_hardware_detail.vat
new file mode 100644 (file)
index 0000000..e3ac7c7
--- /dev/null
@@ -0,0 +1 @@
+exec show hardware detail
diff --git a/resources/templates/vat/show_runtime_verbose.vat b/resources/templates/vat/show_runtime_verbose.vat
new file mode 100644 (file)
index 0000000..46dc7c8
--- /dev/null
@@ -0,0 +1 @@
+exec show runtime verbose