From: Ondrej Lichtner <olichtne(a)redhat.com>
Can be useful for inspecting the measurement objects.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py | 4 ++++
lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py | 4 ++++
lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
b/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
index 856eeba..f76a25a 100644
--- a/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
+++ b/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
@@ -195,6 +195,10 @@ def add_results(self, results):
raise MeasurementError("Adding incorrect results.")
class BaseFlowMeasurement(BaseMeasurement):
+ @property
+ def flows(self):
+ raise NotImplementedError()
+
@classmethod
def report_results(cls, recipe, results):
for flow_results in results:
diff --git a/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py
b/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py
index c193987..4c110f6 100644
--- a/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py
+++ b/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py
@@ -27,6 +27,10 @@ def __init__(self, *args):
self._hosts_versions = {}
+ @property
+ def flows(self):
+ return self._conf
+
@property
def version(self):
if not self._hosts_versions:
diff --git a/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
b/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
index c12e922..e047420 100644
--- a/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
+++ b/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
@@ -37,6 +37,10 @@ def __init__(self, flows, trex_dir, server_cpu_cores,
recipe_conf=None):
self._hosts_versions = {}
+ @property
+ def flows(self):
+ return self._flows
+
@property
def version(self):
if not self._hosts_versions:
--
2.29.2