diff options
author | 2017-10-03 15:04:16 +0530 | |
---|---|---|
committer | 2017-10-03 15:04:16 +0530 | |
commit | 3a8ffb290db1d7202909805fd337a1567e8f300c (patch) | |
tree | f7f59e8183b132a1baba4f3efe67e57b2d81faac /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml | |
parent | 7857803caf2b274c5e1ee817e1c2032908cd57f5 (diff) |
Update overlay DG for VoLTE use case
1) Replace openecomp schema with onap
2) Get import/export rts from comma separated string
3) Replace tab with space
Change-Id: I7025c6c89e74ab4ffefbab6eaf497c68ac333c9a
Issue-Id: SDNC-105
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
Former-commit-id: 94d275c0b63b7a8d4e88303776edcbd82e681b8d
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml | 106 |
1 files changed, 101 insertions, 5 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml index a13d6497..617073b4 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<service-logic xmlns="http://www.openecomp.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}"> +<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}"> <method rpc="network-topology-operation-activate" mode="sync"> <block atomic="true"> <call module="GENERIC-RESOURCE-API" rpc="validate-network-input-parameters" mode="sync" /> @@ -39,10 +39,58 @@ </outcome> </switch> <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`"> - <outcome value="true" /> + <outcome value="true"> + <block atomic="true"> + <set> + <parameter name="tmp.dci-connects.evpn_irts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split"> + <parameter name="original_string" value="`$tmp.dci-connects.evpn_irts.original`" /> + <parameter name="regex" value="," /> + <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_irts" /> + <outcome value="success"> + <for index="idx" start="0" end="`$tmp.dci-connects.evpn_irts_length`"> + <set> + <parameter name="prop.dci-connects.evpn_irts[$idx]" value="`$tmp.dci-connects.evpn_irts[$idx]`" /> + </set> + </for> + </outcome> + <outcome value="failure"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="An error occured while splitting sna1_route" /> + </return> + </outcome> + </execute> + </block> + </outcome> </switch> <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`"> - <outcome value="true" /> + <outcome value="true"> + <block atomic="true"> + <set> + <parameter name="tmp.dci-connects.evpn_erts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split"> + <parameter name="original_string" value="`$tmp.dci-connects.evpn_erts.original`" /> + <parameter name="regex" value="," /> + <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_erts" /> + <outcome value="success"> + <for index="idx" start="0" end="`$tmp.dci-connects.evpn_erts_length`"> + <set> + <parameter name="prop.dci-connects.evpn_erts[$idx]" value="`$tmp.dci-connects.evpn_erts[$idx]`" /> + </set> + </for> + </outcome> + <outcome value="failure"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="An error occured while splitting sna1_route" /> + </return> + </outcome> + </execute> + </block> + </outcome> </switch> <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`"> <outcome value="true"> @@ -143,10 +191,58 @@ </outcome> </switch> <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`"> - <outcome value="true" /> + <outcome value="true"> + <block atomic="true"> + <set> + <parameter name="tmp.dci-connects.evpn_irts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split"> + <parameter name="original_string" value="`$tmp.dci-connects.evpn_irts.original`" /> + <parameter name="regex" value="," /> + <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_irts" /> + <outcome value="success"> + <for index="idx" start="0" end="`$tmp.dci-connects.evpn_irts_length`"> + <set> + <parameter name="prop.dci-connects.evpn_irts[$idx]" value="`$tmp.dci-connects.evpn_irts[$idx]`" /> + </set> + </for> + </outcome> + <outcome value="failure"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="An error occured while splitting sna1_route" /> + </return> + </outcome> + </execute> + </block> + </outcome> </switch> <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_exportRT1'`"> - <outcome value="true" /> + <outcome value="true"> + <block atomic="true"> + <set> + <parameter name="tmp.dci-connects.evpn_erts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split"> + <parameter name="original_string" value="`$tmp.dci-connects.evpn_erts.original`" /> + <parameter name="regex" value="," /> + <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_erts" /> + <outcome value="success"> + <for index="idx" start="0" end="`$tmp.dci-connects.evpn_erts_length`"> + <set> + <parameter name="prop.dci-connects.evpn_erts[$idx]" value="`$tmp.dci-connects.evpn_erts[$idx]`" /> + </set> + </for> + </outcome> + <outcome value="failure"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="An error occured while splitting sna1_route" /> + </return> + </outcome> + </execute> + </block> + </outcome> </switch> <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`"> <outcome value="true"> |