Update demo.sh to make ipv4-oam-address optional 59/58459/1
authorMarco Platania <platania@research.att.com>
Wed, 1 Aug 2018 16:47:35 +0000 (12:47 -0400)
committerMarco Platania <platania@research.att.com>
Wed, 1 Aug 2018 16:47:35 +0000 (12:47 -0400)
Change-Id: If204432dcd98309edf9509d92e8f0c740deef7e0
Issue-ID: INT-602
Signed-off-by: Marco Platania <platania@research.att.com>
boot/robot/demo.sh

index a5a8e40..b8df99e 100755 (executable)
@@ -31,7 +31,7 @@ function usage
        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> <ipv4-oam-address>"
+       echo "       demo.sh heatbridge <stack_name> <service_instance_id> <service> [<ipv4-oam-address>]"
     echo "               - Run heatbridge against the stack for the given service instance and service"
 }
 
@@ -130,8 +130,8 @@ do
        heatbridge)
                        TAG="heatbridge"
                        shift
-                       if [ $# -ne 4 ];then
-                               echo "Usage: demo.sh heatbridge <stack_name> <service_instance_id> <service> <ipv4-oam-address>"
+                       if [ $# -lt 3 ];then
+                               echo "Usage: demo.sh heatbridge <stack_name> <service_instance_id> <service> [<ipv4-oam-address>]"
                                exit
                        fi
                        VARIABLES="$VARIABLES -v HB_STACK:$1"