diff options
author | 2021-08-18 15:44:42 +0200 | |
---|---|---|
committer | 2021-08-20 14:05:13 +0200 | |
commit | 98f8fdb9fc6ca51615e2a70614f43e19ad8bcafe (patch) | |
tree | 362694c13b32a360ec7ee8f21535c051ccff3d70 /platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml | |
parent | 7cd7fe946ae07d21a3daf57a5f2868f4b4b2e7fc (diff) |
HTTPS Proxy support for A1 adapter southbound
Issue-ID: CCSDK-3153
Signed-off-by: ychacon <yennifer.chacon@est.tech>
Change-Id: I454e7f80ee0ccd94bc5a034dedc201a37e0dfc58
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml')
-rw-r--r-- | platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml index cea0bc5f..41091e0a 100644 --- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml +++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml @@ -21,6 +21,49 @@ <set> <parameter name="tmp.near-rt-ric-url" value="`$get-a1-policy-type-input.near-rt-ric-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="Get Policy Type: 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="Get Policy Type: 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="Get Policy Type: 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" /> |