diff options
author | Yifei Xue <xueyifei@huawei.com> | 2018-03-14 09:16:41 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2018-03-14 18:38:50 +0800 |
commit | cb4d8671693d27b26de34852795782d28046117a (patch) | |
tree | ec6e5e4150be8cfa2cd4de2816243cf4ccf4d81e /deploy/adapters/ansible/roles/process-openrc/tasks | |
parent | 93cd2cd6f456bc95ceda1f4817fffa88feb74129 (diff) |
Add SDN controller's IP in openrc file for functest
JIRA: COMPASS-590
From the time being, Functest ODL testcase calculates ODL ip thanks to Neutron IP.
It should be calculated on Installer side (releng jobs) and set via SDN_CONTROLLER_IP in Functest env instead.
https://git.opnfv.org/functest/tree/functest/opnfv_tests/sdn/odl/odl.py#n185
It ensures that Functest can rely on SDN_CONTROLLER_IP in all cases (OpenStack end users included)
Change-Id: I01c0af952dbb21592aa973daaea3845346dc833f
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/process-openrc/tasks')
-rw-r--r-- | deploy/adapters/ansible/roles/process-openrc/tasks/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/process-openrc/tasks/main.yml b/deploy/adapters/ansible/roles/process-openrc/tasks/main.yml index aed68b88..d8de1b2d 100644 --- a/deploy/adapters/ansible/roles/process-openrc/tasks/main.yml +++ b/deploy/adapters/ansible/roles/process-openrc/tasks/main.yml @@ -24,3 +24,9 @@ dest: /opt/openrc regexp: "internalURL" replace: "publicURL" + +- name: add the IP of SDN controller + lineinfile: + dest: /opt/openrc + state: present + line: "export SDN_CONTROLLER_IP={{ public_vip['ip'] }}" |