aboutsummaryrefslogtreecommitdiffstats
path: root/demo-k8s.sh
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2017-12-07 16:23:15 -0500
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>2018-01-18 13:27:57 +0000
commitda89d73ce4de7ef223d3ae04a9c939fcc3cab389 (patch)
tree1d3d71add283d5e03725a025362b1b35eb3e0227 /demo-k8s.sh
parentd0542ac27fd710d6e653beb0c4e1d5fc00aa03e3 (diff)
Add heatbridge support to OOM robot script
Change-Id: If703508bde4f5357d5148a71e7800c9513cb3ae9 Issue-ID: OOM-497 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> (cherry picked from commit fee3caea746ea2bc6fb7aa2da905f09d0490ff63)
Diffstat (limited to 'demo-k8s.sh')
-rwxr-xr-xdemo-k8s.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/demo-k8s.sh b/demo-k8s.sh
index 2836fca..251388b 100755
--- a/demo-k8s.sh
+++ b/demo-k8s.sh
@@ -30,6 +30,9 @@ function usage
echo " "
echo " demo.sh deleteVNF <module_name from instantiateVFW>"
echo " - Delete the module created by instantiateVFW"
+ echo " "
+ echo " demo.sh heatbridge <stack_name> <service_instance_id> <service>"
+ echo " - Run heatbridge against the stack for the given service instance and service"
}
# Set the defaults
@@ -113,6 +116,20 @@ do
echo "Cache file ${VARFILE} is not found"
exit
fi
+ shift
+ ;;
+ heatbridge)
+ TAG="heatbridge"
+ shift
+ if [ $# -ne 3 ];then
+ echo "Usage: demo.sh heatbridge <stack_name> <service_instance_id> <service>"
+ exit
+ fi
+ VARIABLES="$VARIABLES -v HB_STACK:$1"
+ shift
+ VARIABLES="$VARIABLES -v HB_SERVICE_INSTANCE_ID:$1"
+ shift
+ VARIABLES="$VARIABLES -v HB_SERVICE:$1"
shift
;;
*)