aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/client.py
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-08-15 11:40:26 +0800
committerYifei Xue <xueyifei@huawei.com>2017-08-31 15:33:56 +0800
commit8c978370a123dccc0b93ee9bd2ba46f8167a2cc2 (patch)
treefe3b398de2de17e5c30ceea456dbe123bc1e6f69 /deploy/client.py
parent760c966b5095fb0cfe0a2ac4014a337531a8df1d (diff)
Support offline deployment for nosdn no feature scenario
JIRA: - Add a repo docker which includes ubuntu PPA and python packages used for offline deployment. Change-Id: Iad9b0df7f33f5a7ab974c5deffb408fc93b3f3ad Signed-off-by: Yifei Xue <xueyifei@huawei.com>
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(',')