diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-07-08 17:00:31 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-07-10 09:46:02 +0800 |
commit | 4db2df5989e16b2ad1152b7851136ff4dc637252 (patch) | |
tree | ac10b2fd4ee83f492d3179fe28782b95c14445cb /deploy/client.py | |
parent | acdb47ae9c9866db6192e2754e8aaa5e752ba854 (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/client.py')
-rw-r--r-- | deploy/client.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/client.py b/deploy/client.py index 433d90ec..810ac118 100644 --- a/deploy/client.py +++ b/deploy/client.py @@ -256,6 +256,9 @@ opts = [ cfg.StrOpt('onos_sfc', help='onos_sfc enable flag', default='Disable'), + cfg.StrOpt('plugins', + help='plugin dict', + default='{}'), ] CONF.register_cli_opts(opts) @@ -764,6 +767,11 @@ class CompassClient(object): 'moon'] = "Enable" if CONF.moon == "Enable" else "Disable" package_config[ 'onos_sfc'] = "Enable" if CONF.onos_sfc == "Enable" else "Disable" + package_config['plugins'] = [] + if CONF.plugins: + for item in CONF.plugins.split(','): + key, value = item.split(':') + package_config['plugins'].append({key: value}) status, resp = self.client.update_cluster_config( cluster_id, package_config=package_config) |