aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/config_parse.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-07-02 15:28:51 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-07-02 15:28:51 +0800
commitc82b69ccdf5638dec12fd68079f6b77f75bace17 (patch)
tree96f5c964f87857c949db4cd9ded7018136d53680 /deploy/config_parse.py
parent8d2dd5e06e5f1a3983b93cc39022c3e622268ee1 (diff)
Add cluster_param in DHA file
JIRA: COMPASS-603 Users may need some extra parameters to further customize the deployment. Change-Id: I64f7f39a49f17350d159b3733f34ffd816849174 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
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")})