From 5d46b0574d0a98291ea3274025d910fd863f8459 Mon Sep 17 00:00:00 2001 From: xuegao Date: Wed, 8 Apr 2020 14:47:37 +0200 Subject: Update delete loop flow Updating the delete loop flow. Issue-ID: CLAMP-816 Change-Id: I9ad5001b00f5f92a8ecc1f84379ee0e8ae2d196b Signed-off-by: xuegao --- .../resources/clds/camel/rest/clamp-api-v2.xml | 60 +++++++++++++--------- .../resources/clds/camel/routes/policy-flows.xml | 4 +- 2 files changed, 39 insertions(+), 25 deletions(-) (limited to 'src/main') diff --git a/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/src/main/resources/clds/camel/rest/clamp-api-v2.xml index e6741d6f8..770626755 100644 --- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -605,47 +605,61 @@ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" /> + ${exchangeProperty[loopObject].getMicroServicePolicies()} - + ${body} - + message="Deleting Micro Service Policy: ${exchangeProperty[policy].getName()}" /> + + false + + - + message="Deleting all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" /> ${exchangeProperty[loopObject].getOperationalPolicies()} - + ${body} - - - - ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()} - - - ${body} - - - - + message="Deleting Operational Policy: ${exchangeProperty[policy].getName()}" /> + + false + + + + + ${exchangeProperty['policy'].isLegacy()} == true + + + + ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()} + + + ${body} + + + + false + + + + + + uri="bean:org.onap.clamp.loop.LoopController?method=deleteLoop(${header.loopName})" /> - diff --git a/src/main/resources/clds/camel/routes/policy-flows.xml b/src/main/resources/clds/camel/routes/policy-flows.xml index a2c7a4ca3..80926722f 100644 --- a/src/main/resources/clds/camel/routes/policy-flows.xml +++ b/src/main/resources/clds/camel/routes/policy-flows.xml @@ -648,9 +648,9 @@ + message="Endpoint to delete policy from PDP Group: {{clamp.config.policy.pap.url}}/pdps/policies/${exchangeProperty[policyName]}/versions/1.0.0"> + uri="{{clamp.config.policy.pap.url}}/policy/pap/v1/pdps/policies/${exchangeProperty[policyName]}/versions/1.0.0?bridgeEndpoint=true&useSystemProperties=true&mapHttpMessageHeaders=false&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authUsername={{clamp.config.policy.pap.userName}}&authPassword={{clamp.config.policy.pap.password}}&connectionTimeToLive=5000&httpClient.connectTimeout=10000&httpClient.socketTimeout=20000&authenticationPreemptive=true&connectionClose=true"/> ${exchangeProperty[policyName]} PDP Group removal status -- cgit 1.2.3-korg