NNI-based Service creation DG bug fixes (uni, l2vpn, and underlay resources).
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json
index 6b71cf5..ce7f41a 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "8e70cbab.9e762",\r
+        "id": "e012ce90.0e58e",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 192.56666564941406,\r
-        "y": 127.56666564941406,\r
-        "z": "cee6034b.da01e8",\r
+        "x": 154,\r
+        "y": 93,\r
+        "z": "770d39a2.206bf8",\r
         "wires": [\r
             [\r
-                "a562bec1.5c6bb"\r
+                "971026a6.52ce9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a562bec1.5c6bb",\r
+        "id": "971026a6.52ce9",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
         "outputs": 1,\r
-        "x": 323.85235595703125,\r
-        "y": 176.8047742843628,\r
-        "z": "cee6034b.da01e8",\r
+        "x": 285.2856903076172,\r
+        "y": 142.23810863494873,\r
+        "z": "770d39a2.206bf8",\r
         "wires": [\r
             [\r
-                "bd2e1e6.b1131e"\r
+                "424280.3e7be58"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bd2e1e6.b1131e",\r
+        "id": "424280.3e7be58",\r
         "type": "method",\r
         "name": "method sotn-vnf-topology-operation-underlay-activate",\r
         "xml": "<method rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 326.9952850341797,\r
-        "y": 261.5666980743408,\r
-        "z": "cee6034b.da01e8",\r
+        "x": 288.4286193847656,\r
+        "y": 227.00003242492676,\r
+        "z": "770d39a2.206bf8",\r
         "wires": [\r
             [\r
-                "948a9c7.119abe"\r
+                "15b1d170.c6c3bf"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "948a9c7.119abe",\r
+        "id": "15b1d170.c6c3bf",\r
         "type": "block",\r
         "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 468.0940055847168,\r
-        "y": 478.6408796310425,\r
-        "z": "cee6034b.da01e8",\r
+        "x": 438.238037109375,\r
+        "y": 356.6666564941406,\r
+        "z": "770d39a2.206bf8",\r
         "wires": [\r
             [\r
-                "1b5215d4.38c512"\r
+                "d341e8da.386dc8",\r
+                "7757d326.0ab11c",\r
+                "28b09a42.4448ee",\r
+                "3ec3b54e.f18002",\r
+                "363c01cb.431f2e",\r
+                "b58db0f2.2bd788",\r
+                "78a6cae.62d4c34"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1b5215d4.38c512",\r
+        "id": "d341e8da.386dc8",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to Active",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+        "comments": "",\r
+        "x": 781.3849563598633,\r
+        "y": 593.6705458434299,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7757d326.0ab11c",\r
         "type": "returnSuccess",\r
         "name": "return success",\r
         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
         "comments": "",\r
-        "x": 721.566650390625,\r
-        "y": 589.566650390625,\r
-        "z": "cee6034b.da01e8",\r
+        "x": 701.571647644043,\r
+        "y": 719.5970833571628,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "28b09a42.4448ee",\r
+        "type": "set",\r
+        "name": "set vnf-index and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",\r
+        "comments": "",\r
+        "x": 787.5716018676758,\r
+        "y": 541.5968001158908,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3ec3b54e.f18002",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 796,\r
+        "y": 296,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "2a1b5222.0a12ce",\r
+                "7071c692.fef0f",\r
+                "f5af0773.6ebfd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f5af0773.6ebfd8",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1188.968994140625,\r
+        "y": 261.96875,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "deb6d8c5.8a0d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "deb6d8c5.8a0d18",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1343.7778816223145,\r
+        "y": 280.889018535614,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a1b5222.0a12ce",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1182.0001335144043,\r
+        "y": 301.00007152557373,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "deb6d8c5.8a0d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7071c692.fef0f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1175.0005416870117,\r
+        "y": 334.000075340271,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "16d2cb29.ef702d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "16d2cb29.ef702d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1322.2700843811035,\r
+        "y": 334.5547204017639,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "ed1ae4ee.47337"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed1ae4ee.47337",\r
+        "type": "for",\r
+        "name": "for vidx..service-data.vnfs.vnf_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1568.2862014770508,\r
+        "y": 341.42864084243774,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "3d63efba.81c87"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d63efba.81c87",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1787.6358337402344,\r
+        "y": 340.96872091293335,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "db2db94d.9596f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db2db94d.9596f8",\r
+        "type": "switchNode",\r
+        "name": "switch vnfid found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1941.715431213379,\r
+        "y": 340.67880296707153,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "b38b8c2b.ab959"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b38b8c2b.ab959",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2152.6675758361816,\r
+        "y": 343.571494102478,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "f56ad8f6.f25e88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f56ad8f6.f25e88",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
+        "comments": "",\r
+        "x": 2362.199951171875,\r
+        "y": 345.32159423828125,\r
+        "z": "770d39a2.206bf8",\r
         "wires": []\r
+    },\r
+    {\r
+        "id": "363c01cb.431f2e",\r
+        "type": "save",\r
+        "name": "update AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 806.9999618530273,\r
+        "y": 660.0103714736179,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b58db0f2.2bd788",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
+        "comments": "",\r
+        "x": 786.0000762939453,\r
+        "y": 491.01033284980804,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "78a6cae.62d4c34",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 772.7499389648438,\r
+        "y": 396.00390270072967,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "d6917198.13129",\r
+                "178db909.328e8f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6917198.13129",\r
+        "type": "outcome",\r
+        "name": "outcome Created",\r
+        "xml": "<outcome value='Created'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1152.5833320617676,\r
+        "y": 401.1149909766391,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "6cd721df.116148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "178db909.328e8f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1130.583351135254,\r
+        "y": 451.1150024207309,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            [\r
+                "ff0fdf62.38c4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff0fdf62.38c4c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+        "comments": "",\r
+        "x": 1290.0831184387207,\r
+        "y": 454.1150014670566,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6cd721df.116148",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1362.889705657959,\r
+        "y": 412.44016626197845,\r
+        "z": "770d39a2.206bf8",\r
+        "wires": [\r
+            []\r
+        ]\r
     }\r
 ]
\ No newline at end of file