aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/Trace.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python/Trace.py')
-rw-r--r--resources/libraries/python/Trace.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/libraries/python/Trace.py b/resources/libraries/python/Trace.py
index 1a251a61b6..49b39cbdfb 100644
--- a/resources/libraries/python/Trace.py
+++ b/resources/libraries/python/Trace.py
@@ -23,3 +23,11 @@ class Trace(object):
if node['type'] == NodeType.DUT:
vat = VatExecutor()
vat.execute_script("show_trace.vat", node, json_out=False)
+
+ @staticmethod
+ def clear_packet_trace_on_all_duts(nodes):
+ for node in nodes.values():
+ if node['type'] == NodeType.DUT:
+ vat = VatExecutor()
+ vat.execute_script("clear_trace.vat", node, json_out=False)
+