diff options
author | 2021-09-21 23:21:08 -0400 | |
---|---|---|
committer | 2021-09-21 23:23:47 -0400 | |
commit | dfd2ca0b01409de98d89b36abdc82bd08cf474ca (patch) | |
tree | ac10c15874270f986865fa42ccd1f29126ae79e3 /platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml | |
parent | b1ca6cef4cb2fa4bee61abda7e328b45c520c497 (diff) |
Buf fixing for creation, deletion, and modification of a cloud leased-line (CLL) service.
Issue-ID: SDNC-1594
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Change-Id: I4da3a04db97a3e6358cd24cdff540e2e97c208cc
Former-commit-id: 0fab18d499c857b08812b099d9e0d88a93102247
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml | 1727 |
1 files changed, 1633 insertions, 94 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml index 7bdae76f..6c46a403 100644 --- a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml +++ b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml @@ -33,6 +33,16 @@ <outcome value='false'></outcome> <outcome value='true'> <block> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="pnfs" + key="selflink = 'https://aai.onap:8443/aai/v24/network/pnfs?depth=0'" + local-only="false" + pfx="ccsdkTopopnfs" ></get-resource> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="logical-links" + key="selflink = 'https://aai.onap:8443/aai/v24/network/logical-links?depth=0'" + local-only="false" + pfx="ccsdkTopologicalLinks" ></get-resource> <set> <parameter name='tmp.arr' value='' /> <parameter name='tmp.arridx' value='0' /> @@ -43,9 +53,15 @@ <!--<parameter name='tmp.slicevpns_length' value='0' />--> <!--<parameter name='tmp.slicevpnuuids' value='' />--> <!--<parameter name='tmp.slicevpnuuids.' value='' />--> - <parameter name='bwModified' value='false' /> </set> <for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' > + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="prop.ethernet-service-name"/> + </execute> + <set> + <!--<parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />--> + <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-id`" /> + </set> <set> <parameter name='allotted-resource-id' value="`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`" /> </set> @@ -148,102 +164,1624 @@ </outcome> </switch> </for> - <block atomic='true'> - <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' > - <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'> - <outcome value='connectivity'> - <block atomic="true"> - <set> - <parameter name='tmp.aai.connectivity.' value='' /> - </set> - <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" - resource="connectivity" - key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value" - local-only="false" - pfx="tmp.aai.connectivity" > - <outcome value='success'> - <block atomic="true"> - <switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'> - <outcome value='true'></outcome> - <outcome value='false'> - <block atomic="true"> - <set> - <parameter name='bwModified' value="true" /> - </set> - <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' > - <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'> - <outcome value='vpn-binding'> - <block atomic="true"> - <set> - <parameter name='tmp.aai.vpn-binding.' value='' /> - </set> - <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" - resource="vpn-binding" - key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value" - local-only="false" - pfx="tmp.aai.vpn-binding" > - <outcome value='success'> + <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' > + <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'> + <outcome value='logical-link'> + <block atomic="true"> + <set> + <parameter name='logical-link-name' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="logical-link" + key='logical-link.link-name = $logical-link-name' + local-only="false" + force="true" pfx="tmp.aai.logical-link"> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <block> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="prop.otn-tunnel-name"/> + </execute> + <set> + <!--<parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />--> + <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-id`" /> + </set> + <set> + <parameter name='network-route-one' value="`$tmp.aai.logical-link.link-name`" /> + </set> + <set> + <parameter name='network-route-two' value="`$tmp.aai.logical-link.link-name2`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="network-route" + key='network-route.route-id = $network-route-one' + local-only="false" + force="true" pfx="tmp.aai.network-route-one"> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <switch test='`$tmp.aai.network-route-one.type`'> + <outcome value='ROOT'> + <block> + <set> + <parameter name='tmp.aai.network-route-ROOT.' value="`$tmp.aai.network-route-one.`" /> + </set> + <set> + <parameter name='tmp.aai.network-route-B.' value="`$tmp.aai.network-route-one.`" /> + </set> + </block> + </outcome> + <outcome value='LEAF'> + <block> + <set> + <parameter name='tmp.aai.network-route-LEAF.' value="`$tmp.aai.network-route-one.`" /> + </set> + <set> + <parameter name='tmp.aai.network-route-A.' value="`$tmp.aai.network-route-one.`" /> + </set> + </block> + </outcome> + </switch> + </block> + </outcome> + </get-resource> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="network-route" + key='network-route.route-id = $network-route-two' + local-only="false" + force="true" pfx="tmp.aai.network-route-two"> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <switch test='`$tmp.aai.network-route-two.type`'> + <outcome value='ROOT'> + <block> + <set> + <parameter name='tmp.aai.network-route-ROOT.' value="`$tmp.aai.network-route-two.`" /> + </set> + <set> + <parameter name='tmp.aai.network-route-B.' value="`$tmp.aai.network-route-two.`" /> + </set> + </block> + </outcome> + <outcome value='LEAF'> + <block> + <set> + <parameter name='tmp.aai.network-route-LEAF.' value="`$tmp.aai.network-route-two.`" /> + </set> + <set> + <parameter name='tmp.aai.network-route-A.' value="`$tmp.aai.network-route-two.`" /> + </set> + </block> + </outcome> + </switch> + </block> + </outcome> + </get-resource> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' > + <parameter name="original_string" value='`$tmp.aai.network-route-A.next-hop`'/> + <!--<parameter name="regex" value="[^-]+$"/>--> + <parameter name="regex" value="[-]+"/> + <parameter name="ctx_memory_result_key" value="param-prefix-domainA-pnfName"/> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.src.domainA.pnf-name' value="`$param-prefix-domainA-pnfName[0] + '-' + + $param-prefix-domainA-pnfName[1] + '-' + + $param-prefix-domainA-pnfName[2] + '-' + + $param-prefix-domainA-pnfName[3] + '-' + + $param-prefix-domainA-pnfName[4] + '-' + + $param-prefix-domainA-pnfName[5] + '-' + + $param-prefix-domainA-pnfName[6] + '-' + + $param-prefix-domainA-pnfName[7] + '-' + + $param-prefix-domainA-pnfName[8]`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="pnf" + key="pnf.pnf-name = $tmp.src.domainA.pnf-name" + pfx='tmp.aai.source-pnf' local-only='false' > + <!--AND depth = '0'"--> + <outcome value='success'> + <block> + <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' > + <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'> + <outcome value='esr-thirdparty-sdnc'> + <block atomic="true"> + <set> + <parameter name='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="esr-thirdparty-sdnc" + key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND + depth = '1'" + pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' > + <outcome value='success'> + <block> + <set> + <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" /> + <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" /> + <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" /> + <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >--> + <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />--> + <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />--> + <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />--> + <!--<parameter name="format" value="json"/>--> + <!--<parameter name="httpMethod" value="get"/>--> + <!--<parameter name="responsePrefix" value="topology"/>--> + <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>--> + <!--<parameter name="trustStorePassword" value="adminadmin"/>--> + <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>--> + <!--<parameter name="keyStorePassword" value="adminadmin"/>--> + </set> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + </get-resource> + </block> + </outcome> + <outcome value='network-resource'> + <block atomic="true"> + <set> + <parameter name='tmp.domainA.eth-network-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" /> + </set> + </block> + </outcome> + </switch> + </for> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + </get-resource> + </block> + </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> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="p-interface" + key="pnf.pnf-name = $tmp.src.domainA.pnf-name + AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop" + local-only="false" + pfx="tmp.aai.network-route-A.p-interface-src" > + <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" --> + <!-- resource="p-interface"--> + <!-- key="pnf.pnf-name = $unique-src-node-Id--> + <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"--> + <!-- local-only="false" --> + <!-- pfx="tmp.aai.endpointA.p-interface-src" >--> + <outcome value='success'> + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' > + <parameter name="original_string" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/> + <!--<parameter name="regex" value="[^-]+$"/>--> + <parameter name="regex" value="[-]+"/> + <parameter name="ctx_memory_result_key" value="param-prefix-domainA"/> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' /> + </set> + <set> + <parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' /> + </set> + </block> + </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> + <for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' > + <switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'> + <outcome value='tunnel-termination-point'> + <block atomic="true"> + <set> + <parameter name='tmp.source.ttp-id' value="`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="tunnel-termination-point" + key="tunnel-termination-point.ttp-id = $tmp.source.ttp-id + AND depth = '0'" + pfx='tmp.aai.source-ttp' local-only='false' > + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='source.tunnel-tp-id' value="`$tmp.aai.source-ttp.tunnel-tp-id`" /> + </set> + </block> + </outcome> + </get-resource> + <break/> + </block> + </outcome> + </switch> + </for> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + </get-resource> + <set> + <parameter name='tmp.LEAF.pnf-name-long' value="`$param-prefix-domainA-pnfName[0] + '-' + + $param-prefix-domainA-pnfName[1] + '-' + + $param-prefix-domainA-pnfName[2] + '-' + + $param-prefix-domainA-pnfName[3] + '-' + + $param-prefix-domainA-pnfName[4] + '-' + + $param-prefix-domainA-pnfName[5] + '-' + + $param-prefix-domainA-pnfName[6] + '-' + + $param-prefix-domainA-pnfName[7] + '-' + + $param-prefix-domainA-pnfName[8]`" /> + <!--<parameter name='tmp.LEAF.pnf-name-short' value="`$param-prefix-domainA-pnfName[8]`" />--> + <parameter name='tmp.LEAF.pnf-name-short' value="`$tmp.src.pnf-name`" /> + <parameter name='tmp.LEAF.uni-p-interface-long' value="`$tmp.aai.network-route-A.next-hop`" /> + <parameter name='tmp.LEAF.uni-tp-id' value="`$tmp.src.ltpId`" /> + </set> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' > + <parameter name="original_string" value='`$tmp.aai.network-route-B.next-hop`'/> + <!--<parameter name="regex" value="[^-]+$"/>--> + <parameter name="regex" value="[-]+"/> + <parameter name="ctx_memory_result_key" value="param-prefix-domainB-pnfName"/> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.dst.domainB.pnf-name' value="`$param-prefix-domainB-pnfName[0] + '-' + + $param-prefix-domainB-pnfName[1] + '-' + + $param-prefix-domainB-pnfName[2] + '-' + + $param-prefix-domainB-pnfName[3] + '-' + + $param-prefix-domainB-pnfName[4] + '-' + + $param-prefix-domainB-pnfName[5] + '-' + + $param-prefix-domainB-pnfName[6] + '-' + + $param-prefix-domainB-pnfName[7] + '-' + + $param-prefix-domainB-pnfName[8]`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="pnf" + key="pnf.pnf-name = $tmp.dst.domainB.pnf-name" + pfx='tmp.aai.destination-pnf' local-only='false' > + <!--AND depth = '0'"--> + <outcome value='success'> + <block> + <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' > + <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'> + <outcome value='esr-thirdparty-sdnc'> + <block atomic="true"> + <set> + <parameter name='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="esr-thirdparty-sdnc" + key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND + depth = '1'" + pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' > + <outcome value='success'> + <block> + <set> + <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" /> + <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" /> + <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" /> + <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >--> + <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />--> + <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />--> + <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />--> + <!--<parameter name="format" value="json"/>--> + <!--<parameter name="httpMethod" value="get"/>--> + <!--<parameter name="responsePrefix" value="topology"/>--> + <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>--> + <!--<parameter name="trustStorePassword" value="adminadmin"/>--> + <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>--> + <!--<parameter name="keyStorePassword" value="adminadmin"/>--> + </set> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + </get-resource> + </block> + </outcome> + <outcome value='network-resource'> + <block atomic="true"> + <set> + <parameter name='tmp.domainB.eth-network-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" /> + </set> + </block> + </outcome> + </switch> + </for> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" /> + </return> + </outcome> + </get-resource> + </block> + </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> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="p-interface" + key="pnf.pnf-name = $tmp.dst.domainB.pnf-name + AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop" + local-only="false" + pfx="tmp.aai.network-route-B.p-interface-dst" > + <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" --> + <!-- resource="p-interface"--> + <!-- key="pnf.pnf-name = $unique-src-node-Id--> + <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"--> + <!-- local-only="false" --> + <!-- pfx="tmp.aai.endpointA.p-interface-src" >--> + <outcome value='success'> + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' > + <parameter name="original_string" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/> + <!--<parameter name="regex" value="[^-]+$"/>--> + <parameter name="regex" value="[-]+"/> + <parameter name="ctx_memory_result_key" value="param-prefix-domainB"/> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' /> + </set> + <set> + <parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' /> + </set> + </block> + </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> + <for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' > + <switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'> + <outcome value='tunnel-termination-point'> + <block atomic="true"> + <set> + <parameter name='tmp.destination.ttp-id' value="`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`" /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="tunnel-termination-point" + key="tunnel-termination-point.ttp-id = $tmp.destination.ttp-id + AND depth = '0'" + pfx='tmp.aai.destination-ttp' local-only='false' > + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='destination.tunnel-tp-id' value="`$tmp.aai.destination-ttp.tunnel-tp-id`" /> + </set> + </block> + </outcome> + </get-resource> + <break/> + </block> + </outcome> + </switch> + </for> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + </get-resource> + <set> + <parameter name='tmp.ROOT.pnf-name-long' value="`$param-prefix-domainB-pnfName[0] + '-' + + $param-prefix-domainB-pnfName[1] + '-' + + $param-prefix-domainB-pnfName[2] + '-' + + $param-prefix-domainB-pnfName[3] + '-' + + $param-prefix-domainB-pnfName[4] + '-' + + $param-prefix-domainB-pnfName[5] + '-' + + $param-prefix-domainB-pnfName[6] + '-' + + $param-prefix-domainB-pnfName[7] + '-' + + $param-prefix-domainB-pnfName[8]`" /> + <!--<parameter name='tmp.ROOT.pnf-name-short' value="`$param-prefix-domainB-pnfName[8]`" />--> + <parameter name='tmp.ROOT.pnf-name-short' value="`$tmp.dst.pnf-name`" /> + <parameter name='tmp.ROOT.uni-p-interface-long' value="`$tmp.aai.network-route-B.next-hop`" /> + <parameter name='tmp.ROOT.uni-tp-id' value="`$tmp.dst.ltpId`" /> + </set> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-logic' mode='sync' ></call> + <switch test='`$found-middle-man`'> + <outcome value='false'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="uuid.connectivity-domainA-uuid"/> + </execute> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'> + <parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' /> + <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' /> + <parameter name='operational-status' value='Created' /> + <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' /> + <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' /> + <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' /> + <parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' /> + <parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <parameter name='vpn-type' value='leaf' /> + <parameter name='bandwidth-profile-name' value='`$gfp`' /> + <parameter name='cir' value='`$gfp *1000000`' /> + <parameter name='eir' value='`$gfp *1000000`' /> + <parameter name='cbs' value='`$prop.sotn.cbs`' /> + <parameter name='ebs' value='`$prop.sotn.ebs`' /> + <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />--> + <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />--> + <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />--> + <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' /> + <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' /> + <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' /> + <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.LEAF.uni-p-interface-long'> + <parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' /> + <parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <parameter name='data-source' value='`$gfp`' /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.LEAF.uni-p-interface-long`" /> + </save> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="prop.connectivity-domainB-uuid"/> + </execute> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'> + <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' --> + <!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>--> + <!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />--> + <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' /> + <parameter name='operational-status' value='Created' /> + <parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' /> + <parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' /> + <parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' /> + <parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' /> + <parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' /> + <parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' /> + <parameter name='vpn-type' value='root' /> + <parameter name='bandwidth-profile-name' value='`$gfp`' /> + <parameter name='cir' value='`$gfp *1000000`' /> + <parameter name='eir' value='`$gfp *1000000`' /> + <parameter name='cbs' value='`$prop.sotn.cbs`' /> + <parameter name='ebs' value='`$prop.sotn.ebs`' /> + <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />--> + <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />--> + <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />--> + <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' /> + <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' /> + <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' /> + <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.ROOT.uni-p-interface-long'> + <parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' /> + <parameter name='tp-id' value='`$tmp.ROOT.uni-tp-id`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' /> + <parameter name='data-source' value='`$gfp`' /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.ROOT.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.ROOT.uni-p-interface-long`" /> + </save> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="prop.connectivity-middle-man-uuid"/> + </execute> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'> + <parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' /> + <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' /> + <parameter name='operational-status' value='Created' /> + <!--The followings are not needed for the middle-man-connectivity--> + <!--<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />--> + <!--<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />--> + <!--<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />--> + <!--<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />--> + <!--<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />--> + <parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' /> + <parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' /> + <parameter name='vpn-type' value='mdsc' /> + <parameter name='bandwidth-profile-name' value='`$gfp`' /> + <parameter name='cir' value='`$gfp *1000000`' /> + <parameter name='eir' value='`$gfp *1000000`' /> + <parameter name='cbs' value='`$prop.sotn.cbs`' /> + <parameter name='ebs' value='`$prop.sotn.ebs`' /> + <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />--> + <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />--> + <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />--> + <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' /> + <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' /> + <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' /> + <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-middle-man-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-middle-man-uuid`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="connectivity" + key="connectivity.connectivity-id = $prop.connectivity-middle-man-uuid" + local-only="false" + pfx="middle-man-conn" > + <outcome value='success'> + <block atomic='true'></block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + </get-resource> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.LEAF.uni-p-interface-long`" /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.ROOT.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.ROOT.uni-p-interface-long`" /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" /> + </save> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' ></call> + </block> + </outcome> + <outcome value='true'> + <block> + <exists plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' key='uni.id = $tmp.LEAF.uni-p-interface-long'> + <outcome value='true'> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="uni" + key="uni.id = $tmp.LEAF.uni-p-interface-long" + local-only="false" + pfx="tmp.aai.leafuni" > + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <switch test='`$tmp.aai.leafuni.data-source == $gfp`'> + <outcome value='true'></outcome> + <outcome value='false'> + <block atomic="true"> + <set> + <parameter name='bwModified' value="true" /> + </set> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.LEAF.uni-p-interface-long'> + <parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' /> + <parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <parameter name='data-source' value='`$gfp`' /> + </update> + <switch test='`$tmp.aai.leafuni.data-source > $gfp`'> + <outcome value='false'> + <block> + <set> + <parameter name='tmp.delta' value='`$gfp - $tmp.aai.leafuni.data-source`' /> + <parameter name='tmp.realdelta' value='`$gfp - $tmp.aai.leafuni.data-source`' /> + <parameter name='tmp.isBwIncreased' value='true' /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="uni" + key="uni.id = $tmp.ROOT.uni-p-interface-long" + local-only="false" + pfx="tmp.aai.rootuni" > + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source + $tmp.delta`' /> + </set> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.ROOT.uni-p-interface-long'> + <parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' /> + <parameter name='data-source' value='`$tmp.newbw`' /> + </update> + </block> + </outcome> + </get-resource> + </block> + </outcome> + <outcome value='true'> + <block> + <set> + <parameter name='tmp.delta' value='`$tmp.aai.leafuni.data-source - $gfp`' /> + <parameter name='tmp.realdelta' value='`$gfp - $tmp.aai.leafuni.data-source`' /> + <parameter name='tmp.isBwIncreased' value='false' /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="uni" + key="uni.id = $tmp.ROOT.uni-p-interface-long" + local-only="false" + pfx="tmp.aai.rootuni" > + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source - $tmp.delta`' /> + </set> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.ROOT.uni-p-interface-long'> + <parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' /> + <parameter name='data-source' value='`$tmp.newbw`' /> + </update> + </block> + </outcome> + </get-resource> + </block> + </outcome> + </switch> <block atomic="true"> - <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' - key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' > - <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' /> - <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' /> - <parameter name='route-distinguisher' value='`$gfp`' /> - <parameter name='operational-status' value='Modified' /> - </update> - <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' - key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'> - <parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' /> - <parameter name='operational-status' value='Modified' /> - <parameter name='bandwidth-profile-name' value='`$gfp`' /> - <parameter name='cir' value='`$gfp *1000000`' /> - <parameter name='eir' value='`$gfp *1000000`' /> - </update> + <block> + <set> + <parameter name='allNetworksList.' value='' /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="network-resources" + key="selflink = 'https://aai.onap:8443/aai/v24/network/network-resources?depth=0'" + local-only="false" + pfx="allNetworksList" > + <outcome value='success'></outcome> + <outcome value='Other'></outcome> + <outcome value='not-found'></outcome> + </get-resource> + <for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' > + <switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'> + <outcome value='true'> + <switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'> + <outcome value='true'> + <set> + <parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' /> + </set> + </outcome> + </switch> + </outcome> + </switch> + </for> + <set> + <parameter name='tmp.pce-src-node.' value='' /> + </set> + <set> + <!--<parameter name='tmp.pce-src-node' value="`$param-prefix-domainA-pnfName[0] + '-' +--> + <!-- $param-prefix-domainA-pnfName[1] + '-' +--> + <!-- $param-prefix-domainA-pnfName[2] + '-' +--> + <!-- $param-prefix-domainA-pnfName[3] + '-' +--> + <!-- $param-prefix-domainA-pnfName[4] + '-' +--> + <!-- $param-prefix-domainA-pnfName[5] + '-' +--> + <!-- 1 + '-' +--> + <!-- $param-prefix-domainA-pnfName[7] + '-' +--> + <!-- $param-prefix-domainA-pnfName[8]`" />--> + <parameter name='tmp.pce-src-node' value="`$param-prefix-domainA-pnfName[0] + '-' + + $param-prefix-domainA-pnfName[1] + '-' + + $param-prefix-domainA-pnfName[2] + '-' + + $param-prefix-domainA-pnfName[3] + '-' + + $param-prefix-domainA-pnfName[4] + '-' + + $param-prefix-domainA-pnfName[5] + '-' + + $otnTopoIdSrc + '-' + + $param-prefix-domainA-pnfName[7] + '-' + + $param-prefix-domainA-pnfName[8]`" /> + </set> + <set> + <!--<parameter name='tmp.srcTtpOtnLayer' value="`$tmp.pce-src-node + '-' + --> + <!-- $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +--> + <!-- $tmp.source.ttp-id`" />--> + <parameter name='tmp.srcTtpOtnLayer' value="`$tmp.pce-src-node`" /> + </set> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' ></call> + </block> + <set> + <parameter name='tmp.current-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' /> + <parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <!--<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />--> + <!--<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />--> + <!--<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />--> + <!--<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />--> + <!--<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />--> + <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />--> + </set> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' ></call> + <switch test="`$found-connectivity`"> + <outcome value='false'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="LEAF CONN DOES NOT EXIST BUT IT SHOULD BE." /> + </return> + </outcome> + <outcome value='true'> + <block atomic='true'> + <for silentFailure='true' index='cridx' start='0' end='`$tmp.the-connectivity.relationship-list.relationship_length`' > + <switch test='`$tmp.the-connectivity.relationship-list.relationship[$cridx].related-to`'> + <outcome value='vpn-binding'> + <block atomic="true"> + <set> + <parameter name='tmp.aai.vpn-binding.' value='' /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="vpn-binding" + key="vpn-binding.vpn-id = $tmp.the-connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value" + local-only="false" + pfx="tmp.aai.vpn-binding" > + <outcome value='success'> + <block atomic='true'> + <switch test="`$tmp.aai.vpn-binding.ops-note == $tmp.srcTtpOtnLayer `"> + <outcome value='true'> + <switch test="`$tmp.isBwIncreased`"> + <outcome value='true'> + <block atomic='true'> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' + key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' > + <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' /> + <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' /> + <parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' /> + <parameter name='route-distinguisher' value='`$tmp.aai.vpn-binding.route-distinguisher + $tmp.delta`' /> + <parameter name='operational-status' value='Modified' /> + </update> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'> + <parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' /> + <parameter name='operational-status' value='Modified' /> + <!--<parameter name='bandwidth-profile-name' value='`$gfp`' />--> + <!--<parameter name='cir' value='`$gfp *1000000`' />--> + <!--<parameter name='eir' value='`$gfp *1000000`' />--> + </update> + </block> + </outcome> + <outcome value='false'> + <block atomic='true'> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' + key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' > + <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' /> + <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' /> + <parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' /> + <parameter name='route-distinguisher' value='`$tmp.aai.vpn-binding.route-distinguisher - $tmp.delta`' /> + <parameter name='operational-status' value='Modified' /> + </update> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'> + <parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' /> + <parameter name='operational-status' value='Modified' /> + <!--<parameter name='bandwidth-profile-name' value='`$gfp`' />--> + <!--<parameter name='cir' value='`$gfp *1000000`' />--> + <!--<parameter name='eir' value='`$gfp *1000000`' />--> + </update> + </block> + </outcome> + </switch> + </outcome> + <outcome value='false'></outcome> + </switch> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + </get-resource> + </block> + </outcome> + </switch> + </for> + </block> + </outcome> + </switch> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' ></call> + <switch test="`$found-root-connectivity`"> + <outcome value='true'> + <block atomic='true'> + <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.ROOT.connectivity.relationship-list.relationship_length`' > + <switch test='`$tmp.aai.ROOT.connectivity.relationship-list.relationship[$cridx].related-to`'> + <outcome value='vpn-binding'> + <block atomic="true"> + <set> + <parameter name='tmp.aai.vpn-binding.' value='' /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="vpn-binding" + key="vpn-binding.vpn-id = $tmp.aai.ROOT.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value" + local-only="false" + pfx="tmp.aai.vpn-binding" > + <outcome value='success'> + <block atomic="true"> + <block atomic='true'> + <switch test="`$tmp.aai.vpn-binding.ops-note == $tmp.srcTtpOtnLayer `"> + <outcome value='true'> + <switch test="`$tmp.isBwIncreased`"> + <outcome value='true'> + <block atomic='true'> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' + key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' > + <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' /> + <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' /> + <parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' /> + <parameter name='route-distinguisher' value='`$tmp.aai.vpn-binding.route-distinguisher + $tmp.delta`' /> + <parameter name='operational-status' value='Modified' /> + </update> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'> + <parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' /> + <parameter name='operational-status' value='Modified' /> + <!--<parameter name='bandwidth-profile-name' value='`$gfp`' />--> + <!--<parameter name='cir' value='`$gfp *1000000`' />--> + <!--<parameter name='eir' value='`$gfp *1000000`' />--> + </update> + </block> + </outcome> + <outcome value='false'> + <block atomic='true'> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' + key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' > + <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' /> + <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' /> + <parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' /> + <parameter name='route-distinguisher' value='`$tmp.aai.vpn-binding.route-distinguisher - $tmp.delta`' /> + <parameter name='operational-status' value='Modified' /> + </update> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'> + <parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' /> + <parameter name='operational-status' value='Modified' /> + <!--<parameter name='bandwidth-profile-name' value='`$gfp`' />--> + <!--<parameter name='cir' value='`$gfp *1000000`' />--> + <!--<parameter name='eir' value='`$gfp *1000000`' />--> + </update> + </block> + </outcome> + </switch> + </outcome> + <outcome value='false'></outcome> + </switch> + </block> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + </get-resource> + </block> + </outcome> + </switch> + </for> + </block> + </outcome> + <outcome value='false'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='Root Connectivity was not found but it should have been!' /> + </return> + </outcome> + </switch> </block> - </outcome> - <outcome value='not-found'> - <return status='failure'> - <parameter name='ack-final' value='Y'/> - <parameter name="error-code" value="500" /> - <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> - </return> - </outcome> - <outcome value='failure'> - <return status='failure'> - <parameter name='error-code' value='' /> - <parameter name='error-message' value='' /> - </return> - </outcome> - </get-resource> - </block> + </block> + </outcome> + </switch> </outcome> - </switch> - </for> - </block> - </outcome> - </switch> - </block> - </outcome> - <outcome value='not-found'> - <return status='failure'> - <parameter name='ack-final' value='Y'/> - <parameter name="error-code" value="500" /> - <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> - </return> - </outcome> - <outcome value='failure'> - <return status='failure'> - <parameter name='error-code' value='' /> - <parameter name='error-message' value='' /> - </return> - </outcome> - </get-resource> - </block> - </outcome> - </switch> - </for> - <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' ></call> - </block> + </get-resource> + </outcome> + <outcome value='false'> + <block atomic='true'> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="uni" + key="uni.id = $tmp.ROOT.uni-p-interface-long" + local-only="false" + pfx="tmp.aai.rootuni" > + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <set> + <parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source + $gfp`' /> + </set> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.ROOT.uni-p-interface-long'> + <parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' /> + <parameter name='data-source' value='`$tmp.newbw`' /> + </update> + </block> + </outcome> + </get-resource> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $middle-man-conn.connectivity-id`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$middle-man-conn.connectivity-id`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <set> + <parameter name='tmp.current-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' /> + <parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <!--<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />--> + <!--<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />--> + <!--<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />--> + <!--<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />--> + <!--<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />--> + <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />--> + </set> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' ></call> + <switch test='`$no-pce-call`'> + <outcome value='false'> + <block atomic='true'> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.LEAF.uni-p-interface-long'> + <parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' /> + <parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <parameter name='data-source' value='`$gfp`' /> + </save> + <switch test="`$found-connectivity`"> + <outcome value='false'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="uuid.connectivity-domainA-uuid"/> + </execute> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'> + <parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' /> + <parameter name='etht-svc-name' value='`$middle-man-conn.etht-svc-name`' /> + <parameter name='operational-status' value='Created' /> + <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' /> + <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' /> + <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' /> + <parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' /> + <parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <parameter name='vpn-type' value='leaf' /> + <parameter name='bandwidth-profile-name' value='`$gfp`' /> + <parameter name='cir' value='`$gfp *1000000`' /> + <parameter name='eir' value='`$gfp *1000000`' /> + <parameter name='cbs' value='`$prop.sotn.cbs`' /> + <parameter name='ebs' value='`$prop.sotn.ebs`' /> + <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />--> + <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />--> + <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />--> + <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' /> + <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' /> + <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' /> + <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" /> + </save> + </block> + </outcome> + <outcome value='true'> + <block atomic='true'> + <set> + <parameter name='uuid.connectivity-domainA-uuid' value="`$tmp.the-connectivity.connectivity-id`" /> + </set> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.the-connectivity.connectivity-id`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'> + <parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' /> + <parameter name='operational-status' value='Modified' /> + </update> + </block> + </outcome> + </switch> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.LEAF.uni-p-interface-long`" /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.LEAF.uni-p-interface-long`" /> + </save> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' ></call> + <switch test="`$found-root-connectivity`"> + <outcome value='true'> + <block atomic='true'> + <set> + <!--<parameter name='prop.connectivity-domainB-uuid' value="`$tmp.ROOT.uni-p-interface-long`" />--> + <!--OR--> + <parameter name='prop.connectivity-domainB-uuid' value="`$tmp.aai.ROOT.connectivity.connectivity-id`" /> + </set> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $tmp.aai.ROOT.connectivity.connectivity-id`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.aai.ROOT.connectivity.connectivity-id`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'> + <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' /> + <parameter name='operational-status' value='Modified' /> + </update> + </block> + </outcome> + <outcome value='false'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='Root Connectivity was not found' /> + </return> + </outcome> + </switch> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' ></call> + </block> + </outcome> + <outcome value='true'> + <block atomic='true'> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' + key='uni.id = $tmp.LEAF.uni-p-interface-long'> + <parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' /> + <parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' /> + <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <parameter name='data-source' value='`$gfp`' /> + </save> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.LEAF.uni-p-interface-long`" /> + </save> + <set> + <parameter name='tmp.current-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' /> + <parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' /> + <!--<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />--> + <!--<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />--> + <!--<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />--> + <!--<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />--> + <!--<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />--> + <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />--> + </set> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' ></call> + <switch test="`$found-connectivity`"> + <outcome value='false'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='Connectivity should have been created' /> + </return> + </outcome> + <outcome value='true'> + <block> + <block> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' ></call> + <switch test="`$found-root-connectivity`"> + <outcome value='true'> + <block atomic='true'> + <set> + <!--<parameter name='prop.connectivity-domainB-uuid' value="`$tmp.ROOT.uni-p-interface-long`" />--> + <!--OR--> + <parameter name='prop.connectivity-domainB-uuid' value="`$tmp.aai.ROOT.connectivity.connectivity-id`" /> + </set> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $tmp.aai.ROOT.connectivity.connectivity-id`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.aai.ROOT.connectivity.connectivity-id`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'> + <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' /> + <parameter name='operational-status' value='Modified' /> + </update> + </block> + </outcome> + <outcome value='false'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='Root Connectivity was not found' /> + </return> + </outcome> + </switch> + </block> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' + key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="uni" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="uni.id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.LEAF.uni-p-interface-long`" /> + </save> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' + key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'> + <parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' /> + <parameter name='operational-status' value='Modified' /> + </update> + <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' + key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id + AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id + AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' + force="true" pfx="tmp.AnAI-data"> + <parameter name="relationship-list.relationship[0].related-to" value="connectivity" /> + <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" /> + <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.the-connectivity.connectivity-id`" /> + <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' --> + <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id --> + <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id --> + <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' --> + <!-- force="true" pfx="tmp.AnAI-data">--> + <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />--> + <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />--> + <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />--> + </save> + <set> + <parameter name='allNetworksList.' value='' /> + </set> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="network-resources" + key="selflink = 'https://aai.onap:8443/aai/v24/network/network-resources?depth=0'" + local-only="false" + pfx="allNetworksList" > + <outcome value='success'></outcome> + <outcome value='Other'></outcome> + <outcome value='not-found'></outcome> + </get-resource> + <for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' > + <switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'> + <outcome value='true'> + <switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'> + <outcome value='true'> + <set> + <parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' /> + </set> + </outcome> + </switch> + </outcome> + </switch> + </for> + <set> + <parameter name='tmp.pce-src-node.' value='' /> + </set> + <set> + <!--<parameter name='tmp.pce-src-node' value="`$param-prefix-domainA-pnfName[0] + '-' +--> + <!-- $param-prefix-domainA-pnfName[1] + '-' +--> + <!-- $param-prefix-domainA-pnfName[2] + '-' +--> + <!-- $param-prefix-domainA-pnfName[3] + '-' +--> + <!-- $param-prefix-domainA-pnfName[4] + '-' +--> + <!-- $param-prefix-domainA-pnfName[5] + '-' +--> + <!-- 1 + '-' +--> + <!-- $param-prefix-domainA-pnfName[7] + '-' +--> + <!-- $param-prefix-domainA-pnfName[8]`" />--> + <parameter name='tmp.pce-src-node' value="`$param-prefix-domainA-pnfName[0] + '-' + + $param-prefix-domainA-pnfName[1] + '-' + + $param-prefix-domainA-pnfName[2] + '-' + + $param-prefix-domainA-pnfName[3] + '-' + + $param-prefix-domainA-pnfName[4] + '-' + + $param-prefix-domainA-pnfName[5] + '-' + + $otnTopoIdSrc + '-' + + $param-prefix-domainA-pnfName[7] + '-' + + $param-prefix-domainA-pnfName[8]`" /> + </set> + <set> + <!--<parameter name='tmp.srcTtpOtnLayer' value="`$tmp.pce-src-node + '-' + --> + <!-- $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +--> + <!-- $tmp.source.ttp-id`" />--> + <parameter name='tmp.srcTtpOtnLayer' value="`$tmp.pce-src-node`" /> + </set> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' ></call> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" + resource="vpn-bindings" + key="selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings" + local-only="false" + pfx="tmp.aai.all-vpn-bindings" > + <outcome value='success'> + <block atomic="true"> + <for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' > + <block atomic='true'> + <block atomic='true'> + <switch test="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `"> + <outcome value='true'> + <block atomic='true'> + <set> + <parameter name='tmp.aai.the-vpn-binding.' value="" /> + </set> + <set> + <parameter name='tmp.aai.the-vpn-binding.' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`" /> + </set> + <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' + key='vpn-binding.vpn-id = $tmp.aai.the-vpn-binding.vpn-id' > + <parameter name='vpn-id' value='`$tmp.aai.the-vpn-binding.vpn-id`' /> + <!--<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />--> + <parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' /> + <parameter name='route-distinguisher' value='`$tmp.aai.the-vpn-binding.route-distinguisher + $gfp`' /> + <parameter name='operational-status' value='Modified' /> + </update> + </block> + </outcome> + <outcome value='false'></outcome> + </switch> + </block> + </block> + </for> + </block> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" /> + </return> + </outcome> + <outcome value='failure'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value='' /> + </return> + </outcome> + </get-resource> + </block> + </outcome> + </switch> + </block> + </outcome> + </switch> + </block> + </outcome> + </exists> + </block> + </outcome> + </switch> + </block> + </outcome> + </get-resource> + </block> + </outcome> + </switch> + </for> </block> </outcome> </switch> @@ -254,6 +1792,7 @@ </outcome> </get-resource> </for> + <call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' ></call> </block> </outcome> </switch> |