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"
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"
41 ## if more than 1 tag is supplied, the must be provided with -i or -e
50 read -s -p "WEB Site Password for user 'test': " WEB_PASSWORD
51 if [ "$WEB_PASSWORD" = "" ]; then
53 echo "WEB Password is required for user 'test'"
56 VARIABLES="$VARIABLES -v WEB_PASSWORD:$WEB_PASSWORD"
68 TAG="InitDistribution"
75 echo "Usage: demo.sh preload <vnf_name> <module_name>"
78 VARIABLES="$VARIABLES -v VNF_NAME:$1"
80 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
84 TAG="APPCMountPointDemo"
87 echo "Usage: demo.sh appc <module_name>"
90 VARIABLES="$VARIABLES -v MODULE_NAME:$1"
95 VARIABLES="$VARIABLES -v GLOBAL_BUILD_NUMBER:$$"
102 echo "Usage: demo.sh deleteVNF <module_name from instantiateVFW>"
106 if [ -e /opt/eteshare/${VARFILE} ]; then
107 VARIABLES="$VARIABLES -V /share/${VARFILE}"
109 echo "Cache file ${VARFILE} is not found"
120 ETEHOME=/var/opt/OpenECOMP_ETE
121 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
122 POD=$(kubectl --namespace onap-robot get pods | sed 's/ .*//'| grep robot)
123 kubectl --namespace onap-robot exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d ${ETEHOME}/html/logs/demo/${TAG} -i ${TAG} --display 89 2> ${TAG}.out