You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/05/11 15:20:44 UTC

stratos git commit: Addng a script to update network partition

Repository: stratos
Updated Branches:
  refs/heads/master 4b332007f -> 273c2e1b2


Addng a script to update network partition


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/273c2e1b
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/273c2e1b
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/273c2e1b

Branch: refs/heads/master
Commit: 273c2e1b29bba1f7aad226fa8c4f0f6927206a1e
Parents: 4b33200
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Mon May 11 18:50:34 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Mon May 11 18:50:40 2015 +0530

----------------------------------------------------------------------
 .../scripts/common/update-network-partition.sh            | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/273c2e1b/samples/applications/simple/single-cartridge-app/scripts/common/update-network-partition.sh
----------------------------------------------------------------------
diff --git a/samples/applications/simple/single-cartridge-app/scripts/common/update-network-partition.sh b/samples/applications/simple/single-cartridge-app/scripts/common/update-network-partition.sh
new file mode 100755
index 0000000..376dd6c
--- /dev/null
+++ b/samples/applications/simple/single-cartridge-app/scripts/common/update-network-partition.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+iaas=$1
+host_ip="localhost"
+host_port=9443
+
+script_path=`cd "$prgdir"; pwd`
+network_partitions_path=`cd "${script_path}/../../../../../network-partitions/${iaas}"; pwd`
+echo "Updating network partition..."
+curl -X PUT -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-1.json" -k -v -u admin:admin https://${host_ip}:9443/api/networkPartitions