summaryrefslogtreecommitdiffstats
path: root/platform-logic/a1Adapter-api/src/main/xml
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/xml')
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_createPolicyType.xml534
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstance.xml37
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstances.xml40
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml37
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyTypes.xml36
5 files changed, 669 insertions, 15 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_createPolicyType.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_createPolicyType.xml
new file mode 100644
index 00000000..11b7c70d
--- /dev/null
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_createPolicyType.xml
@@ -0,0 +1,534 @@
+<service-logic
+ xmlns='http://www.onap.org/sdnc/svclogic'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='A1-ADAPTER-API' version='${project.version}'>
+ <method rpc='createPolicyType' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="A1 Adapter Create Policy Type. RPC Parms:"/>
+ <parameter name="field2" value="`$create-policy-type-input.near-rt-ric-id`"/>
+ <parameter name="field3" value="`$create-policy-type-input.policy-type-id`"/>
+ <parameter name="field4" value="`$create-policy-type-input.description`"/>
+ <parameter name="field5" value="A1 Adapter Create Policy Type Name:"/>
+ <parameter name="field6" value="`$create-policy-type-input.name`"/>
+ <parameter name="field7" value="A1 Adapter Create Policy Type. Number of Policy Type Properties"/>
+ <parameter name="field8" value="`$create-policy-type-input.properties_length`"/>
+ </record>
+ <set>
+ <parameter name='response-code' value='200' />
+ <parameter name='response-message' value='Successful execution of createPolicyType RPC' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/a1-adapter-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <for index='idx1' start='0' end='`$create-policy-type-input.properties_length`' >
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="A1 Adapter Create Policy Type. Properties Number, Name and Number of Policy Statements"/>
+ <parameter name="field2" value="`$idx1`"/>
+ <parameter name="field3" value="`$create-policy-type-input.properties[$idx1].property-name`"/>
+ <parameter name="field4" value="`$create-policy-type-input.properties[$idx1].policy-statements_length`"/>
+ </record>
+ <for index='idx2' start='0' end='`$create-policy-type-input.properties[$idx1].policy-statements_length`' >
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="A1 Adapter Create Policy Type. Policy Statements for policy statement # "/>
+ <parameter name="field2" value="`$idx2`"/>
+ <parameter name="field3" value="`$create-policy-type-input.properties[$idx1].policy-statements[$idx2].policy-statement`"/>
+ <parameter name="field4" value="`$create-policy-type-input.properties[$idx1].policy-statements[$idx2].policy-statement-value`"/>
+ </record>
+ </for>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Properties read .. A1 Mediator Target"/>
+ <parameter name="field2" value="`$prop.oofpcipoc.patch.pci.target`"/>
+ <parameter name="field3" value="`$prop.controller.user`"/>
+ <parameter name="field4" value="`$prop.controller.pwd`"/>
+ <parameter name="field5" value="`$prop.controller.url`"/>
+ <parameter name="field6" value="A1 Mediator deployed (true/false): "/>
+ <parameter name="field7" value="`$prop.ric-plt-A1Mediator-deployed`"/>
+ </record>
+ <switch test='`$prop.ric-plt-A1Mediator-deployed`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <execute plugin="org.onap.ccsdk.sli.plugins.template.TemplateNode" method="evaluateTemplate" >
+ <parameter name='templatePath' value='a1-policy-type-create-schema-property-payload-template.vtl' />
+ <parameter name='output' value='restapi-payload' />
+ <parameter name='prefix' value='a1-mediator' />
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Redndred A1 Mediator RestAPI payload template as a string"/>
+ <parameter name='field3' value='`$a1-mediator.restapi-payload`' />
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='response-code' value='500'/>
+ <parameter name='response-message' value='Error creating A1 Mediator Rest API payload string. Aborting A1 Policy Type creation'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name='response-message' value='Error creating A1 Mediator Rest API payload string. Aborting A1 Policy Type creation'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyType'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value="None" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
+ <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='field4' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='field5' value="Status Code and Status Value to be published" />
+ <parameter name='field6' value="`$tmp.a1Adapter-dmaap-resp.status-code`" />
+ <parameter name='field7' value="`$tmp.a1Adapter-dmaap-resp.status-value`" />
+ <parameter name='field8' value="A1 Adapter DMAAP Response Payload Not Required" />
+ <parameter name='field9' value="`$tmp.a1Policy-dmaap-resp.payload`" />
+ <parameter name='field10' value="RPC Name" />
+ <parameter name='field11' value="`$tmp.a1-adapter-api.rpc-name`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name='responsePrefix' value='dmaap' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error publishing DMAAP A1 Policy Response message. " />
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DMAAP A1Policy message Successfully Published "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
+ <parameter name="source" value="`$a1-mediator.restapi-payload`"/>
+ <parameter name="outputPath" value="tmp.a1-mediator-restapi.payload"/>
+ <parameter name="target" value="\n"/>
+ <parameter name="replacement" value=""/>
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Redndred template with lines removed \r"/>
+ <parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='response-code' value='500'/>
+ <parameter name="response-message" value="Error removing lines from A1 Mediator Rest API payload string. Aborting A1 Policy creation" />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error removing lines from A1 Mediator Rest API payload string. Aborting A1 Policy creation" />
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyType'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value="None" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
+ <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='field4' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='field5' value="Status Code and Status Value to be published" />
+ <parameter name='field6' value="`$tmp.a1Adapter-dmaap-resp.status-code`" />
+ <parameter name='field7' value="`$tmp.a1Adapter-dmaap-resp.status-value`" />
+ <parameter name='field8' value="A1 Adapter DMAAP Response Payload Not Required" />
+ <parameter name='field9' value="`$tmp.a1Policy-dmaap-resp.payload`" />
+ <parameter name='field10' value="RPC Name" />
+ <parameter name='field11' value="`$tmp.a1-adapter-api.rpc-name`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name='responsePrefix' value='dmaap' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error publishing DMAAP A1 Policy Response message. " />
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DMAAP A1Policy message Successfully Published "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
+ <parameter name="source" value="`$tmp.a1-mediator-restapi.payload`"/>
+ <parameter name="outputPath" value="tmp.a1-mediator-restapi.payload"/>
+ <parameter name="target" value="\t"/>
+ <parameter name="replacement" value=""/>
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Redndred template with tabs removed \r"/>
+ <parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='response-code' value='500'/>
+ <parameter name="response-message" value="Error removing tabs from A1 Mediator Rest API payload string. Aborting A1 Policy creation" />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error removing tabs from A1 Mediator Rest API payload string. Aborting A1 Policy creation" />
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyType'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value="None" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
+ <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='field4' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='field5' value="Status Code and Status Value to be published" />
+ <parameter name='field6' value="`$tmp.a1Adapter-dmaap-resp.status-code`" />
+ <parameter name='field7' value="`$tmp.a1Adapter-dmaap-resp.status-value`" />
+ <parameter name='field8' value="A1 Adapter DMAAP Response Payload Not Required" />
+ <parameter name='field9' value="`$tmp.a1Policy-dmaap-resp.payload`" />
+ <parameter name='field10' value="RPC Name" />
+ <parameter name='field11' value="`$tmp.a1-adapter-api.rpc-name`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name='responsePrefix' value='dmaap' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error publishing DMAAP A1 Policy Response message. " />
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DMAAP A1Policy message Successfully Published "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.near-rt-ric-id" value="`$create-policy-type-input.near-rt-ric-id`"/>
+ <parameter name="tmp.policy-type-id" value="`$create-policy-type-input.policy-type-id`"/>
+ <parameter name="tmp.name" value="`$create-policy-type-input.name`"/>
+ <parameter name="tmp.description" value="`$create-policy-type-input.description`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.policytype`"/>
+ <parameter name="outputPath" value="tmp.restapi.policytype-url"/>
+ <parameter name="target" value="{policy_type_id}"/>
+ <parameter name="replacement" value="`$tmp.policy-type-id`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for A1 Adapter Create Policy Type."/>
+ <parameter name="field2" value="`$tmp.near-rt-ric-id`"/>
+ <parameter name="field3" value="`$tmp.policy-type-id`"/>
+ <parameter name="field4" value="`$tmp.name`"/>
+ <parameter name="field5" value="`$tmp.restapi.policytype-url`"/>
+ <parameter name="field6" value="`$a1-mediator.restapi-payload`"/>
+ <parameter name="field7" value="Temporary A1 Mediatory Payload"/>
+ <parameter name="field8" value="`$tmp.a1-mediator-restapi.payload`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.a1Mediator.url + '/' + $tmp.restapi.policytype-url`"/>
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="a1MediatorRsp"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="requestBody" value="`$tmp.a1-mediator-restapi.payload`"/>
+ <parameter name="convertResponse" value="false"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='response-code' value='500'/>
+ <parameter name="response-message" value="Error creating A1 Policy Policy. Aborting A1 Policy Type creation" />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="404" />
+ <parameter name="response-message" value="Error creating A1 Policy Policy. Aborting A1 Policy Type creation" />
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyType'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value="None" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
+ <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='field4' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='field5' value="Status Code and Status Value to be published" />
+ <parameter name='field6' value="`$tmp.a1Adapter-dmaap-resp.status-code`" />
+ <parameter name='field7' value="`$tmp.a1Adapter-dmaap-resp.status-value`" />
+ <parameter name='field8' value="A1 Adapter DMAAP Response Payload Not Required" />
+ <parameter name='field9' value="`$tmp.a1Policy-dmaap-resp.payload`" />
+ <parameter name='field10' value="RPC Name" />
+ <parameter name='field11' value="`$tmp.a1-adapter-api.rpc-name`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name='responsePrefix' value='dmaap' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error publishing DMAAP A1 Policy Response message. " />
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DMAAP A1Policy message Successfully Published "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="A1 Policy Type Accepted."/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyType'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value="None" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
+ <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='field4' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='field5' value="Status Code and Status Value to be published" />
+ <parameter name='field6' value="`$tmp.a1Adapter-dmaap-resp.status-code`" />
+ <parameter name='field7' value="`$tmp.a1Adapter-dmaap-resp.status-value`" />
+ <parameter name='field8' value="A1 Adapter DMAAP Response Payload Not Required" />
+ <parameter name='field9' value="`$tmp.a1Policy-dmaap-resp.payload`" />
+ <parameter name='field10' value="RPC Name" />
+ <parameter name='field11' value="`$tmp.a1-adapter-api.rpc-name`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name='responsePrefix' value='dmaap' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error publishing DMAAP A1 Policy Response message. " />
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DMAAP A1Policy message Successfully Published "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <set>
+ <parameter name='response-code' value='500'/>
+ <parameter name='response-message' value='A1 Mediator Not Deployed'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="A1 Mediator Not Deployed. Aborting A1 Policy creation" />
+ </return>
+ </block>
+ </outcome>
+ </switch>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyType'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
+ <parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value="None" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
+ <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='field4' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='field5' value="Status Code and Status Value to be published" />
+ <parameter name='field6' value="`$tmp.a1Adapter-dmaap-resp.status-code`" />
+ <parameter name='field7' value="`$tmp.a1Adapter-dmaap-resp.status-value`" />
+ <parameter name='field8' value="A1 Adapter DMAAP Response Payload Not Required" />
+ <parameter name='field9' value="`$tmp.a1Policy-dmaap-resp.payload`" />
+ <parameter name='field10' value="RPC Name" />
+ <parameter name='field11' value="`$tmp.a1-adapter-api.rpc-name`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`" />
+ <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`" />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name='responsePrefix' value='dmaap' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="response-code" value="500" />
+ <parameter name="response-message" value="Error publishing DMAAP A1 Policy Response message. " />
+ </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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DMAAP A1Policy message Successfully Published "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ <parameter name='response-code' value='200' />
+ <parameter name='response-message' value='A1 Adapter is healthy'/>
+ <parameter name='health-status' value='200'/>
+ <parameter name='ack-final' value='Y'/>
+ </return>
+ </block>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstance.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstance.xml
index e20c3cd4..03fa7855 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstance.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstance.xml
@@ -71,8 +71,37 @@
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="Details of A1 Policy Instance "/>
- <parameter name="field2" value="`$a1MediatorRsp`"/>
+ <parameter name="field2" value="`$a1MediatorRsp.httpResponse`"/>
</record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
+ <parameter name="source" value="`$a1MediatorRsp.httpResponse`"/>
+ <parameter name="outputPath" value="tmp.a1-mediator-restapi.payload"/>
+ <parameter name="target" value="\n"/>
+ <parameter name="replacement" value=""/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
+ <parameter name="source" value="`$tmp.a1-mediator-restapi.payload`"/>
+ <parameter name="outputPath" value="tmp.a1-mediator-restapi.payload"/>
+ <parameter name="target" value="\t"/>
+ <parameter name="replacement" value=""/>
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Redndred template with lines removed \r"/>
+ <parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block></block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicyInstance-specific-context.log' />
+ </execute>
</block>
</outcome>
<outcome value='failure'>
@@ -91,7 +120,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyInstance'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -152,7 +181,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyInstance'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -210,7 +239,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyInstance'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstances.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstances.xml
index 5d272a78..c486afb9 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstances.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyInstances.xml
@@ -57,12 +57,46 @@
<parameter name="convertResponse" value="true"/>
<outcome value='success'>
<block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='a1MediatorRsp.httpResponse' />
+ <parameter name='outputPath' value='a1MediatorPolicyInstancesList' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="List of A1 Policy Instances: "/>
<parameter name="field2" value="`$a1MediatorRsp`"/>
</record>
+ <execute plugin="org.onap.ccsdk.sli.plugins.template.TemplateNode" method="evaluateTemplate" >
+ <parameter name='templatePath' value='a1Mediator-get-policy-instances.vtl' />
+ <parameter name='output' value='policyInstancesList' />
+ <parameter name='prefix' value='a1-mediator' />
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="A1 Policiy Instances List"/>
+ <parameter name='field3' value='`$a1-mediator.policyInstancesList`' />
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicyInstances-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="List of A1 Policy Types: "/>
+ <parameter name="field2" value="`$a1MediatorRsp._length`"/>
+ <parameter name="field3" value="`$a1MediatorRsp.httpResponse`"/>
+ <parameter name="field4" value="`$a1MediatorRsp.response-code`"/>
+ <parameter name="field5" value='`$a1MediatorRsp._length`' />
+ <parameter name="field6" value='`$a1-mediator.policyInstancesList`' />
+ </record>
</block>
</outcome>
<outcome value='failure'>
@@ -81,7 +115,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyInstances'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$a1-mediator.policyInstancesList`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -142,7 +176,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyInstances'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$a1-mediator.policyInstancesList`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -200,7 +234,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyInstances'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$a1-mediator.policyInstancesList`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml
index b598ef30..72eb3e27 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml
@@ -60,8 +60,37 @@
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="A1 Policy Type Information "/>
- <parameter name="field2" value="`$a1MediatorRsp.*`"/>
+ <parameter name="field2" value="`$a1MediatorRsp.httpResponse`"/>
</record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
+ <parameter name="source" value="`$a1MediatorRsp.httpResponse`"/>
+ <parameter name="outputPath" value="tmp.a1-mediator-restapi.payload"/>
+ <parameter name="target" value="\n"/>
+ <parameter name="replacement" value=""/>
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="Redndred template with lines removed \r"/>
+ <parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block></block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
+ <parameter name="source" value="`$tmp.a1-mediator-restapi.payload`"/>
+ <parameter name="outputPath" value="tmp.a1-mediator-restapi.payload"/>
+ <parameter name="target" value="\t"/>
+ <parameter name="replacement" value=""/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicytype-specific-context.log' />
+ </execute>
</block>
</outcome>
<outcome value='failure'>
@@ -80,7 +109,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyType'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -141,7 +170,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyType'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -199,7 +228,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyType'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="Working On it" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyTypes.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyTypes.xml
index 97ff3138..7a6bb9c0 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyTypes.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyTypes.xml
@@ -42,11 +42,39 @@
<parameter name="convertResponse" value="true"/>
<outcome value='success'>
<block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='a1MediatorRsp.httpResponse' />
+ <parameter name='outputPath' value='a1MediatorList' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.plugins.template.TemplateNode" method="evaluateTemplate" >
+ <parameter name='templatePath' value='a1Mediator-get-policies.vtl' />
+ <parameter name='output' value='policiesList' />
+ <parameter name='prefix' value='a1-mediator' />
+ <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/A1-Adapter.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="__TIMESTAMP__"/>
+ <parameter name="field2" value="A1 Policies List"/>
+ <parameter name='field3' value='`$a1-mediator.policiesList`' />
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicytype-context.log' />
+ </execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="List of A1 Policy Types: "/>
- <parameter name="field2" value="`$a1MediatorRsp`"/>
+ <parameter name="field2" value="`$a1MediatorRsp._length`"/>
+ <parameter name="field3" value="`$a1MediatorRsp.httpResponse`"/>
+ <parameter name="field4" value="`$a1MediatorRsp.response-code`"/>
+ <parameter name="field5" value='`$a1MediatorRsp._length`' />
+ <parameter name="field6" value='`$a1-mediator.policiesList`' />
</record>
</block>
</outcome>
@@ -66,7 +94,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyTypes'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="`$a1MediatorRsp`" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$a1-mediator.policiesList`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -127,7 +155,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyTypes'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="`$a1MediatorRsp`" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$a1-mediator.policiesList`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />
@@ -185,7 +213,7 @@
<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyTypes'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>
<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>
- <parameter name='tmp.a1Policy-dmaap-resp.payload' value="`$a1MediatorRsp`" />
+ <parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$a1-mediator.policiesList`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" />