aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/sdn
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-12 09:52:21 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-12 09:52:21 +0200
commit06b9ace7a0333d723972502ab3ce5784b6cba689 (patch)
tree7a567caacb61a02132b7e6e1d7b55528ba6dfbee /functest/opnfv_tests/sdn
parent2ad8f039112977c4dfdf4389586df74263d753b6 (diff)
Protect vs former interface format
Compass still set publicURL [1] [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-fraser/lastFailedBuild/consoleFull Change-Id: I88c6ca336a7017f97f4c07719156e567d1afb9df Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/sdn')
-rw-r--r--functest/opnfv_tests/sdn/odl/odl.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/opnfv_tests/sdn/odl/odl.py b/functest/opnfv_tests/sdn/odl/odl.py
index 180fa0eab..21c879efb 100644
--- a/functest/opnfv_tests/sdn/odl/odl.py
+++ b/functest/opnfv_tests/sdn/odl/odl.py
@@ -159,8 +159,10 @@ class ODLTests(robotframework.RobotFramework):
cloud = os_client_config.make_shade()
neutron_id = cloud.search_services('neutron')[0].id
endpoint = cloud.search_endpoints(
- filters={'interface': os.environ.get('OS_INTERFACE', 'public'),
- 'service_id': neutron_id})[0].url
+ filters={
+ 'interface': os.environ.get(
+ 'OS_INTERFACE', 'public').replace('URL', ''),
+ 'service_id': neutron_id})[0].url
kwargs = {'neutronurl': endpoint}
kwargs['odlip'] = env.get('SDN_CONTROLLER_IP')
kwargs['odlwebport'] = '8080'