X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVppCounters.py;h=4bb7d63135a56baa6de20213f04901e7d084979f;hp=d8d4554899884dd3b549f124b1ba5cd924476a23;hb=180d17939d123c04bf142cedf02daa325e3f4fa6;hpb=824fb1d6a1d94636d7a73ad6b1fc69fabf8efad7 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.