Adding ability to balance load between different cell servers.

Adding ability to specify structure/size of the cell.

Change-Id: I5e87c99fe8812ba0a974d7815ab8ddc64193a608
diff --git a/utils/warden/bin/create-cell b/utils/warden/bin/create-cell
index 8cbb1e1..b75a30c 100755
--- a/utils/warden/bin/create-cell
+++ b/utils/warden/bin/create-cell
@@ -3,15 +3,23 @@
 
 name="$1"
 ipx="$2"
-shift 2
+spec="$3"
+shift 3
 key="$@"
 
 cd $(dirname $0)
 
+nodes=${spec%+*}
+mininet=${spec#*+}
+
 sudo lxc-attach -n bit-proxy -- bash -c "grep -qF \"$key\" /home/sdn/.ssh/authorized_keys || echo $key >> /home/sdn/.ssh/authorized_keys"
 
-./clone-node base-mininet ${ipx/x/0} $name-n "$key"
+if [ $mininet -ge 1 ]; then
+    ./clone-node base-mininet ${ipx/x/0} $name-n "$key"
+fi
 
-for n in {1..3}; do
+let n=1
+while [ $n -le $nodes ]; do
     ./clone-node base-onos ${ipx/x/$n} $name-$n "$key"
+    let n=n+1
 done