Browse code

Merge "Have lib/tempest to create shared network"

Zuul authored on 2019/03/30 09:06:19
Showing 1 changed files
... ...
@@ -255,6 +255,9 @@ function configure_tempest {
255 255
     # and the public_network_id should not be set.
256 256
     if [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "True" ]] && is_networking_extension_supported 'external-net'; then
257 257
         public_network_id=$(openstack network show -f value -c id $PUBLIC_NETWORK_NAME)
258
+        # make sure shared network presence does not confuses the tempest tests
259
+        openstack network create --share shared
260
+        openstack subnet create --description shared-subnet --subnet-range ${TEMPEST_SHARED_POOL:-192.168.233.0/24} --network shared shared-subnet
258 261
     fi
259 262
 
260 263
     iniset $TEMPEST_CONFIG DEFAULT use_syslog $SYSLOG