diff options
author | 2021-09-07 22:44:21 +0200 | |
---|---|---|
committer | 2021-09-07 22:44:21 +0200 | |
commit | 85ddb75c2a52cd1ac07c9f881b2f275afe340fa0 (patch) | |
tree | e2dd0a786b364cb0766f8329a29823d37ae815e6 /platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml | |
parent | f906377369016ed5d82dd1f458b4b8cdcc2778b7 (diff) |
Bug Fix- Update DG to add proxy support
Issue-ID: CCSDK-3438
Signed-off-by: ychacon <yennifer.chacon@est.tech>
Change-Id: Id7978289ce728c49fab7cf90316c2eba014478b8
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.xml | 38 |
1 files changed, 8 insertions, 30 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 a9afa852..f1595de2 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 @@ -22,17 +22,9 @@ <set> <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`"/> + <parameter name="tmp.proxy-url" value="`$prop.a1Mediator.proxy.url`"/> </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"> @@ -42,27 +34,12 @@ </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> + <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: Proxy url: "/> + <parameter name="field2" value="`$tmp.proxy-url`"/> + </record> </outcome> </switch> </block> @@ -82,6 +59,7 @@ <parameter name='accept' value='application/json' /> <parameter name="requestBody" value="`$tmp.body`"/> <parameter name="convertResponse" value="false"/> + <parameter name="proxyUrl" value="`$tmp.proxy-url`"/> <outcome value='failure'> <block> <set> |