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/12/08 03:46:44
Showing 1 changed files
... ...
@@ -1904,7 +1904,7 @@ if is_service_enabled q-svc; then
1904 1904
         fi
1905 1905
    fi
1906 1906
 
1907
-elif is_service_enabled mysql && is_service_enabled nova; then
1907
+elif is_service_enabled mysql && is_service_enabled n-net; then
1908 1908
     # Create a small network
1909 1909
     $NOVA_BIN_DIR/nova-manage network create private $FIXED_RANGE 1 $FIXED_NETWORK_SIZE $NETWORK_CREATE_ARGS
1910 1910