Create floating ip pool when quantum is enalbed

QuantumManager didn't use to support floating ip, but now it should.

Change-Id: Ic150a4a4bd44e05a0a094ee80578c908162fb2c0
This commit is contained in:
Tomoe Sugihara 2012-03-12 21:49:54 +09:00
parent 8da5656ffd
commit 1c77d700f9

View File

@ -1559,15 +1559,11 @@ if is_service_enabled mysql && is_service_enabled nova; then
# create a small network
$NOVA_DIR/bin/nova-manage network create private $FIXED_RANGE 1 $FIXED_NETWORK_SIZE
if is_service_enabled q-svc; then
echo "Not creating floating IPs (not supported by QuantumManager)"
else
# create some floating ips
$NOVA_DIR/bin/nova-manage floating create $FLOATING_RANGE
# create some floating ips
$NOVA_DIR/bin/nova-manage floating create $FLOATING_RANGE
# create a second pool
$NOVA_DIR/bin/nova-manage floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL
fi
# create a second pool
$NOVA_DIR/bin/nova-manage floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL
fi