aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/contexts/base.py
diff options
context:
space:
mode:
authorChornyi, TarasX <tarasx.chornyi@intel.com>2018-05-29 17:59:49 +0300
committerChornyi, TarasX <tarasx.chornyi@intel.com>2018-06-29 18:01:47 +0300
commit005358a39a87e42061dd5b344916c2ffe0475961 (patch)
tree847dee42251536f505076001b6ec5b9068fb60ba /yardstick/benchmark/contexts/base.py
parent6f4db35421d258cebd6e01769037e5cd64115639 (diff)
NFVI support for standalone, baremetal and heat contexts
JIRA: YARDSTICK-1257 Change-Id: I6733bd49ac91985e8f3d7722e6990e8733bb430e Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
Diffstat (limited to 'yardstick/benchmark/contexts/base.py')
-rw-r--r--yardstick/benchmark/contexts/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/benchmark/contexts/base.py b/yardstick/benchmark/contexts/base.py
index 022e365e4..1c798fbb3 100644
--- a/yardstick/benchmark/contexts/base.py
+++ b/yardstick/benchmark/contexts/base.py
@@ -81,6 +81,9 @@ class Context(object):
self.file_path = os.path.join(YARDSTICK_ROOT_PATH, file_path)
cfg = utils.read_yaml_file(self.file_path)
+ for node in cfg["nodes"]:
+ node["ctx_type"] = self.__context_type__
+
self.nodes.extend(cfg["nodes"])
self.controllers.extend([node for node in cfg["nodes"]
if node.get("role") == "Controller"])