Merge "Use Neutron extension information to configure Tempest's public network"

This commit is contained in:
Jenkins 2016-05-18 15:36:38 +00:00 committed by Gerrit Code Review
commit 4894ac0d29

View File

@ -238,7 +238,10 @@ function configure_tempest {
ssh_connect_method=${TEMPEST_SSH_CONNECT_METHOD:-$ssh_connect_method}
if is_service_enabled q-l3; then
# the public network (for floating ip access) is only available
# if the extension is enabled.
EXTERNAL_NETWORK_EXT=$(neutron ext-list | grep 'external-net' | get_field 1)
if [[ -n $EXTERNAL_NETWORK_EXT ]]; then
public_network_id=$(neutron net-list | grep $PUBLIC_NETWORK_NAME | \
awk '{print $2}')
fi