summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-12-25 12:06:29 -0500
committerZhijiang Hu <hu.zhijiang@zte.com.cn>2017-12-25 16:41:33 -0500
commit6c6d834baf09bfe58266d58a84b1cd85dbd5e249 (patch)
tree5103ca09f9870dfd7e5b7d7fe577c63f2198d068 /deploy
parent27cb947c971bda2ee6ee39345250580ff75f7d7e (diff)
Now SDL cluster use kolla_internal_vip_address as VIP
Change-Id: Id22c86d4d2c7c18bba36dc9b50cd56bf75d94053 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/post/execute.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/post/execute.py b/deploy/post/execute.py
index fe4185b8..6acbe637 100644
--- a/deploy/post/execute.py
+++ b/deploy/post/execute.py
@@ -20,8 +20,8 @@ from deploy.utils import err_exit
def _config_kolla_admin_openrc(kolla_config_path):
with open('%s/globals.yml' % kolla_config_path, 'r') as f:
kolla_config = yaml.safe_load(f.read())
- if kolla_config.get('opendaylight_leader_ip_address'):
- sdn_controller_ip = kolla_config.get('opendaylight_leader_ip_address')
+ if kolla_config.get('enable_opendaylight', None) == 'yes':
+ sdn_controller_ip = kolla_config.get('kolla_internal_vip_address')
openrc_file = file('%s/admin-openrc.sh' % kolla_config_path, 'a')
sdn_ctl_ip = 'export SDN_CONTROLLER_IP=' + sdn_controller_ip + '\n'
openrc_file.write(sdn_ctl_ip)