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>
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'] }}"