diff options
author | Miroslav Miklus <mmiklus@cisco.com> | 2016-05-13 00:35:53 +0200 |
---|---|---|
committer | Miroslav Miklus <mmiklus@cisco.com> | 2016-05-18 09:01:05 +0000 |
commit | 180d17939d123c04bf142cedf02daa325e3f4fa6 (patch) | |
tree | e4dd5b1ed815f3e33cecc0da4a7e150f01b2d8ad /resources/libraries/python/VppCounters.py | |
parent | 824fb1d6a1d94636d7a73ad6b1fc69fabf8efad7 (diff) |
T-REX stl traffic send improvement for async calls
JIRA: CSIT-68
- show runtime statistics with running traffic
- T-REX driver async. driver
Change-Id: Ie5eb7021f610fb58383b033dda5b1b867f7d3d2c
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
Diffstat (limited to 'resources/libraries/python/VppCounters.py')
-rw-r--r-- | resources/libraries/python/VppCounters.py | 22 |
1 files changed, 21 insertions, 1 deletions
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 @@ -58,8 +58,18 @@ class VppCounters(object): 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 @@ -78,6 +88,16 @@ class VppCounters(object): 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. |