From c82b69ccdf5638dec12fd68079f6b77f75bace17 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Mon, 2 Jul 2018 15:28:51 +0800 Subject: 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 --- deploy/config_parse.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'deploy/config_parse.py') 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")}) -- cgit 1.2.3-korg