summaryrefslogtreecommitdiffstats
path: root/deploy/config_parse.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-07-11 08:04:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-11 08:04:11 +0000
commit568068caa189a8643cdd53de774259ab76297d43 (patch)
treecfc56a28293ef12440cd1184e04f24f0a423564a /deploy/config_parse.py
parent391ae04200b14d833527de2c690ae59b7cc319a9 (diff)
parentc82b69ccdf5638dec12fd68079f6b77f75bace17 (diff)
Merge "Add cluster_param in DHA file"
Diffstat (limited to 'deploy/config_parse.py')
-rw-r--r--deploy/config_parse.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/config_parse.py b/deploy/config_parse.py
index ceaab0f5..3ee0d864 100644
--- a/deploy/config_parse.py
+++ b/deploy/config_parse.py
@@ -109,6 +109,13 @@ def export_dha_file(dha, dha_file, ofile):
plugin_list.append(plugin_str)
env.update({'plugins': ','.join(plugin_list)})
+ if 'cluster_param' in env:
+ plugin_list = []
+ for item in env.get('cluster_param'):
+ plugin_str = ':'.join([item.keys()[0], item.values()[0]])
+ plugin_list.append(plugin_str)
+ env.update({'cluster_param': ','.join(plugin_list)})
+
env.update({'CLUSTER_NAME': dha.get('NAME', "opnfv")})
env.update({'TYPE': dha.get('TYPE', "virtual")})
env.update({'FLAVOR': dha.get('FLAVOR', "cluster")})