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"
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"
48 ## if more than 1 tag is supplied, the must be provided with -i or -e
57 read -s -p "WEB Site Password for user 'test': " WEB_PASSWORD
58 if [ "$WEB_PASSWORD" = "" ]; then
60 echo "WEB Password is required for user 'test'"
63 VARIABLES="$VARIABLES -v WEB_PASSWORD:$WEB_PASSWORD"
75 TAG="InitDistribution"
78 VARIABLES="$VARIABLES -v DEMO_PREFIX:$1"
86 echo "Usage: demo.sh preload <vnf_name> <module_name>"
89 VARIABLES="$VARIABLES -v VNF_NAME:$1"
91 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
95 TAG="APPCMountPointDemo"
98 echo "Usage: demo.sh appc <module_name>"
101 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
106 VARIABLES="$VARIABLES -v GLOBAL_BUILD_NUMBER:$$"
113 echo "Usage: demo.sh deleteVNF <module_name from instantiateVFW>"
117 if [ -e /opt/eteshare/${VARFILE} ]; then
118 VARIABLES="$VARIABLES -V /share/${VARFILE}"
120 echo "Cache file ${VARFILE} is not found"
129 echo "Usage: demo.sh heatbridge <stack_name> <service_instance_id> <service>"
132 VARIABLES="$VARIABLES -v HB_STACK:$1"
134 VARIABLES="$VARIABLES -v HB_SERVICE_INSTANCE_ID:$1"
136 VARIABLES="$VARIABLES -v HB_SERVICE:$1"
145 ETEHOME=/var/opt/OpenECOMP_ETE
146 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
147 POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
148 kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/demo/${TAG} -i ${TAG} --display 89 2> ${TAG}.out