Bug fixing required for H release. 36/120936/1
authorHesam Rahimi <hesam.rahimi@huawei.com>
Tue, 27 Apr 2021 16:33:33 +0000 (16:33 +0000)
committerHesam Rahimi <hesam.rahimi@huawei.com>
Tue, 27 Apr 2021 17:48:12 +0000 (17:48 +0000)
1) fixing and issue in the modify operation
2) fixing automatic loading of the delete/deallocate DG
3) fixing ESR registration issue

Issue-ID: SDNC-1528
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Change-Id: I2c95d00c400559d8aae57b106bcde3886ed096a6

Former-commit-id: 79ad1bea4f5f5dc831e3d4159b21a3028ef775b3

platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json
platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml
platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json
platform-logic/generic-resource-api/src/main/resources/graph.versions
platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml

index 862817a..7b0ea05 100644 (file)
     {\r
         "id": "6f99e35d.de977c",\r
         "type": "other",\r
-        "name": "SOTN",\r
-        "xml": "<outcome value='SOTN'>\n",\r
+        "name": "WAN",\r
+        "xml": "<outcome value='WAN'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
         "x": 1082,\r
index 05c011b..b49057e 100644 (file)
@@ -9,7 +9,7 @@
                         <outcome value='Update'>\r
                             <block>\r
                                 <switch test="`$prop.sdncRestApi.type`">\r
-                                    <outcome value='SOTN'>\r
+                                    <outcome value='WAN'>\r
                                         <block atomic="true">\r
                                             <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\r
                                                 <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\r
index f55ef06..0d4161a 100644 (file)
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1715,\r
-        "y": 201,\r
+        "x": 1675,\r
+        "y": 295,\r
         "z": "a1c94a24.22ed9",\r
         "wires": [\r
             [\r
                 "8f80cd4e.6bb588",\r
                 "1ad0a363.7d61cd",\r
                 "2ea54daa.f8c89a",\r
-                "19fc5975.9c891f"\r
+                "19fc5975.9c891f",\r
+                "30222136.8f9b9e",\r
+                "d51e1ac2.752b08"\r
             ]\r
         ]\r
     },\r
                 "4e189d8f.8297c4",\r
                 "c6ccb3e9.91ea18",\r
                 "6963f6fb.4a135",\r
-                "40ae5836.eda238"\r
+                "40ae5836.eda238",\r
+                "31cde3.5ded021e"\r
             ]\r
         ]\r
     },\r
             [\r
                 "3d7f3635.a666da",\r
                 "5948d066.6a7168",\r
-                "363286ce.e60c2a",\r
                 "92d55b48.2c361",\r
-                "60b689f0.bdfe6"\r
+                "60b689f0.bdfe6",\r
+                "363286ce.e60c2a"\r
             ]\r
         ]\r
     },\r
         "z": "a1c94a24.22ed9",\r
         "wires": []\r
     },\r
