DGs for SOTN NNI based service creation
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json
index 6610951..be1161f 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "3747de4a.ccc95a",\r
+        "id": "99dfdf6b.5f9318",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 192.56666564941406,\r
-        "y": 124.56666564941406,\r
-        "z": "6d4d0934.24831",\r
+        "x": 99,\r
+        "y": 44,\r
+        "z": "fa25b782.cc03a",\r
         "wires": [\r
             [\r
-                "a6a68d99.1f09a8"\r
+                "92759b22.eb00d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a6a68d99.1f09a8",\r
+        "id": "92759b22.eb00d",\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": 476.85235595703125,\r
-        "y": 185.8047742843628,\r
-        "z": "6d4d0934.24831",\r
+        "x": 383.2856903076172,\r
+        "y": 105.23810863494873,\r
+        "z": "fa25b782.cc03a",\r
         "wires": [\r
             [\r
-                "19971b48.295af5"\r
+                "2dedb06e.bc71a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "19971b48.295af5",\r
+        "id": "2dedb06e.bc71a8",\r
         "type": "method",\r
         "name": "method sotn-vnf-topology-operation-underlay-delete",\r
         "xml": "<method rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 482.9952697753906,\r
-        "y": 270.5666961669922,\r
-        "z": "6d4d0934.24831",\r
+        "x": 389.42860412597656,\r
+        "y": 190.00003051757812,\r
+        "z": "fa25b782.cc03a",\r
         "wires": [\r
             [\r
-                "d89b2a32.f1b858"\r
+                "97c9b256.2d5028"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d89b2a32.f1b858",\r
+        "id": "9d9a5f2a.b67c4",\r
+        "type": "comment",\r
+        "name": "site-vnf-topology-operation-delete",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 961.9162979125977,\r
+        "y": 111.58639907836914,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "97c9b256.2d5028",\r
         "type": "block",\r
         "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 589.2380447387695,\r
+        "y": 339.6666717529297,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "26acbc94.464644",\r
+                "29ca41d0.155d6e",\r
+                "8eccfc5e.058248",\r
+                "74bea299.2fc214",\r
+                "ca45e630.8251e",\r
+                "bd55244d.57f018",\r
+                "f446816e.b70aa8",\r
+                "b3a04e31.994298",\r
+                "de69c0de.2774",\r
+                "145f15a6.badfba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74bea299.2fc214",\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": 1041.6660919189453,\r
+        "y": 257.2611792087555,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "c81a6b20.3c67a",\r
+                "3105aeca.f2a9f2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c81a6b20.3c67a",\r
+        "type": "other",\r
+        "name": "outcome Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 621.0940055847168,\r
-        "y": 487.6408796310425,\r
-        "z": "6d4d0934.24831",\r
+        "x": 1306.3884048461914,\r
+        "y": 239.81680130958557,\r
+        "z": "fa25b782.cc03a",\r
         "wires": [\r
             [\r
-                "5e754ce4.b92d84"\r
+                "86a36888.63694"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5e754ce4.b92d84",\r
+        "id": "86a36888.63694",\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": 1487.3882751464844,\r
+        "y": 234.81667923927307,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3105aeca.f2a9f2",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1291.8884048461914,\r
+        "y": 291.81676411628723,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "e367ae2f.4837d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e367ae2f.4837d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1463.888111114502,\r
+        "y": 291.8167622089386,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "5a431e2a.3fe42",\r
+                "5859a1a2.5df2c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5859a1a2.5df2c8",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.nidx ",\r
+        "xml": "<switch test=\"`$tmp.nidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1638.888282775879,\r
+        "y": 310.81668400764465,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "fcf67c01.2589c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8eccfc5e.058248",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1012.0550918579102,\r
+        "y": 331.7056429386139,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "4aaa97b8.591b",\r
+                "ac9c60b4.538be8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4aaa97b8.591b",\r
+        "type": "outcome",\r
+        "name": "outcome PendingDelete",\r
+        "xml": "<outcome value='PendingDelete'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1288.8884353637695,\r
+        "y": 334.8167426586151,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "4f3006f4.4a2aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac9c60b4.538be8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1249.8884201049805,\r
+        "y": 380.8167917728424,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "309ebf7d.9eaeb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "309ebf7d.9eaeb",\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": 1398.3881340026855,\r
+        "y": 379.81677174568176,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ca45e630.8251e",\r
+        "type": "execute",\r
+        "name": "execute requiredParameters",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1028.388427734375,\r
+        "y": 200.8167588710785,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a431e2a.3fe42",\r
+        "type": "for",\r
+        "name": "for nidx..service-data.vnfs.vnf[]",\r
+        "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1699.3882865905762,\r
+        "y": 246.8166801929474,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "aad2af6a.5ca7a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aad2af6a.5ca7a8",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1955.3883056640625,\r
+        "y": 246.8166801929474,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "5de2b129.640c08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5de2b129.640c08",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2131.888359069824,\r
+        "y": 249.8166801929474,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "46f375ea.217e34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46f375ea.217e34",\r
+        "type": "set",\r
+        "name": "set tmp.nidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",\r
+        "comments": "",\r
+        "x": 2298.8883743286133,\r
+        "y": 310.8166801929474,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "579c1f0d.46de88",\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": 1944.388298034668,\r
+        "y": 310.81668400764465,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fcf67c01.2589c8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1806.888298034668,\r
+        "y": 310.81668400764465,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "579c1f0d.46de88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26acbc94.464644",\r
+        "type": "set",\r
+        "name": "set vnfId 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/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",\r
+        "comments": "",\r
+        "x": 998.9051132202148,\r
+        "y": 546.3336856365204,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29ca41d0.155d6e",\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": 874.566650390625,\r
-        "y": 598.566650390625,\r
-        "z": "6d4d0934.24831",\r
+        "x": 955.0162658691406,\r
+        "y": 623.8892447948456,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4f3006f4.4a2aa",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1484.1947937011719,\r
+        "y": 342.14194798469543,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd55244d.57f018",\r
+        "type": "set",\r
+        "name": "set prop.vnfNewidx",\r
+        "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 981.0000839233398,\r
+        "y": 382.00007796287537,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f446816e.b70aa8",\r
+        "type": "for",\r
+        "name": "for lidx..service-data.vnfs.vnf[]",\r
+        "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1005.0000686645508,\r
+        "y": 424.0000765323639,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "1ab96be7.cabb84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ab96be7.cabb84",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1266.000144958496,\r
+        "y": 428.00011134147644,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "29fae41e.925d84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29fae41e.925d84",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1458.0000915527344,\r
+        "y": 437.00015568733215,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "3df67c89.832674"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3df67c89.832674",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1644.0001068115234,\r
+        "y": 421.0000422000885,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "7d2244a.01d08bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d2244a.01d08bc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1795.0000305175781,\r
+        "y": 422.0000784397125,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            [\r
+                "83093bd6.426818",\r
+                "5e4d811b.25e5b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83093bd6.426818",\r
+        "type": "set",\r
+        "name": "set  vnf data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",\r
+        "comments": "",\r
+        "x": 1962.0001983642578,\r
+        "y": 396.00026202201843,\r
+        "z": "fa25b782.cc03a",\r
         "wires": []\r
+    },\r
+    {\r
+        "id": "5e4d811b.25e5b",\r
+        "type": "set",\r
+        "name": "set prop.vnfNewidx",\r
+        "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",\r
+        "comments": "",\r
+        "x": 1982.0001258850098,\r
+        "y": 453.0001976490021,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3a04e31.994298",\r
+        "type": "set",\r
+        "name": "set new vnf length",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",\r
+        "comments": "",\r
+        "x": 973.1014823913574,\r
+        "y": 467.804429769516,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "de69c0de.2774",\r
+        "type": "set",\r
+        "name": "Remove vnf from ServiceData",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",\r
+        "comments": "",\r
+        "x": 1003.0002517700195,\r
+        "y": 506.00021290779114,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "145f15a6.badfba",\r
+        "type": "save",\r
+        "name": "delete AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<delete 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=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1060.0066452026367,\r
+        "y": 583.0106251239777,\r
+        "z": "fa25b782.cc03a",\r
+        "wires": [\r
+            []\r
+        ]\r
     }\r
 ]
\ No newline at end of file