Fix ODL restconf port if Compass 93/64193/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 30 Oct 2018 10:20:00 +0000 (11:20 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 30 Oct 2018 10:20:00 +0000 (11:20 +0100)
It conforms with the previous port which was hardcoded in odl.py.
The default value (8181) seems wrong [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-gambia/7/console

Change-Id: I9142d4f20a29b1f46b06bb1fed5569a299f55eff
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jjb/functest/functest-alpine.sh

index 465d91e..42bf60b 100755 (executable)
@@ -154,6 +154,10 @@ if [[ ${INSTALLER_TYPE} == 'compass' && ${DEPLOY_SCENARIO} =~ 'sfc' ]]; then
     envs="${envs} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK}"
 fi
 
+if [[ ${INSTALLER_TYPE} == 'compass' ]] || [[ ${DEPLOY_SCENARIO} == *"odl"* ]]; then
+      envs="${envs} -e SDN_CONTROLLER_RESTCONFPORT=8080"
+fi
+
 if [[ ${DEPLOY_SCENARIO} == *"ovs"* ]] || [[ ${DEPLOY_SCENARIO} == *"fdio"* ]]; then
     if [[ -n ${IMAGE_PROPERTIES} ]]; then
         IMAGE_PROPERTIES="${IMAGE_PROPERTIES},hw_mem_page_size:large"