-    {\r
-        "id": "363286ce.e60c2a",\r
-        "type": "save",\r
-        "name": "save connectivity resource in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<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/'` \" />\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 5538,\r
-        "y": 1096,\r
-        "z": "a1c94a24.22ed9",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
     {\r
         "id": "5948d066.6a7168",\r
         "type": "execute",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4456,\r
-        "y": 2256,\r
+        "x": 4457,\r
+        "y": 2197,\r
         "z": "a1c94a24.22ed9",\r
         "wires": [\r
             []\r
         "name": "set attachment_param",\r
         "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",\r
         "comments": "",\r
-        "x": 4250,\r
-        "y": 2157,\r
+        "x": 4251,\r
+        "y": 2098,\r
         "z": "a1c94a24.22ed9",\r
         "wires": []\r
     },\r
         "name": "TODO: FIXME",\r
         "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",\r
         "comments": "",\r
-        "x": 4224,\r
-        "y": 2110,\r
+        "x": 4225,\r
+        "y": 2051,\r
         "z": "a1c94a24.22ed9",\r
         "wires": []\r
     },\r
         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1914,\r
-        "y": 201,\r
+        "x": 1933,\r
+        "y": 248,\r
         "z": "a1c94a24.22ed9",\r
         "wires": [\r
             [\r
         "name": "set query_param",\r
         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
         "comments": "",\r
-        "x": 4239,\r
-        "y": 2209,\r
+        "x": 4240,\r
+        "y": 2150,\r
         "z": "a1c94a24.22ed9",\r
         "wires": []\r
     },\r
         "y": 2896.25390625,\r
         "z": "a1c94a24.22ed9",\r
         "wires": [\r
-            [\r
-                "20917868.85ed"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
         "id": "1ad0a363.7d61cd",\r
         "type": "set",\r
         "name": "set tmp.arr",\r
-        "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<parameter name='tmp.slicevpns' value='' />\n<parameter name='tmp.slicevpns_length' value='0' />\n\n<parameter name='tmp.slicevpnuuids' value='' />\n<parameter name='tmp.slicevpnuuids.' value='' />\n\n<parameter name='bwModified' value='false' />\n\n\n",\r
+        "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n<parameter name='bwModified' value='false' />\n",\r
         "comments": "",\r
-        "x": 1896,\r
-        "y": 147,\r
+        "x": 1892,\r
+        "y": 198,\r
         "z": "a1c94a24.22ed9",\r
         "wires": []\r
     },\r
         "wires": [\r
             []\r
         ]\r
+    },\r
+    {\r
+        "id": "54aaf2e0.b64b14",\r
+        "type": "comment",\r
+        "name": "The following two nodes are for PCE",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1967,\r
+        "y": 53,\r
+        "z": "a1c94a24.22ed9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d51e1ac2.752b08",\r
+        "type": "get-resource",\r
+        "name": "get-resource pnfs-list",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1927,\r
+        "y": 97,\r
+        "z": "a1c94a24.22ed9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "30222136.8f9b9e",\r
+        "type": "get-resource",\r
+        "name": "get-resource logical-links",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1940,\r
+        "y": 142,\r
+        "z": "a1c94a24.22ed9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "31cde3.5ded021e",\r
+        "type": "execute",\r
+        "name": "execute printContext",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4247,\r
+        "y": 2259,\r
+        "z": "a1c94a24.22ed9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "363286ce.e60c2a",\r
+        "type": "save",\r
+        "name": "save connectivity resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<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/'` \" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5538,\r
+        "y": 1096,\r
+        "z": "a1c94a24.22ed9",\r
+        "wires": [\r
+            []\r
+        ]\r
     }\r
 ]
\ No newline at end of file
index 51f2e1c..64cfedc 100755 (executable)
@@ -284,7 +284,7 @@ GENERIC-RESOURCE-API sotn-get-vf-module-uni-param ${project.version} sync
 GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-allocate ${project.version} sync
 GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-activate ${project.version} sync
 GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-deactivate ${project.version} sync
-GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-deallocate ${project.version} sync
+GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-delete ${project.version} sync
 GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-modify ${project.version} sync
 GENERIC-RESOURCE-API tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof ${project.version} sync
 
index 1205c97..6d57a78 100644 (file)
                         <outcome value='false'></outcome>\r
                         <outcome value='true'>\r
                             <block>\r
+                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+                                              resource="pnfs"\r
+                                              key="selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'"\r
+                                              local-only="false"\r
+                                              pfx="ccsdkTopopnfs" ></get-resource>\r
+                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+                                              resource="logical-links"\r
+                                              key="selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'"\r
+                                              local-only="false"\r
+                                              pfx="ccsdkTopologicalLinks" ></get-resource>\r
                                 <set>\r
                                     <parameter name='tmp.arr' value='' />\r
                                     <parameter name='tmp.arridx' value='0' />\r
                                     <parameter name='tmp.arr_length' value='0' />\r
                                     <parameter name='otn-tunnel-slice' value='' />\r
                                     <parameter name='otn-tunnel-slice_length' value='0' />\r
-                                    <parameter name='tmp.slicevpns' value='' />\r
-                                    <parameter name='tmp.slicevpns_length' value='0' />\r
-                                    <parameter name='tmp.slicevpnuuids' value='' />\r
-                                    <parameter name='tmp.slicevpnuuids.' value='' />\r
+                                    <!--<parameter name='tmp.slicevpns' value='' />-->\r
+                                    <!--<parameter name='tmp.slicevpns_length' value='0' />-->\r
+                                    <!--<parameter name='tmp.slicevpnuuids' value='' />-->\r
+                                    <!--<parameter name='tmp.slicevpnuuids.' value='' />-->\r
                                     <parameter name='bwModified' value='false' />\r
                                 </set>\r
                                 <for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\r
                                                                                                         <parameter name='prop.ethsrvType' value='`$network-route-A`' />\r
                                                                                                     </set>\r
                                                                                                     <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' ></call>\r
+                                                                                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\r
+                                                                                                        <parameter name="filename" value="`$filenamemm`" />\r
+                                                                                                    </execute>\r
                                                                                                     <for index='otnidx' start='0' end='`$tmp.otninfo_length`' >\r
                                                                                                         <block atomic='true'>\r
                                                                                                             <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\r
                                                                                                                 <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\r
                                                                                                                 <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\r
                                                                                                                 <outcome value='success'>\r
-                                                                                                                    <block>\r
-                                                                                                                        <set>\r
-                                                                                                                            <parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value="`$prop.vpn-binding-otnidx-uuid`" />\r
-                                                                                                                            <parameter name='tmp.slicevpns_length' value="`$tmp.slicevpns_length + 1`" />\r
-                                                                                                                            <parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value="`$prop.vpn-binding-otnidx-uuid`" />\r
-                                                                                                                        </set>\r
-                                                                                                                    </block>\r
+                                                                                                                    <block></block>\r
                                                                                                                 </outcome>\r
                                                                                                             </save>\r
                                                                                                             <switch test='`$otnidx == 0`'>\r