summaryrefslogtreecommitdiffstats
path: root/deploy/config_parse.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-07-08 17:00:31 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-07-10 09:46:02 +0800
commit4db2df5989e16b2ad1152b7851136ff4dc637252 (patch)
treeac10b2fd4ee83f492d3179fe28782b95c14445cb /deploy/config_parse.py
parentacdb47ae9c9866db6192e2754e8aaa5e752ba854 (diff)
Add opendaylight switch
Add key plugins in DHA file and declare opendaylight as a plugin in odl scenario. Change-Id: Iefc07b691d5052a9980d8c87f23a9f82be61ed6e Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/config_parse.py')
-rw-r--r--deploy/config_parse.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/config_parse.py b/deploy/config_parse.py
index c7546eeb..363516b4 100644
--- a/deploy/config_parse.py
+++ b/deploy/config_parse.py
@@ -54,6 +54,12 @@ def export_dha_file(s, dha_file, conf_dir, ofile):
env.update(s)
if env.get('hosts', []):
env.pop('hosts')
+ if 'plugins' in env:
+ plugin_list = []
+ for item in env.get('plugins'):
+ plugin_str = ':'.join([item.keys()[0], item.values()[0]])
+ plugin_list.append(plugin_str)
+ env.update({'plugins': ','.join(plugin_list)})
env.update({'TYPE': s.get('TYPE', "virtual")})
env.update({'FLAVOR': s.get('FLAVOR', "cluster")})