diff options
author | 2020-02-29 00:25:00 +0000 | |
---|---|---|
committer | 2020-03-04 01:30:24 +0000 | |
commit | 58acc1cd194f7d61b22f875bccc6738e6dfb0b7c (patch) | |
tree | 81e28b23e190941c70aec08b6fc9d887bce64d67 /platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml | |
parent | 329b7c6477ec677507b0de33a053f887526b3d84 (diff) |
Adding support for multi-layer and multi-domain topology discovery for CCVPN
Issue-ID: SDNC-899
Change-Id: I20f9d82e2488be3f90ef2566511787c69b6f7ed0
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Former-commit-id: e5d3e8b2548f4cfe234e7d35733964e803cc0594
Diffstat (limited to 'platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml')
-rw-r--r-- | platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml | 180 |
1 files changed, 178 insertions, 2 deletions
diff --git a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml index c90a5cb2..a80f8710 100644 --- a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml +++ b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml @@ -1,6 +1,6 @@ <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='DataChange' version='${project.version}'>
+ 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='DataChange' version='${project.version}'>
<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>
<block atomic="true">
<switch test="`$prop.sdncRestApi.vendor == 'ZTE'`">
@@ -64,6 +64,94 @@ <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>
</block>
</for>
+ <switch test='`$topology.networks.network_length`'>
+ <outcome value='2'>
+ <switch test='`$topology.networks.network[0].network-types`'>
+ <outcome value='ethernet-topology'>
+ <switch test='`$topology.networks.network[1].network-types`'>
+ <outcome value='otn-topology'>
+ <block>
+ <set>
+ <parameter name='network-eth.' value='`$topology.networks.network[0].`' />
+ <parameter name='network-otn.' value='`$topology.networks.network[1].`' />
+ </set>
+ <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='otn-topology'>
+ <switch test='`$topology.networks.network[1].network-types`'>
+ <outcome value='ethernet-topology'>
+ <block>
+ <set>
+ <parameter name='network.eth' value='`$topology.networks.network[1].`' />
+ <parameter name='network.otn' value='`$topology.networks.network[0].`' />
+ </set>
+ <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-resources"
+ pfx='tmp.aai.network-resources' local-only='false' >
+ <outcome value='success'>
+ <switch test='tmp.aai.network-resources_length'>
+ <outcome value='4'>
+ <block atomic='true'>
+ <for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >
+ <block>
+ <set>
+ <parameter name='otnidx' value='0' />
+ </set>
+ <switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>
+ <outcome value='otn-topology'>
+ <block>
+ <set>
+ <parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />
+ </set>
+ <set>
+ <parameter name='otnidx' value='`$otnidx + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <call module='DataChange' rpc='update-open-ended-links' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
</block>
</outcome>
</execute>
@@ -98,6 +186,94 @@ <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>
</block>
</for>
+ <switch test='`$topology.networks.network_length`'>
+ <outcome value='2'>
+ <switch test='`$topology.networks.network[0].network-types`'>
+ <outcome value='ethernet-topology'>
+ <switch test='`$topology.networks.network[1].network-types`'>
+ <outcome value='otn-topology'>
+ <block>
+ <set>
+ <parameter name='network-eth.' value='`$topology.networks.network[0].`' />
+ <parameter name='network-otn.' value='`$topology.networks.network[1].`' />
+ </set>
+ <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='otn-topology'>
+ <switch test='`$topology.networks.network[1].network-types`'>
+ <outcome value='ethernet-topology'>
+ <block>
+ <set>
+ <parameter name='network.eth' value='`$topology.networks.network[1].`' />
+ <parameter name='network.otn' value='`$topology.networks.network[0].`' />
+ </set>
+ <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-resources"
+ pfx='tmp.aai.network-resources' local-only='false' >
+ <outcome value='success'>
+ <switch test='tmp.aai.network-resources_length'>
+ <outcome value='4'>
+ <block atomic='true'>
+ <for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >
+ <block>
+ <set>
+ <parameter name='otnidx' value='0' />
+ </set>
+ <switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>
+ <outcome value='otn-topology'>
+ <block>
+ <set>
+ <parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />
+ </set>
+ <set>
+ <parameter name='otnidx' value='`$otnidx + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <call module='DataChange' rpc='update-open-ended-links' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
</block>
</outcome>
</execute>
|