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
This commit is contained in:
Aaron Rosen 2012-10-30 12:57:47 -07:00
parent 35dee27042
commit 8ec719b4d4

View File

@ -1916,7 +1916,7 @@ if is_service_enabled q-svc; then
fi fi
fi fi
elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled nova; then elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then
# Create a small network # Create a small network
$NOVA_BIN_DIR/nova-manage network create "$PRIVATE_NETWORK_NAME" $FIXED_RANGE 1 $FIXED_NETWORK_SIZE $NETWORK_CREATE_ARGS $NOVA_BIN_DIR/nova-manage network create "$PRIVATE_NETWORK_NAME" $FIXED_RANGE 1 $FIXED_NETWORK_SIZE $NETWORK_CREATE_ARGS