aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/client.py
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2016-02-18 19:18:36 +0800
committerbaigk <baiguoku@huawei.com>2016-02-18 19:18:36 +0800
commit19e5c05e7bbb5b0ca8e5e52e7ae0a64bcf25da54 (patch)
tree1bab1d4bd66f1422e04c811a5242780c882314b7 /deploy/client.py
parent6cc26dd218e9277f748cee30c222cdb1c420a848 (diff)
support odl_l3_agent enable flag param
JIRA: COMPASS-318 Change-Id: I541cdb9c1b2f6873b1426b470a61af829d6bffce Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'deploy/client.py')
-rw-r--r--deploy/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/client.py b/deploy/client.py
index fc5dc729..a87decc9 100644
--- a/deploy/client.py
+++ b/deploy/client.py
@@ -235,6 +235,9 @@ opts = [
cfg.StrOpt('rsa_file',
help='ssh rsa key file',
default=''),
+ cfg.StrOpt('odl_l3_agent',
+ help='odl l3 agent enable flag',
+ default='Disable'),
]
CONF.register_cli_opts(opts)
@@ -723,6 +726,7 @@ class CompassClient(object):
package_config['enable_secgroup'] = (CONF.enable_secgroup == "true")
package_config['enable_fwaas'] = (CONF.enable_fwaas== "true")
package_config['enable_vpnaas'] = (CONF.enable_vpnaas== "true")
+ package_config['odl_l3_agent'] = "Enable" if CONF.odl_l3_agent == "Enable" else "Disable"
status, resp = self.client.update_cluster_config(
cluster_id, package_config=package_config)