Repository: stratos Updated Branches: refs/heads/master 7f5d30e4f -> 4398baaf7
Add new scripts to update nw partition and deployment policy Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/4398baaf Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/4398baaf Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/4398baaf Branch: refs/heads/master Commit: 4398baaf795329f224cb27806ec74cd011429668 Parents: 7f5d30e Author: Lahiru Sandaruwan <[email protected]> Authored: Sat Apr 25 09:54:17 2015 +0530 Committer: Lahiru Sandaruwan <[email protected]> Committed: Sat Apr 25 09:54:17 2015 +0530 ---------------------------------------------------------------------- .../scripts/common/update-deployment-policy.sh | 12 ++++++++++++ .../scripts/common/update-network-partition.sh | 11 +++++++++++ .../scripts/mock/update-network-partition.sh | 6 ++++++ .../scripts/openstack/update-network-partition.sh | 11 +++++++++++ 4 files changed, 40 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/4398baaf/samples/applications/nested-group/scripts/common/update-deployment-policy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/nested-group/scripts/common/update-deployment-policy.sh b/samples/applications/nested-group/scripts/common/update-deployment-policy.sh new file mode 100755 index 0000000..8b03c4c --- /dev/null +++ b/samples/applications/nested-group/scripts/common/update-deployment-policy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +iaas=$1 +host_ip="localhost" +host_port=9443 + +script_path=`cd "$prgdir"; pwd` + +deployment_policies_path=`cd "${script_path}/../../../../deployment-policies"; pwd` + +curl -X PUT -H "Content-Type: application/json" -d "@${deployment_policies_path}/deployment-policy-2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies + http://git-wip-us.apache.org/repos/asf/stratos/blob/4398baaf/samples/applications/nested-group/scripts/common/update-network-partition.sh ---------------------------------------------------------------------- diff --git a/samples/applications/nested-group/scripts/common/update-network-partition.sh b/samples/applications/nested-group/scripts/common/update-network-partition.sh new file mode 100755 index 0000000..5af767c --- /dev/null +++ b/samples/applications/nested-group/scripts/common/update-network-partition.sh @@ -0,0 +1,11 @@ +#!/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` + +curl -X PUT -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions http://git-wip-us.apache.org/repos/asf/stratos/blob/4398baaf/samples/applications/nested-group/scripts/mock/update-network-partition.sh ---------------------------------------------------------------------- diff --git a/samples/applications/nested-group/scripts/mock/update-network-partition.sh b/samples/applications/nested-group/scripts/mock/update-network-partition.sh new file mode 100755 index 0000000..329684b --- /dev/null +++ b/samples/applications/nested-group/scripts/mock/update-network-partition.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +iaas="mock" +common_folder=`cd "${script_path}/../common"; pwd` + +bash ${common_folder}/update-network-partition.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/4398baaf/samples/applications/nested-group/scripts/openstack/update-network-partition.sh ---------------------------------------------------------------------- diff --git a/samples/applications/nested-group/scripts/openstack/update-network-partition.sh b/samples/applications/nested-group/scripts/openstack/update-network-partition.sh new file mode 100755 index 0000000..5af767c --- /dev/null +++ b/samples/applications/nested-group/scripts/openstack/update-network-partition.sh @@ -0,0 +1,11 @@ +#!/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` + +curl -X PUT -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions
