Browse code

nova-manage network commands only when n-net enabled

This patch checks if n-net is enabled rather than any nova service
before creating networks through nova. Fixes bug 1073313

Change-Id: I8810737ddbb26a5e281060f5395cfad5d186b6d3

Aaron Rosen authored on 2012/10/31 04:57:47
Showing 1 changed files
... ...
@@ -1916,7 +1916,7 @@ if is_service_enabled q-svc; then
1916 1916
         fi
1917 1917
    fi
1918 1918
 
1919
-elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled nova; then
1919
+elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then
1920 1920
     # Create a small network
1921 1921
     $NOVA_BIN_DIR/nova-manage network create "$PRIVATE_NETWORK_NAME" $FIXED_RANGE 1 $FIXED_NETWORK_SIZE $NETWORK_CREATE_ARGS
1922 1922