summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/trex.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/regression/trex.py')
-rw-r--r--scripts/automation/regression/trex.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/automation/regression/trex.py b/scripts/automation/regression/trex.py
index 416a6e3b..f9a3fbf1 100644
--- a/scripts/automation/regression/trex.py
+++ b/scripts/automation/regression/trex.py
@@ -10,6 +10,7 @@ import time
from CProgressDisp import TimedProgressBar
from stateful_tests.tests_exceptions import TRexInUseError
import datetime
+import copy
class CTRexScenario:
modes = set() # list of modes of this setup: loopback, virtual etc.
@@ -41,6 +42,20 @@ class CTRexScenario:
debug_image = False
test = None
json_verbose = False
+ elk = None
+ elk_info = None
+
+def copy_elk_info ():
+ assert(CTRexScenario.elk_info)
+ d = copy.deepcopy(CTRexScenario.elk_info);
+
+ timestamp = datetime.datetime.now(); # need to update this
+ d['timestamp']=timestamp.strftime("%Y-%m-%d %H:%M:%S")
+ return(d)
+
+
+
+
class CTRexRunner:
"""This is an instance for generating a CTRexRunner"""