From 4db2df5989e16b2ad1152b7851136ff4dc637252 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Sat, 8 Jul 2017 17:00:31 +0800 Subject: 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 --- deploy/config_parse.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deploy/config_parse.py') 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")}) -- cgit 1.2.3-korg