summaryrefslogtreecommitdiffstats
path: root/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml')
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml
index d674abfd..2f6abb89 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml
@@ -23,6 +23,49 @@
<parameter name="tmp.near-rt-ric-url" value="`$put-a1-policy-input.near-rt-ric-url`"/>
<parameter name="tmp.body" value="`$put-a1-policy-input.body`"/>
</set>
+ <block>
+ <set>
+ <parameter name="tmp.proxy-url" value="`$prop.a1Mediator.proxy.url`"/>
+ </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="Put A1 Policy: Check for proxy url: "/>
+ <parameter name="field2" value="`$tmp.proxy-url`"/>
+ </record>
+ <switch test='`$tmp.proxy-url`'>
+ <outcome value=''>
+ <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="Put A1 Policy: No proxy found on properties file "/>
+ </record>
+ </outcome>
+ <outcome value='Other'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name="original_string" value="`$tmp.near-rt-ric-url`" />
+ <parameter name="regex" value="/"/>
+ <parameter name="ctx_memory_result_key" value="tmp.near-rt-ric-url-splitList"/>
+ </execute>
+ <for index='idx' start='3' end="`$tmp.near-rt-ric-url-splitList_length`" >
+ <set>
+ <parameter name='tmp.proxy-url' value="`$tmp.proxy-url +'/' + $tmp.near-rt-ric-url-splitList[$idx] `" />
+ </set>
+ </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="Put A1 Policy: Url with proxy: "/>
+ <parameter name="field2" value="`$tmp.proxy-url`"/>
+ </record>
+ <set>
+ <parameter name="tmp.near-rt-ric-url" value="`$tmp.proxy-url`"/>
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </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" />