aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/client.py
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-09-01 08:25:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-01 08:25:01 +0000
commit292985dab007c3ee1c3481c985871a3483d9f7bc (patch)
treebfc4888a633f5ea7bf43287cfd9a6c2f2e23dbf2 /deploy/client.py
parentfd8f9747f93b6a6d40c32ae5b727780fe1206039 (diff)
parent8c978370a123dccc0b93ee9bd2ba46f8167a2cc2 (diff)
Merge "Support offline deployment for nosdn no feature scenario"
Diffstat (limited to 'deploy/client.py')
-rw-r--r--deploy/client.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy/client.py b/deploy/client.py
index 981924f1..910aa7f8 100644
--- a/deploy/client.py
+++ b/deploy/client.py
@@ -259,6 +259,12 @@ opts = [
cfg.StrOpt('plugins',
help='plugin dict',
default='{}'),
+ cfg.StrOpt('offline_deployment',
+ help='offline_deployment',
+ default='Disable'),
+ cfg.StrOpt('offline_repo_port',
+ help='offline_repo_port',
+ default='5151'),
]
CONF.register_cli_opts(opts)
@@ -728,6 +734,12 @@ class CompassClient(object):
'password': password
}
+ ip_pattern = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')
+ compass_ip = re.findall(ip_pattern, CONF.compass_server)[0]
+ package_config["compass_ip"] = compass_ip
+ package_config["offline_repo_port"] = CONF.offline_repo_port
+ package_config["offline_deployment"] = CONF.offline_deployment
+
moon_cfgs = [
cfg
for cfg in CONF.moon_cfg.split(',')