Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/RecipeCommon/Ping/Recipe.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lnst/RecipeCommon/Ping/Recipe.py b/lnst/RecipeCommon/Ping/Recipe.py
index 320e4ac5..2ca86e07 100644
--- a/lnst/RecipeCommon/Ping/Recipe.py
+++ b/lnst/RecipeCommon/Ping/Recipe.py
@@ -13,6 +13,7 @@ class PingConf(object):
self._count = count
self._interval = interval
self._size = size
+ self._evaluators = list()
@property
def client(self):
@@ -46,6 +47,14 @@ class PingConf(object):
def size(self, value):
self._size = value
+ @property
+ def evaluators(self):
+ return self._evaluators
+
+ def register_evaluators(self, evaluators):
+ self._evaluators = list(evaluators)
+
+
class PingTestAndEvaluate(BaseRecipe):
def ping_test(self, ping_config):
results = {}
--
2.21.1