New DGs required for creation of a cloud leased-line (E-TREE) service.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-helper-find-connectivity.json
diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-helper-find-connectivity.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-helper-find-connectivity.json
new file mode 100644 (file)
index 0000000..713d6ab
--- /dev/null
@@ -0,0 +1,360 @@
+[\r
+    {\r
+        "id": "4ee6b24.013d9cc",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 163,\r
+        "y": 91,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "42ee2cb2.8b0aa4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42ee2cb2.8b0aa4",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\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": 447.2856903076172,\r
+        "y": 152.23810863494873,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "2d8be51e.1fe5b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d8be51e.1fe5b2",\r
+        "type": "method",\r
+        "name": "method cll-vnf-topology-operation-cll-helper-find-connectivity",\r
+        "xml": "<method rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 402.4285888671875,\r
+        "y": 244.00003051757812,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "44543bcb.341e5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44543bcb.341e5c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 763.238037109375,\r
+        "y": 228.66668701171875,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "93197478.d2fae",\r
+                "eb6c2023.7ef7a",\r
+                "d72f415d.01bc08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93197478.d2fae",\r
+        "type": "save",\r
+        "name": "get all-connectivities from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivities\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/connectivities/'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.helper-all-connectivities\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 248,\r
+        "y": 414,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "3210bd43.c197f2",\r
+                "cb92b047.8ddef8",\r
+                "39efd1fc.091d56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3210bd43.c197f2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 492,\r
+        "y": 374,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "b85791e3.02f868"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb92b047.8ddef8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 489.490966796875,\r
+        "y": 423.57403564453125,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "7f9747fb.6ed01"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39efd1fc.091d56",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 487,\r
+        "y": 466,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "d53ce1e7.42a2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b85791e3.02f868",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 640,\r
+        "y": 375,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "538f3beb.2d964c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f9747fb.6ed01",\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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 639.0623779296875,\r
+        "y": 423.8597717285156,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d53ce1e7.42a2c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 638,\r
+        "y": 463,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "538f3beb.2d964c",\r
+        "type": "for",\r
+        "name": "for helpconnidx in all-connectivities",\r
+        "xml": "<for index='helpconnidx' start='0' end='`$tmp.aai.helper-all-connectivities.connectivity_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 887,\r
+        "y": 370,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "344678ba.b7f29"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "344678ba.b7f29",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1134,\r
+        "y": 376,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "d48cc8ae.307b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d48cc8ae.307b68",\r
+        "type": "switchNode",\r
+        "name": "switch current provider-id?",\r
+        "xml": "\n<switch test=\"`$tmp.current-provider-id == $tmp.aai.helper-all-connectivities.connectivity[$helpconnidx].access-provider-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 328,\r
+        "y": 625,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "bc092a3b.859928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bc092a3b.859928",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 537,\r
+        "y": 619,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "121a7afe.07beb5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "121a7afe.07beb5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 694,\r
+        "y": 619,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "7603071b.598a38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7603071b.598a38",\r
+        "type": "switchNode",\r
+        "name": "switch current-cvlan-id?",\r
+        "xml": "\n<switch test=\"`$tmp.current-cvlan-id == $tmp.aai.helper-all-connectivities.connectivity[$helpconnidx].cvlan`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 320,\r
+        "y": 713,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "e6157f7f.780a28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6157f7f.780a28",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 529,\r
+        "y": 707,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "4bd1a2a7.9f2d14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb6c2023.7ef7a",\r
+        "type": "set",\r
+        "name": "unset found-connectivity",\r
+        "xml": "<set>\n<parameter name='found-connectivity' value=\"false\" />\n",\r
+        "comments": "",\r
+        "x": 1006,\r
+        "y": 143,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c418ca90.026d18",\r
+        "type": "set",\r
+        "name": "set found-connectivity=true",\r
+        "xml": "<set>\n<parameter name='found-connectivity' value=\"true\" />\n",\r
+        "comments": "",\r
+        "x": 935,\r
+        "y": 707,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4bd1a2a7.9f2d14",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 697,\r
+        "y": 708,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": [\r
+            [\r
+                "c418ca90.026d18",\r
+                "cce4f57f.9fec88",\r
+                "cc11b7b4.773dc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cce4f57f.9fec88",\r
+        "type": "set",\r
+        "name": "set the-connectivity",\r
+        "xml": "<set>\n<parameter name='tmp.the-connectivity.' value=\"`$tmp.aai.helper-all-connectivities.connectivity[$helpconnidx].`\" />\n",\r
+        "comments": "",\r
+        "x": 916,\r
+        "y": 763,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d72f415d.01bc08",\r
+        "type": "set",\r
+        "name": "unset tmp.the-connectivity.",\r
+        "xml": "<set>\n<parameter name='tmp.the-connectivity.' value=\"\" />\n",\r
+        "comments": "",\r
+        "x": 1010,\r
+        "y": 187,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc11b7b4.773dc8",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 877,\r
+        "y": 814,\r
+        "z": "1453a3a4.2dddfc",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file