diff options
author | 2024-11-25 14:15:43 +0100 | |
---|---|---|
committer | 2024-11-25 13:52:46 +0000 | |
commit | a59d8987a84bdd2d6a5e449c0f24d29b29cd96dd (patch) | |
tree | 540ee4195475c374c4b0b8d7cd12f486fd11b3ba /resources/libraries/python/DMAUtil.py | |
parent | 691498c668d4fc0194a0fc40ca61f18626690555 (diff) |
feat(dma): Add show dma as test teardown
Add the teardown to memif and nginx tests,
for memif it needs to be before "container" teardown.
Change-Id: I142b76d3e47554d3a8050e04b9598592b43f22c1
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/DMAUtil.py')
-rw-r--r-- | resources/libraries/python/DMAUtil.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/resources/libraries/python/DMAUtil.py b/resources/libraries/python/DMAUtil.py index f904ea4e3d..0c0ed3cba3 100644 --- a/resources/libraries/python/DMAUtil.py +++ b/resources/libraries/python/DMAUtil.py @@ -14,8 +14,10 @@ """DMA util library.""" from re import search -from resources.libraries.python.topology import NodeType, Topology + +from resources.libraries.python.PapiExecutor import PapiSocketExecutor from resources.libraries.python.ssh import exec_cmd, exec_cmd_no_error +from resources.libraries.python.topology import NodeType, Topology class DMAUtil: @@ -211,3 +213,12 @@ class DMAUtil: node, cmd, sudo=True, message="Failed") return enabled_wqs + + @staticmethod + def vpp_show_dma(node): + """Call show dma CLI command on all sockets. + + :param node: Topology node. + :type node: dict + """ + PapiSocketExecutor.run_cli_cmd_on_all_sockets(node, u"show dma") |