4 # Execute tags built to support the hands on demo,
8 echo "Usage: demo.sh <command> [<parameters>]"
11 echo " - Execute both init_customer + distribute"
13 echo " demo.sh init_customer"
14 echo " - Create demo customer (Demonstration) and services, etc."
16 echo " demo.sh distribute [<prefix>]"
17 echo " - Distribute demo models (demoVFW and demoVLB)"
19 echo " demo.sh preload <vnf_name> <module_name>"
20 echo " - Preload data for VNF for the <module_name>"
22 echo " demo.sh appc <module_name>"
23 echo " - provide APPC with vFW module mount point for closed loop"
25 echo " demo.sh init_robot"
26 echo " - Initialize robot after all ONAP VMs have started"
28 echo " demo.sh instantiateVFW"
29 echo " - Instantiate vFW module for the a demo customer (DemoCust<uuid>)"
31 echo " demo.sh deleteVNF <module_name from instantiateVFW>"
32 echo " - Delete the module created by instantiateVFW"
34 echo " demo.sh heatbridge <stack_name> <service_instance_id> <service>"
35 echo " - Run heatbridge against the stack for the given service instance and service"
44 ## if more than 1 tag is supplied, the must be provided with -i or -e
53 read -s -p "WEB Site Password for user 'test': " WEB_PASSWORD
54 if [ "$WEB_PASSWORD" = "" ]; then
56 echo "WEB Password is required for user 'test'"
59 VARIABLES="$VARIABLES -v WEB_PASSWORD:$WEB_PASSWORD"
71 TAG="InitDistribution"
74 VARIABLES="$VARIABLES -v DEMO_PREFIX:$1"
82 echo "Usage: demo.sh preload <vnf_name> <module_name>"
85 VARIABLES="$VARIABLES -v VNF_NAME:$1"
87 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
91 TAG="APPCMountPointDemo"
94 echo "Usage: demo.sh appc <module_name>"
97 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
102 VARIABLES="$VARIABLES -v GLOBAL_BUILD_NUMBER:$$"
109 echo "Usage: demo.sh deleteVNF <module_name from instantiateVFW>"
113 if [ -e /opt/eteshare/${VARFILE} ]; then
114 VARIABLES="$VARIABLES -V /share/${VARFILE}"
116 echo "Cache file ${VARFILE} is not found"
125 echo "Usage: demo.sh heatbridge <stack_name> <service_instance_id> <service>"
128 VARIABLES="$VARIABLES -v HB_STACK:$1"
130 VARIABLES="$VARIABLES -v HB_SERVICE_INSTANCE_ID:$1"
132 VARIABLES="$VARIABLES -v HB_SERVICE:$1"
141 ETEHOME=/var/opt/OpenECOMP_ETE
142 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
143 POD=$(kubectl --namespace onap-robot get pods | sed 's/ .*//'| grep robot)
144 kubectl --namespace onap-robot exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/demo/${TAG} -i ${TAG} --display 89 2> ${TAG}.out