summaryrefslogtreecommitdiffstats
path: root/platform-logic/a1Adapter-api/src/main/xml
diff options
context:
space:
mode:
authorychacon <yennifer.chacon@est.tech>2021-08-18 15:44:42 +0200
committerychacon <yennifer.chacon@est.tech>2021-08-20 14:05:13 +0200
commit98f8fdb9fc6ca51615e2a70614f43e19ad8bcafe (patch)
tree362694c13b32a360ec7ee8f21535c051ccff3d70 /platform-logic/a1Adapter-api/src/main/xml
parent7cd7fe946ae07d21a3daf57a5f2868f4b4b2e7fc (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')
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_deleteA1Policy.xml45
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1Policy.xml43
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyStatus.xml43
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyType.xml43
-rw-r--r--platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml43
5 files changed, 216 insertions, 1 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_deleteA1Policy.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_deleteA1Policy.xml
index a351cc5c..3f264e57 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_deleteA1Policy.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_deleteA1Policy.xml
@@ -6,7 +6,7 @@
<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="Delete Policy:"/>
+ <parameter name="field1" value="Delete A1 Policy:"/>
<parameter name="field2" value="`$delete-a1-policy-input.near-rt-ric-url`"/>
</record>
<set>
@@ -21,6 +21,49 @@
<set>
<parameter name="tmp.near-rt-ric-url" value="`$delete-a1-policy-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="Delete 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="Delete 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="Delete 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" />
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1Policy.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1Policy.xml
index 79b4a9c7..2cedc9ca 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1Policy.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1Policy.xml
@@ -21,6 +21,49 @@
<set>
<parameter name="tmp.near-rt-ric-url" value="`$get-a1-policy-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="A1 Get Policy Information: 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="A1 Get Policy Information: 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="A1 Get Policy Information: 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" />
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyStatus.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyStatus.xml
index 703c7dfe..5750c528 100644
--- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyStatus.xml
+++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getA1PolicyStatus.xml
@@ -21,6 +21,49 @@
<set>
<parameter name="tmp.near-rt-ric-url" value="`$get-a1-policy-status-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 A1 Policy Status: 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 A1 Policy Status: 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 A1 Policy Status: 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" />
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" />
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" />