Merge "Use Neutron extension information to configure Tempest's public network"
This commit is contained in:
commit
4894ac0d29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user