Browse code

Create floating ip pool when quantum is enalbed

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

Change-Id: Ic150a4a4bd44e05a0a094ee80578c908162fb2c0

Tomoe Sugihara authored on 2012/03/12 21:49:54
Showing 1 changed files
... ...
@@ -1559,15 +1559,11 @@ if is_service_enabled mysql && is_service_enabled nova; then
1559 1559
     # create a small network
1560 1560
     $NOVA_DIR/bin/nova-manage network create private $FIXED_RANGE 1 $FIXED_NETWORK_SIZE
1561 1561
 
1562
-    if is_service_enabled q-svc; then
1563
-        echo "Not creating floating IPs (not supported by QuantumManager)"
1564
-    else
1565
-        # create some floating ips
1566
-        $NOVA_DIR/bin/nova-manage floating create $FLOATING_RANGE
1562
+    # create some floating ips
1563
+    $NOVA_DIR/bin/nova-manage floating create $FLOATING_RANGE
1567 1564
 
1568
-        # create a second pool
1569
-        $NOVA_DIR/bin/nova-manage floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL
1570
-    fi
1565
+    # create a second pool
1566
+    $NOVA_DIR/bin/nova-manage floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL
1571 1567
 fi
1572 1568
 
1573 1569