aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
diff options
context:
space:
mode:
authorHesam Rahimi <hesam.rahimi@huawei.com>2020-11-11 16:01:57 +0000
committerHesam Rahimi <hesam.rahimi@huawei.com>2020-11-12 03:51:50 +0000
commit1d98b77f5794ce6f2ec457ae5cc73a5d4601491a (patch)
treefc4caa524e1d6a1929408dbcbfe3485f3dfa7336 /platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
parentbe9c4ac3e4723913ba37f2acc11a14e77165b332 (diff)
- Changing POST operation to PATCH for OTN Tunnel creation.
- Adding Transport Slicing DGs into graph.versions - Fixing template files for OTN tunnel creation Issue-ID: SDNC-1413 Change-Id: I3ddabd4c0d361a4e0d5e98caf86e9bb361b41b63 Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com> Former-commit-id: 97afd8c7495cf23e8819cb666be9ccbe4f968f68
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml')
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml26
1 files changed, 16 insertions, 10 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
index 33e7facb..02312230 100644
--- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
@@ -123,6 +123,10 @@
<block>
<set>
<parameter name='maximum-bandwidth' value="`$tmp.aai.network-policy.max-bandwidth`" />
+ <parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ <set>
+ <parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
</set>
</block>
</outcome>
@@ -710,6 +714,7 @@
<parameter name='src-access-ltp-id' value='' />
<parameter name='dst-access-node-id' value='`$domain-A.node-id`' />
<parameter name='dst-access-ltp-id' value='`$domain-A.tunnel-tp-id`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />
<parameter name='operational-status' value='Created' />
<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
@@ -745,6 +750,7 @@
<parameter name='dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
<!--<parameter name='dst-access-ltp-id' value='`$destination.tunnel-tp-id`' />-->
<parameter name='dst-access-ltp-id' value='' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />
<parameter name='operational-status' value='Created' />
<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
@@ -766,7 +772,7 @@
<parameter name='request-id' value='`$prop.vpn-binding-domainA-uuid`' />
<parameter name='otn-source-node' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
<parameter name='otn-dest-node' value='`$domain-A.node-id`' />
- <parameter name='bw-odu' value="`'0,' + $maximum-bandwidth /1000 *2 /3 `" />
+ <parameter name='bw-odu' value="`'0,' + $gfp`" />
<!--<parameter name='src-ttp-id' value='`$source.tunnel-tp-id`' />-->
<parameter name='dst-ttp-id' value='`$domain-A.tunnel-tp-id`' />
<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
@@ -788,7 +794,7 @@
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing OOF api" />
+ <parameter name="error-message" value="Error executing slice creation api for domain A" />
</return>
</outcome>
<outcome value='success'>
@@ -797,11 +803,11 @@
</execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te/ietf-optical-slice:tp-slice-id' `" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
<parameter name="format" value="json"/>
- <parameter name="httpMethod" value="post"/>
+ <parameter name="httpMethod" value="patch"/>
<parameter name="responsePrefix" value="otn-oof"/>
<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
<parameter name="trustStorePassword" value="adminadmin"/>
@@ -812,7 +818,7 @@
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing OOF api" />
+ <parameter name="error-message" value="Error executing UNI Coloring for domain A" />
</return>
</outcome>
<outcome value='success'>
@@ -824,7 +830,7 @@
<parameter name='otn-source-node' value='`$domain-B.node-id`' />
<parameter name='otn-dest-node' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
<!--<parameter name='bw-odu' value='`$maximum-bandwidth /10`' />-->
- <parameter name='bw-odu' value="`'0,' + $maximum-bandwidth /1000 *2 /3 `" />
+ <parameter name='bw-odu' value="`'0,' + $gfp`" />
<parameter name='src-ttp-id' value='`$domain-B.tunnel-tp-id`' />
<!--<parameter name='dst-ttp-id' value='`$destination.tunnel-tp-id`' />-->
<parameter name='dst-ttp-id' value='' />
@@ -848,7 +854,7 @@
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing OOF api" />
+ <parameter name="error-message" value="Error executing slice creation api for domain B" />
</return>
</outcome>
<outcome value='success'>
@@ -857,11 +863,11 @@
</execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te/ietf-optical-slice:tp-slice-id' `" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
<parameter name="format" value="json"/>
- <parameter name="httpMethod" value="post"/>
+ <parameter name="httpMethod" value="patch"/>
<parameter name="responsePrefix" value="otn-oof"/>
<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
<parameter name="trustStorePassword" value="adminadmin"/>
@@ -872,7 +878,7 @@
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing OOF api" />
+ <parameter name="error-message" value="Error executing UNI coloring for domain B" />
</return>
</outcome>
<outcome value='success'>