aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/DMAUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python/DMAUtil.py')
-rw-r--r--resources/libraries/python/DMAUtil.py13
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")