diff options
author | 2018-07-11 08:04:11 +0000 | |
---|---|---|
committer | 2018-07-11 08:04:11 +0000 | |
commit | 568068caa189a8643cdd53de774259ab76297d43 (patch) | |
tree | cfc56a28293ef12440cd1184e04f24f0a423564a /deploy/config_parse.py | |
parent | 391ae04200b14d833527de2c690ae59b7cc319a9 (diff) | |
parent | c82b69ccdf5638dec12fd68079f6b77f75bace17 (diff) |
Merge "Add cluster_param in DHA file"
Diffstat (limited to 'deploy/config_parse.py')
-rw-r--r-- | deploy/config_parse.py | 7 |
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")}) |