Browse code

Added option Q_FLOATING_ALLOCATION_POOL to define an allocation-pool for floating IPs.

Change-Id: If31b34ebb8095aa260c19292cf63826522908db9

Stephen Ma authored on 2013/02/18 22:32:59
Showing 1 changed files
... ...
@@ -297,7 +297,7 @@ function create_quantum_initial_network() {
297 297
         quantum router-interface-add $ROUTER_ID $SUBNET_ID
298 298
         # Create an external network, and a subnet. Configure the external network as router gw
299 299
         EXT_NET_ID=$(quantum net-create "$PUBLIC_NETWORK_NAME" -- --router:external=True | grep ' id ' | get_field 2)
300
-        EXT_GW_IP=$(quantum subnet-create --ip_version 4 $EXT_NET_ID $FLOATING_RANGE -- --enable_dhcp=False | grep 'gateway_ip' | get_field 2)
300
+        EXT_GW_IP=$(quantum subnet-create --ip_version 4 ${Q_FLOATING_ALLOCATION_POOL:+--allocation-pool $Q_FLOATING_ALLOCATION_POOL} $EXT_NET_ID $FLOATING_RANGE -- --enable_dhcp=False | grep 'gateway_ip' | get_field 2)
301 301
         quantum router-gateway-set $ROUTER_ID $EXT_NET_ID
302 302
 
303 303
         if is_quantum_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then