X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fclds%2Fcamel%2Frest%2Fclamp-api-v2.xml;h=7e0c891ee5c95a6f2e684c83e36436cef7c15ada;hb=7f3d8621b45178bc8d0683f444c301d74c924f84;hp=0d6d3cb2f2a451709af7597f20ec0325d9616a6b;hpb=bc753dfd1a7eeccecd34763674653d319b822f2b;p=clamp.git
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 0d6d3cb2..7e0c891e 100644
--- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml
+++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
@@ -202,25 +202,21 @@
excludePattern="loopName" />
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DEPLOY the closed loop')" />
-
-
-
+
+
+
+ message="Policy deployment status: ${exchangeProperty[policyStatus]}">
${exchangeProperty[policyStatus]} == 'SUBMITTED' and
${exchangeProperty[dcaeStatus]} == 'NOT_DEPLOYED'
-
+
+
+
@@ -241,9 +242,9 @@
uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="DEPLOY request failed for loop: ${header.loopName}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request failed, Error reported: ${exception}','ERROR',${exchangeProperty[loopObject]})" />
@@ -261,16 +262,13 @@
uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Undeploy the closed loop')" />
-
-
+
+
${exchangeProperty[dcaeStatus]} == 'DEPLOYED'
-
+
+
+
@@ -291,9 +294,9 @@
uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="UNDEPLOY request failed for loop: ${header.loopName}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception}','ERROR',${exchangeProperty[loopObject]})" />
@@ -318,11 +321,9 @@
+ message="STOP request successfully executed for loop: ${header.loopName}" />
-
@@ -366,8 +367,6 @@
message="START request successfully executed for loop: ${header.loopName}" />
-
@@ -474,8 +473,6 @@
message="SUBMIT request successfully executed for loop: ${header.loopName}" />
-
@@ -581,7 +578,9 @@
outType="org.onap.clamp.loop.Loop"
produces="application/json">
-
+
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request failed, Error reported: ${exception}','ERROR',${exchangeProperty[loopObject]})" />