4 # Execute tags built to support the hands on demo,
8 echo "Usage: demo.sh namespace <command> [<parameters>]"
10 echo " demo.sh <namespace> init"
11 echo " - Execute both init_customer + distribute"
13 echo " demo.sh <namespace> init_customer"
14 echo " - Create demo customer (Demonstration) and services, etc."
16 echo " demo.sh <namespace> distribute [<prefix>]"
17 echo " - Distribute demo models (demoVFW and demoVLB)"
19 echo " demo.sh <namespace> preload <vnf_name> <module_name>"
20 echo " - Preload data for VNF for the <module_name>"
22 echo " demo.sh <namespace> appc <module_name>"
23 echo " - provide APPC with vFW module mount point for closed loop"
25 echo " demo.sh <namespace> init_robot [ <etc_hosts_prefix> ]"
26 echo " - Initialize robot after all ONAP VMs have started"
28 echo " demo.sh <namespace> instantiateVFW"
29 echo " - Instantiate vFW module for the a demo customer (DemoCust<uuid>)"
31 echo " demo.sh <namespace> deleteVNF <module_name from instantiateVFW>"
32 echo " - Delete the module created by instantiateVFW"
34 echo " demo.sh <namespace> heatbridge <stack_name> <service_instance_id> <service>"
35 echo " - Run heatbridge against the stack for the given service instance and service"
40 echo "Number of parameters:"
52 ## if more than 1 tag is supplied, the must be provided with -i or -e
63 read -s -p "WEB Site Password for user 'test': " WEB_PASSWORD
64 if [ "$WEB_PASSWORD" = "" ]; then
66 echo "WEB Password is required for user 'test'"
69 VARIABLES="$VARIABLES -v WEB_PASSWORD:$WEB_PASSWORD"
72 VARIABLES="$VARIABLES -v HOSTS_PREFIX:$1"
85 TAG="InitDistribution"
88 VARIABLES="$VARIABLES -v DEMO_PREFIX:$1"
96 echo "Usage: demo.sh <namespace> preload <vnf_name> <module_name>"
99 VARIABLES="$VARIABLES -v VNF_NAME:$1"
101 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
105 TAG="APPCMountPointDemo"
108 echo "Usage: demo.sh <namespace> appc <module_name>"
111 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
116 VARIABLES="$VARIABLES -v GLOBAL_BUILD_NUMBER:$$"
123 echo "Usage: demo.sh <namespace> deleteVNF <module_name from instantiateVFW>"
127 if [ -e /opt/eteshare/${VARFILE} ]; then
128 VARIABLES="$VARIABLES -V /share/${VARFILE}"
130 echo "Cache file ${VARFILE} is not found"
139 echo "Usage: demo.sh <namespace> heatbridge <stack_name> <service_instance_id> <service>"
142 VARIABLES="$VARIABLES -v HB_STACK:$1"
144 VARIABLES="$VARIABLES -v HB_SERVICE_INSTANCE_ID:$1"
146 VARIABLES="$VARIABLES -v HB_SERVICE:$1"
155 ETEHOME=/var/opt/OpenECOMP_ETE
156 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
157 POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
158 kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/demo/${TAG} -i ${TAG} --display 89 2> ${TAG}.out