summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/create_instances.sh
blob: 5d238c35215a6c7262134b8f578b24a18ee66492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
# matthew.lijun@huawei.com
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

#! /usr/bin/env bash

set -e

THIS_DIR=`pwd`

OPENRC_PATH=/opt/
CREATE_INSTANCE_PATH=$THIS_DIR

INSTANCE_NUM=3
NET_ID=531c4557-7349-4984-8d5e-cceebb77205f
FLAVOR_TYPE=m1.small
IMAGE_ID=7c2f3e2b-cf6e-44ed-83ac-e87712167f9e
SEC_GROUP=default
INSTANCE_NAME=example_

source $OPENRC_PATH/admin-openrc.sh
cd $CREATE_INSTANCE_PATH
for((count=1;count<=$INSTANCE_NUM;count++))
do
   INSTANCE_NAME_TMP=${INSTANCE_NAME}${count}
   nova boot --nic net-id=${NET_ID} --flavor=${FLAVOR_TYPE} --image=${IMAGE_ID} --security_group=${SEC_GROUP} ${INSTANCE_NAME_TMP}
done
ivered features including use cases, implementation, and configuration specifics. The following Configuration Guides and User Guides assume that the reader already has some knowledge about a given project's specifics and deliverables. These Guides are intended to be used following the installation with an OPNFV installer to allow users to deploy and implement feature delivered by OPNFV. If you are unsure about the specifics of a given project, please refer to the OPNFV wiki page at http://wiki.opnfv.org for more details. Feature Configuration Guides ============================ - :ref:`Auto Configuration Guide <auto-configguide>` - :ref:`Barometer Configuration Guide <barometer-configguide>` - :ref:`Doctor Configuration Guide <doctor-configguide>` - :ref:`IPv6 Configuration Guide <ipv6-configguide>` - :ref:`Netready Configuration Guide <netready-configguide>` - :ref:`Orchestra Configuration Guide <orchestra-configguide>` - :ref:`SDNVPN Configuration Guide <sdnvpn-configguide>` - :ref:`SFC Configuration Guide <sfc-configguide>` Feature User Guides =================== - :ref:`Auto User Guide <auto-userguide>` - :ref:`Barometer User Guide <barometer-userguide>` - :ref:`Doctor User Guide <doctor-userguide>` - :ref:`IPv6 User Guide <ipv6-userguide>` - :ref:`OpenContrail Virtual Networking User Guide <ovno-userguide>` - :ref:`Orchestra User Guide <orchestra-userguide>` - :ref:`SDNVPN User Guide <sdnvpn-userguide>` - :ref:`SFC User Guide <sfc-userguide>`