CORD-313 update generate command script for API change

Change-Id: Iadd6eafe6bd12cd2547b51e5944bb2552930be76
diff --git a/roles/head-node/files/commands/cord-generate b/roles/head-node/files/commands/cord-generate
index e70d3f6..1ac130c 100755
--- a/roles/head-node/files/commands/cord-generate
+++ b/roles/head-node/files/commands/cord-generate
@@ -7,22 +7,11 @@
     echo "usage: $PROG [options]"
     echo "    -hc|--host-count      number of hosts to expect to find in ONOS"
     echo "    -sc|--switch-count    number of switches to expect to find in ONOS"
-    echo "    -o|--onos             ONOS to which to connect to get host / switch information"
-    echo "    -u|--user             ONOS user (not currently used)"
-    echo "    -p|--passwd           ONOS password (not currently used)"
     echo "    -h|--help             this message"
 }
 
 HOST_COUNT=0
 SWITCH_COUNT=0
-ONOS_USER="karaf"
-ONOS_PASSWORD="karaf"
-ONOS_HOST="onos-fabric"
-
-if [ $# -eq 0 ]; then
-    usage
-    exit 0
-fi 
 
 while [ $# -gt 0 ]; do
     case $1 in
@@ -34,15 +23,6 @@
 	    shift
 	    SWITCH_COUNT=$1
 	    ;;
-	-o|--onos)
-            shift
-	    ;;
-	-p|--passwd)
-	    shift
-	    ;;
-	-u|--user)
-            shift
-	    ;;
         -h|--help)
 	    usage
 	    exit 0
@@ -51,6 +31,4 @@
     shift
 done
 
-curl --fail -sSL -XPOST http://$CORD_HEAD_NODE:4245/config/ -d "{\"hostcount\":$HOST_COUNT,\"switchcount\":$SWITCH_COUNT,\"onosip\":\"$ONOS_HOST\"}"
-
-echo $?
+exec curl --fail -sSL -XPOST http://$CORD_HEAD_NODE:4245/config/ -d "{\"hostcount\":$HOST_COUNT,\"switchcount\":$SWITCH_COUNT}"