aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/Trace.py
diff options
context:
space:
mode:
authorMatej Klotton <mklotton@cisco.com>2016-07-25 17:52:22 +0200
committerMatej Klotton <mklotton@cisco.com>2016-08-15 14:36:47 +0200
commit517ee7fd3eb28ecf030c5d50be09fcdabe508922 (patch)
treec6ac1ce632b96157b962f43c74f9c11cefca2ebe /resources/libraries/python/Trace.py
parentbc4e345605abe0772043892fcc99fce9aa768edb (diff)
CSIT-197: Add basic mapping rule tests for MAP-E
- IPv4 prefix length + ea bits length < 32 - IPv4 prefix length + ea bits length == 32 - IPv4 prefix length + ea bits length > 32 - End user IPv6 prefix is 64 - IPv4 preffix is 0 Change-Id: Ib8d76abfebfb206fbbaa3c1422b2d321a3ed8712 Signed-off-by: Matej Klotton <mklotton@cisco.com>
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)
+