From 8396d4f27c296eed4ced5e44d868e6d90257e73e Mon Sep 17 00:00:00 2001 From: Stephen Ma Date: Mon, 18 Feb 2013 05:32:59 -0800 Subject: [PATCH] Added option Q_FLOATING_ALLOCATION_POOL to define an allocation-pool for floating IPs. Change-Id: If31b34ebb8095aa260c19292cf63826522908db9 --- lib/quantum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quantum b/lib/quantum index f3a3ec4d2e..61a5218e5d 100644 --- a/lib/quantum +++ b/lib/quantum @@ -297,7 +297,7 @@ function create_quantum_initial_network() { quantum router-interface-add $ROUTER_ID $SUBNET_ID # Create an external network, and a subnet. Configure the external network as router gw EXT_NET_ID=$(quantum net-create "$PUBLIC_NETWORK_NAME" -- --router:external=True | grep ' id ' | get_field 2) - EXT_GW_IP=$(quantum subnet-create --ip_version 4 $EXT_NET_ID $FLOATING_RANGE -- --enable_dhcp=False | grep 'gateway_ip' | get_field 2) + 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) quantum router-gateway-set $ROUTER_ID $EXT_NET_ID if is_quantum_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then