X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVppCounters.py;h=f847ca6901d480d088d3a36237a84939d9595bed;hb=6da7266754c28754c04cf37d1974e39766a261f6;hp=03b40b7a6bf875e44b8916e3e9a223c50f224b82;hpb=f88a3d9178dfbd73d0479f9aa2f5224e0c89ca1f;p=csit.git diff --git a/resources/libraries/python/VppCounters.py b/resources/libraries/python/VppCounters.py index 03b40b7a6b..f847ca6901 100644 --- a/resources/libraries/python/VppCounters.py +++ b/resources/libraries/python/VppCounters.py @@ -156,13 +156,25 @@ class VppCounters(object): VppCounters.vpp_show_runtime(node) @staticmethod - def vpp_show_hardware_detail(node): - """Run "show hardware-interfaces detail" debug CLI command. + def vpp_show_hardware_verbose(node): + """Run "show hardware-interfaces verbose" debug CLI command. :param node: Node to run command on. :type node: dict """ - PapiSocketExecutor.run_cli_cmd(node, 'show hardware detail') + PapiSocketExecutor.run_cli_cmd(node, 'show hardware verbose') + + @staticmethod + def vpp_show_memory(node): + """Run "show memory" debug CLI command. + + Currently, every flag is hardcoded, giving the longest output. + + :param node: Node to run command on. + :type node: dict + """ + PapiSocketExecutor.run_cli_cmd( + node, 'show memory verbose api-segment stats-segment main-heap') @staticmethod def vpp_clear_runtime(node): @@ -316,8 +328,9 @@ class VppCounters(object): :type node: dict """ VppCounters.vpp_show_errors(node) - VppCounters.vpp_show_hardware_detail(node) + VppCounters.vpp_show_hardware_verbose(node) VppCounters.vpp_show_runtime(node) + VppCounters.vpp_show_memory(node) @staticmethod def show_statistics_on_all_duts(nodes, sleeptime=5):