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 [ <etc_hosts_prefix> ]"
26 echo " - Initialize robot after all ONAP VMs have started"
28 echo " demo.sh instantiateVFW | instantiateVFWCL"
29 echo " - Instantiate vFW or vFWCL 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> [<ipv4-oam-address>]"
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"
62 VARIABLES="$VARIABLES -v HOSTS_PREFIX:$1"
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:$$"
110 TAG="instantiateVFWCL"
111 VARIABLES="$VARIABLES -v GLOBAL_BUILD_NUMBER:$$"
118 echo "Usage: demo.sh deleteVNF <module_name from instantiateVFW>"
122 if [ -e /opt/eteshare/${VARFILE} ]; then
123 VARIABLES="$VARIABLES -V /share/${VARFILE}"
125 echo "Cache file ${VARFILE} is not found"
134 echo "Usage: demo.sh heatbridge <stack_name> <service_instance_id> <service> [<ipv4-oam-address>]"
137 VARIABLES="$VARIABLES -v HB_STACK:$1"
139 VARIABLES="$VARIABLES -v HB_SERVICE_INSTANCE_ID:$1"
141 VARIABLES="$VARIABLES -v HB_SERVICE:$1"
143 VARIABLES="$VARIABLES -v HB_IPV4_OAM_ADDRESS:$1"
152 ETEHOME=/var/opt/OpenECOMP_ETE
153 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
154 docker exec openecompete_container ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/demo/${TAG} -i ${TAG} --display 89 2> ${TAG}.out