diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-07-11 08:04:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-07-11 08:04:11 +0000 |
commit | 568068caa189a8643cdd53de774259ab76297d43 (patch) | |
tree | cfc56a28293ef12440cd1184e04f24f0a423564a /deploy/client.py | |
parent | 391ae04200b14d833527de2c690ae59b7cc319a9 (diff) | |
parent | c82b69ccdf5638dec12fd68079f6b77f75bace17 (diff) |
Merge "Add cluster_param in DHA file"
Diffstat (limited to 'deploy/client.py')
-rw-r--r-- | deploy/client.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy/client.py b/deploy/client.py index 891e632c..e612160b 100644 --- a/deploy/client.py +++ b/deploy/client.py @@ -259,6 +259,9 @@ opts = [ cfg.StrOpt('plugins', help='plugin dict', default='{}'), + cfg.StrOpt('cluster_param', + help='cluster dict', + default='{}'), cfg.StrOpt('offline_deployment', help='offline_deployment', default='Disable'), @@ -803,11 +806,17 @@ class CompassClient(object): package_config['odl_l3_agent'] = "Enable" if CONF.odl_l3_agent == "Enable" else "Disable" # noqa package_config['onos_sfc'] = "Enable" if CONF.onos_sfc == "Enable" else "Disable" # noqa package_config['plugins'] = [] + package_config['cluster_param'] = [] if CONF.plugins: for item in CONF.plugins.split(','): key, value = item.split(':') package_config['plugins'].append({key: value}) + if CONF.cluster_param: + for item in CONF.cluster_param.split(','): + key, value = item.split(':') + package_config['cluster_param'].append({key: value}) + status, resp = self.client.update_cluster_config( cluster_id, package_config=package_config) LOG.info( |