Added option Q_FLOATING_ALLOCATION_POOL to define an allocation-pool for floating IPs.
Change-Id: If31b34ebb8095aa260c19292cf63826522908db9
This commit is contained in:
parent
bd02bfb416
commit
8396d4f27c
@ -297,7 +297,7 @@ function create_quantum_initial_network() {
|
|||||||
quantum router-interface-add $ROUTER_ID $SUBNET_ID
|
quantum router-interface-add $ROUTER_ID $SUBNET_ID
|
||||||
# Create an external network, and a subnet. Configure the external network as router gw
|
# 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_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
|
quantum router-gateway-set $ROUTER_ID $EXT_NET_ID
|
||||||
|
|
||||||
if is_quantum_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
|
if is_quantum_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user