You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ch...@apache.org on 2015/04/04 20:22:35 UTC

[2/2] stratos git commit: Fixing complex-app undeploy to remove deployment policy and network partition

Fixing complex-app undeploy to remove deployment policy and network partition


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

Branch: refs/heads/master
Commit: 571bda5d5e42679fcb3f9c89134c8f6eb759ac56
Parents: d4c581c
Author: Chamila de Alwis <ch...@apache.org>
Authored: Sat Apr 4 16:38:32 2015 +0530
Committer: Chamila de Alwis <ch...@apache.org>
Committed: Sat Apr 4 23:52:03 2015 +0530

----------------------------------------------------------------------
 samples/applications/complex-app/scripts/common/undeploy.sh | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/571bda5d/samples/applications/complex-app/scripts/common/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/complex-app/scripts/common/undeploy.sh b/samples/applications/complex-app/scripts/common/undeploy.sh
index b02bb03..455174f 100644
--- a/samples/applications/complex-app/scripts/common/undeploy.sh
+++ b/samples/applications/complex-app/scripts/common/undeploy.sh
@@ -25,6 +25,12 @@ curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://
 echo "Removing autoscale policies..."
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies/autoscaling-policy-1
 
+echo "Removing deployment policies..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies/deployment-policy-1
+
+echo "Removing network partitions..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions/network-partition-1
+
 echo "Removing application policies..."
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies/application-policy-1