summaryrefslogtreecommitdiffstats
path: root/platform-logic/ran-slice-api/src/main/xml
diff options
context:
space:
mode:
authordenilson.l65 <denilson.l65@wipro.com>2022-04-28 14:34:19 +0000
committerKAPIL SINGAL <ks220y@att.com>2022-04-28 15:12:53 +0000
commit70fd4cb02729ab065e1b7fb96e1e4927dadb8fc4 (patch)
treee41bd54b8ea0c275e998f1c472d6c48cc78bb9d6 /platform-logic/ran-slice-api/src/main/xml
parent398586dafd8a1efe33cee22e504bf72c6cb02327 (diff)
SDN-R RANSlice Reconfigure-CPS bug
Changes in CPS API for intelligent slicing Issue-ID: CCSDK-3634 Signed-off-by: denilson.l65 <denilson.l65@wipro.com> Change-Id: Ib72090dd9187546d2b95988757096a3ae7e42ade
Diffstat (limited to 'platform-logic/ran-slice-api/src/main/xml')
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml1305
1 files changed, 687 insertions, 618 deletions
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml
index 6fb68ef6..937b702d 100644
--- a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml
@@ -204,6 +204,11 @@
<parameter name='accept' value='application/yang.patch-status+json' />
<outcome value='failure'>
<block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to patch NearRTRIC for closed loop operation"/>
+ </record>
<set>
<parameter name='error-code' value='500'/>
<parameter name='error-message' value='Error Patching slice profile parms for close loop. Exiting close loop operation'/>
@@ -279,58 +284,57 @@
</execute>
</block>
<block atomic='true'>
- <set>
- <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL to fetch the anchors"/>
- <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="restapiUser" value="cpsuser" />
- <parameter name="restapiPassword" value="cpsr0cks!"/>
- <parameter name="responsePrefix" value="get-anchors-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failed to fetch anchors from CPS"/>
- </record>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
- <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
- </set>
- <set>
- <parameter name='tmp.RIC.length' value="0"/>
- </set>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL to fetch cps anchors"/>
+ <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="restapiUser" value="cpsuser" />
+ <parameter name="restapiPassword" value="cpsr0cks!"/>
+ <parameter name="responsePrefix" value="get-anchors-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to fetch anchors from CPS"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
+ <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
+ </set>
+ </block>
<for index='anc' start='0' end='`$tmp.anchors.length`'>
<block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
@@ -341,169 +345,140 @@
<outcome value='ran-inventory'>
<block atomic='true'>
<set>
- <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/>
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`" />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Applicable RIC length"/>
- <parameter name="field2" value="`$tmp.RIC.length`"/>
+ <parameter name="field1" value="sliceprofileid from input"/>
+ <parameter name="field2" value="`$tmp.sliceprofileid`"/>
</record>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- <for index='anc' start='0' end='`$tmp.anchors.length`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.schemaset.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
- </execute>
- <switch test='`$tmp.schemaset.name`'>
- <outcome value='ran-inventory'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.anchor.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" />
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.schemaset.name`"/>
</execute>
- <block atomic='true'>
- <set>
- <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`" />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sliceprofileid from input"/>
- <parameter name="field2" value="`$tmp.sliceprofileid`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
- <parameter name="target" value="{schemaSet}"/>
- <parameter name="replacement" value="`$tmp.schemaset.name`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
- <parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
- <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="getplmnid-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
+ <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="getplmnid-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to obtain MCC, MNC info from CPS"/>
+ <parameter name="field2" value="`$cps-get-plmnid.json`"/>
+ </record>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
<set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Failed to obtain MCC, MNC info from CPS"/>
- <parameter name="field2" value="`$cps-get-plmnid.json`"/>
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
</record>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- <parameter name='field7' value="`$tmp.CUCPList`" />
- <parameter name='field8' value="`$tmp.CUUPList`" />
- <parameter name='field9' value="`$tmp.DUList`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.plmn.mcc' />
- <parameter name='source' value="`'getplmnid-cps-response.[0].mcc'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.plmn.mnc' />
- <parameter name='source' value="`'getplmnid-cps-response.[0].mnc'`" />
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
</execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained MCC, MNC info from CPS"/>
- <parameter name="field2" value="`$tmp.plmn.mcc`"/>
- <parameter name="field3" value="`$tmp.plmn.mnc`"/>
- </record>
</block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
- <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="mcc,mnc values..."/>
- <parameter name="field2" value="`$tmp.mcc`"/>
- <parameter name="field3" value="`$tmp.mnc`"/>
- </record>
- </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.plmn.mcc' />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mcc'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.plmn.mnc' />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mnc'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained MCC, MNC info from CPS"/>
+ <parameter name="field2" value="`$tmp.plmn.mcc`"/>
+ <parameter name="field3" value="`$tmp.plmn.mnc`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
+ <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="mcc,mnc values..."/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="`$tmp.mnc`"/>
+ </record>
</block>
</outcome>
</switch>
@@ -511,6 +486,57 @@
</for>
</block>
<block atomic="true">
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL to fetch cps anchors"/>
+ <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="restapiUser" value="cpsuser" />
+ <parameter name="restapiPassword" value="cpsr0cks!"/>
+ <parameter name="responsePrefix" value="get-anchors-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to fetch anchors from CPS"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
+ <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
+ </set>
+ </block>
<switch test='`$prop.ransim-mounted`'>
<outcome value='false'>
<block atomic='true'>
@@ -592,55 +618,6 @@
</block>
</outcome>
</execute>
- <set>
- <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL to fetch the anchors"/>
- <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="restapiUser" value="cpsuser" />
- <parameter name="restapiPassword" value="cpsr0cks!"/>
- <parameter name="responsePrefix" value="get-anchors-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failed to fetch anchors from CPS"/>
- </record>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
- <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
- </set>
<for index='anc' start='0' end='`$tmp.anchors.length`'>
<block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
@@ -651,452 +628,394 @@
<outcome value='ran-network'>
<block atomic='true'>
<set>
- <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/>
+ <parameter name='tmp.mcc' value='`$tmp.mcc`' />
+ <parameter name='tmp.mnc' value='`$tmp.mnc`' />
+ <parameter name='tmp.configParameter' value='`dLThptPerSlice`' />
+ <parameter name='tmp.configValue' value='`$tmp.dLThptPerSlice`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Applicable RIC length"/>
- <parameter name="field2" value="`$tmp.RIC.length`"/>
+ <parameter name="field1" value="Inputs"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.dLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.configParameter`"/>
+ <parameter name="field8" value="`$tmp.configValue`"/>
</record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.schemaset.name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.patchconfigData.url`"/>
+ <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.patch-configData`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to patch dLThptPerSlice"/>
+ <parameter name='field2' value="`$tmp.cps.patchconfigData.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.patchconfigData.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="patchdLThptPerSlice-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to update CPS"/>
+ <parameter name="field2" value="`$cps-patch-configData.json`"/>
+ <parameter name="field3" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/>
+ </record>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully patched dLThptPerSlice"/>
+ <parameter name="field2" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.configParameter' value='`uLThptPerSlice`' />
+ <parameter name='tmp.configValue' value='`$tmp.uLThptPerSlice`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inputs"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.configParameter`"/>
+ <parameter name="field8" value="`$tmp.configValue`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.schemaset.name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.patchuLThptPerSlice.url`"/>
+ <parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.patch-configData`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to patch uLThptPerSlice"/>
+ <parameter name='field2' value="`$tmp.cps.patchuLThptPerSlice.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.patchuLThptPerSlice.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="patchuLThptPerSlice-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to update CPS"/>
+ <parameter name="field2" value="`$cps-patch-uLThptPerSlice.json`"/>
+ </record>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully patched uLThptPerSlice"/>
+ <parameter name="field2" value="`$patchuLThptPerSlice-cps-response.httpResponse`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
</block>
</outcome>
</switch>
</block>
</for>
- <for index='anc' start='0' end='`$tmp.anchors.length`'>
+ </block>
+ </for>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name='source' value='`$instantiate-r-a-n-slice-input.payload`' />
+ <parameter name='target' value='maxNumberofConns' />
+ <outcome value='true'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PAYLOAD contains maxNumberofConns...Inntelligent Slicing "/>
+ </record>
+ <set>
+ <parameter name='tmp.payload.dataPoints' value='`$payloadJson.input.additionalproperties.resourceConfig.data_length`'/>
+ <parameter name="tmp.payload.sNSSAI" value="`$payloadJson.input.additionalproperties.resourceConfig.snssai`"/>
+ <parameter name="tmp.sliceProfileId" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Data length "/>
+ <parameter name="field2" value="`$tmp.payload.dataPoints`"/>
+ </record>
+ <block atomic="true">
+ <block atomic='true'>
<block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.schemaset.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
- </execute>
- <switch test='`$tmp.schemaset.name`'>
- <outcome value='ran-network'>
+ <set>
+ <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL to fetch cps anchors"/>
+ <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="restapiUser" value="cpsuser" />
+ <parameter name="restapiPassword" value="cpsr0cks!"/>
+ <parameter name="responsePrefix" value="get-anchors-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to fetch anchors from CPS"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='success'>
<block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.anchor.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" />
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
+ <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
</execute>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
+ </set>
+ </block>
+ <for index='anc' start='0' end='`$tmp.anchors.length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.schemaset.name' />
+ <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
+ </execute>
+ <switch test='`$tmp.schemaset.name`'>
+ <outcome value='ran-inventory'>
<block atomic='true'>
<set>
- <parameter name='tmp.mcc' value='`$tmp.mcc`' />
- <parameter name='tmp.mnc' value='`$tmp.mnc`' />
- <parameter name='tmp.configParameter' value='`dLThptPerSlice`' />
- <parameter name='tmp.configValue' value='`$tmp.dLThptPerSlice`' />
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`" />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Inputs"/>
- <parameter name="field2" value="`$tmp.nearRTRICId`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.dLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.configParameter`"/>
- <parameter name="field8" value="`$tmp.configValue`"/>
+ <parameter name="field1" value="sliceprofileid from input"/>
+ <parameter name="field2" value="`$tmp.sliceprofileid`"/>
</record>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
<parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
<parameter name="target" value="{schemaSet}"/>
<parameter name="replacement" value="`$tmp.schemaset.name`"/>
</execute>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.patchconfigData.url`"/>
- <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
+ <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
<parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.patch-configData`"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid`"/>
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="URL for CPS TDBMT to patch dLThptPerSlice"/>
- <parameter name='field2' value="`$tmp.cps.patchconfigData.url`" />
+ <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
+ <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" />
</record>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.patchconfigData.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
<parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="patchdLThptPerSlice-cps-response"/>
+ <parameter name="responsePrefix" value="getplmnid-cps-response"/>
<parameter name='contentType' value='application/json' />
<parameter name='format' value='json' />
<parameter name='accept' value='application/json' />
<parameter name="convertResponse" value="true"/>
<outcome value='failure'>
<block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failed to update CPS"/>
- <parameter name="field2" value="`$cps-patch-configData.json`"/>
- <parameter name="field3" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/>
- </record>
<set>
<parameter name='error-code' value='500'/>
<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
</set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Successfully patched dLThptPerSlice"/>
- <parameter name="field2" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/>
- </record>
- </block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.configParameter' value='`uLThptPerSlice`' />
- <parameter name='tmp.configValue' value='`$tmp.uLThptPerSlice`' />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Inputs"/>
- <parameter name="field2" value="`$tmp.nearRTRICId`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.configParameter`"/>
- <parameter name="field8" value="`$tmp.configValue`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/>
- <parameter name="target" value="{schemaSet}"/>
- <parameter name="replacement" value="`$tmp.schemaset.name`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.patchuLThptPerSlice.url`"/>
- <parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/>
- <parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.patch-configData`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for CPS TDBMT to patch uLThptPerSlice"/>
- <parameter name='field2' value="`$tmp.cps.patchuLThptPerSlice.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.patchuLThptPerSlice.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`" />
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="patchuLThptPerSlice-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failed to update CPS"/>
- <parameter name="field2" value="`$cps-patch-uLThptPerSlice.json`"/>
+ <parameter name="field1" value="Failed to obtain MCC, MNC info from CPS"/>
+ <parameter name="field2" value="`$cps-get-plmnid.json`"/>
</record>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name='error-code' value='500'/>
<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
</return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
</block>
</outcome>
<outcome value='success'>
<block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.plmn.mcc' />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mcc'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.plmn.mnc' />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mnc'`" />
+ </execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Successfully patched uLThptPerSlice"/>
- <parameter name="field2" value="`$patchuLThptPerSlice-cps-response.httpResponse`"/>
+ <parameter name="field1" value="Successfully Obtained MCC, MNC info from CPS"/>
+ <parameter name="field2" value="`$tmp.plmn.mcc`"/>
+ <parameter name="field3" value="`$tmp.plmn.mnc`"/>
</record>
</block>
</outcome>
</execute>
- </block>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </block>
- </for>
- </block>
- </block>
- </outcome>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
- <parameter name='source' value='`$instantiate-r-a-n-slice-input.payload`' />
- <parameter name='target' value='maxNumberofConns' />
- <outcome value='true'>
- <block atomic="true">
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="PAYLOAD contains maxNumberofConns...Inntelligent Slicing "/>
- </record>
- <set>
- <parameter name='tmp.payload.dataPoints' value='`$payloadJson.input.additionalproperties.resourceConfig.data_length`'/>
- <parameter name="tmp.payload.sNSSAI" value="`$payloadJson.input.additionalproperties.resourceConfig.snssai`"/>
- <parameter name="tmp.sliceProfileId" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Data length "/>
- <parameter name="field2" value="`$tmp.payload.dataPoints`"/>
- </record>
- <block atomic="true">
- <block atomic='true'>
- <set>
- <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL to fetch the anchors"/>
- <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="restapiUser" value="cpsuser" />
- <parameter name="restapiPassword" value="cpsr0cks!"/>
- <parameter name="responsePrefix" value="get-anchors-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failed to fetch anchors from CPS"/>
- </record>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
- <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
- </set>
- <set>
- <parameter name='tmp.RIC.length' value="0"/>
- </set>
- <for index='anc' start='0' end='`$tmp.anchors.length`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.schemaset.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
- </execute>
- <switch test='`$tmp.schemaset.name`'>
- <outcome value='ran-inventory'>
- <block atomic='true'>
<set>
- <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/>
+ <parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
+ <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Applicable RIC length"/>
- <parameter name="field2" value="`$tmp.RIC.length`"/>
+ <parameter name="field1" value="mcc,mnc values..."/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="`$tmp.mnc`"/>
</record>
</block>
</outcome>
</switch>
</block>
</for>
- <for index='anc' start='0' end='`$tmp.anchors.length`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.schemaset.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
- </execute>
- <switch test='`$tmp.schemaset.name`'>
- <outcome value='ran-inventory'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.anchor.name' />
- <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" />
- </execute>
- <block atomic='true'>
- <set>
- <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`" />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sliceprofileid from input"/>
- <parameter name="field2" value="`$tmp.sliceprofileid`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
- <parameter name="target" value="{schemaSet}"/>
- <parameter name="replacement" value="`$tmp.schemaset.name`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
- <parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
- <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="getplmnid-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failed to obtain MCC, MNC info from CPS"/>
- <parameter name="field2" value="`$cps-get-plmnid.json`"/>
- </record>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- <parameter name='field7' value="`$tmp.CUCPList`" />
- <parameter name='field8' value="`$tmp.CUUPList`" />
- <parameter name='field9' value="`$tmp.DUList`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.plmn.mcc' />
- <parameter name='source' value="`'getplmnid-cps-response.[0].mcc'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.plmn.mnc' />
- <parameter name='source' value="`'getplmnid-cps-response.[0].mnc'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained MCC, MNC info from CPS"/>
- <parameter name="field2" value="`$tmp.plmn.mcc`"/>
- <parameter name="field3" value="`$tmp.plmn.mnc`"/>
- </record>
- </block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
- <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="mcc,mnc values..."/>
- <parameter name="field2" value="`$tmp.mcc`"/>
- <parameter name="field3" value="`$tmp.mnc`"/>
- </record>
- </block>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
</block>
<for index='id-is' start='0' end="`$tmp.payload.dataPoints`" >
<block atomic="true">
<set>
<parameter name="tmp.nearRTRICId" value="`$payloadJson.input.additionalproperties.resourceConfig.data[$id-is].nearRTRICId`"/>
+ <parameter name="tmp.gNBCUName" value="`$payloadJson.input.additionalproperties.resourceConfig.data[$id-is].gNBCUName`"/>
</set>
<switch test='`$prop.ransim-mounted`'>
<outcome value='false'>
@@ -1147,13 +1066,68 @@
<parameter name="level" value="info" />
<parameter name="field1" value="CUCEll List length "/>
<parameter name="field2" value="`$tmp.CUCellListEntries`"/>
+ <parameter name="field3" value="`$tmp.gNBCUName`" />
</record>
<for index='id2' start='0' end="`$tmp.CUCellListEntries`" >
<block atomic="true">
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL to fetch cps anchors"/>
+ <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="restapiUser" value="cpsuser" />
+ <parameter name="restapiPassword" value="cpsr0cks!"/>
+ <parameter name="responsePrefix" value="get-anchors-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to fetch anchors from CPS"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
+ <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
+ </set>
+ </block>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
<parameter name='outputPath' value='tmp.cellLocalId' />
<parameter name='source' value="`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList['+$id2+'].cellLocalId'`" />
</execute>
+ <set>
+ <parameter name='tmp.idNRCellCU' value='`$tmp.cellLocalId`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat'>
<parameter name="source" value="`$tmp.cellLocalId`" />
<parameter name="target" value="-maxNumberofConns"/>
@@ -1182,7 +1156,7 @@
<outcome value='success'>
<block atomic='true'>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="Successfully patched NearRTRIC configuration"/>
</record>
@@ -1239,6 +1213,11 @@
</outcome>
</execute>
</block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to patch NearRTRIC configuration"/>
+ </record>
<set>
<parameter name='error-code' value='500'/>
<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
@@ -1251,6 +1230,96 @@
</block>
</outcome>
</execute>
+ <for index='anc' start='0' end='`$tmp.anchors.length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.schemaset.name' />
+ <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
+ </execute>
+ <switch test='`$tmp.schemaset.name`'>
+ <outcome value='ran-network'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.mcc' value='`$tmp.mcc`'/>
+ <parameter name='tmp.mnc' value='`$tmp.mnc`'/>
+ <parameter name='tmp.configParameter' value='`maxNumberOfConns`'/>
+ <parameter name='tmp.configValue' value='`$tmp.predictedMaxNumberofConns`'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inputs"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.predictedMaxNumberofConns`" />
+ <parameter name="field7" value="`$tmp.configParameter`"/>
+ <parameter name="field8" value="`$tmp.idNRCellCU`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.schemaset.name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.patchconfigData.url`"/>
+ <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.patch-cell-configData`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to patch maxNumberOfConns"/>
+ <parameter name='field2' value="`$tmp.cps.patchconfigData.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.patchconfigData.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-cell-configData.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="patchmaxNumberOfConns-cps-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to update CPS"/>
+ <parameter name="field2" value="`$cps-patch-configData.json`"/>
+ <parameter name="field3" value="`$patchmaxNumberOfConns-cps-response.httpResponse`"/>
+ </record>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully patchedmaxNumberOfConns"/>
+ <parameter name="field2" value="`$patchmaxNumberOfConns-cps-response.httpResponse`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
</block>
</for>
</block>