diff options
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml')
-rw-r--r-- | platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getPolicyType.xml | 37 |
1 files changed, 33 insertions, 4 deletions
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" /> |