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-vf-operation-uni-activate.json
index 4d9aad4..658a04c 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "b87fb992.37671",\r
+        "id": "7a5b2247.76a96c",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 179.8055419921875,\r
-        "y": 128.13888549804688,\r
-        "z": "28baf2a.ead510e",\r
+        "x": 115,\r
+        "y": 61,\r
+        "z": "9b26c8a0.a64c1",\r
         "wires": [\r
             [\r
-                "527522f9.ff69e4"\r
+                "8f393b9e.9e17b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "527522f9.ff69e4",\r
+        "id": "8f393b9e.9e17b",\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": 311.0912322998047,\r
-        "y": 177.3769941329956,\r
-        "z": "28baf2a.ead510e",\r
+        "x": 246.2856903076172,\r
+        "y": 110.23810863494873,\r
+        "z": "9b26c8a0.a64c1",\r
         "wires": [\r
             [\r
-                "74e85c6a.58678c"\r
+                "eff67602.0d4e4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "74e85c6a.58678c",\r
+        "id": "eff67602.0d4e4",\r
         "type": "method",\r
         "name": "method sotn-vf-operation-uni-activate",\r
         "xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 314.2341613769531,\r
-        "y": 262.13891792297363,\r
-        "z": "28baf2a.ead510e",\r
+        "x": 249.42861938476562,\r
+        "y": 195.00003242492676,\r
+        "z": "9b26c8a0.a64c1",\r
         "wires": [\r
             [\r
-                "ae007ab1.699328"\r
+                "c03d71cc.6719d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ae007ab1.699328",\r
+        "id": "b1251334.94c658",\r
+        "type": "switchNode",\r
+        "name": "switch vf-modules.vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 721.9959564208984,\r
+        "y": 375.99998915195465,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "2185890c.41cf5e",\r
+                "7887ee8e.f7ad9",\r
+                "bf0b3d3b.de1c1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c03d71cc.6719d8",\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": 340.6626205444336,\r
+        "y": 480.66670763492584,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "b1251334.94c658",\r
+                "e40d5cd3.6df488",\r
+                "77bef901.3c81f",\r
+                "f1780b76.81d518",\r
+                "5733466d.dcbb88",\r
+                "6d51d616.88647",\r
+                "aab160b4.f76088",\r
+                "48dc3a93.b23a44",\r
+                "672fc75a.1e91b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77bef901.3c81f",\r
+        "type": "for",\r
+        "name": "for each vnf",\r
+        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 687.0273170471191,\r
+        "y": 246.269144654274,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "c9d21017.2aa0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e40d5cd3.6df488",\r
+        "type": "switchNode",\r
+        "name": "switch vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 691.9959716796875,\r
+        "y": 185.00001394748688,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "eb024dbb.2172c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb024dbb.2172c",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 871.9959526062012,\r
+        "y": 184.0000034570694,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "9467f8cc.185d38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9467f8cc.185d38",\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": 1021.4246788024902,\r
+        "y": 185.14292109012604,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c9d21017.2aa0b8",\r
+        "type": "switchNode",\r
+        "name": "switch this vnf-id == input vnf-id",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 909.9959678649902,\r
+        "y": 247.00000965595245,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "5eb86cb5.aa0e34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5eb86cb5.aa0e34",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1124.9959526062012,\r
+        "y": 245.0000034570694,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "eb010427.42f398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fe487a9.faab98",\r
+        "type": "set",\r
+        "name": "set vnf-index",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
+        "comments": "",\r
+        "x": 1465.9959716796875,\r
+        "y": 213,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7887ee8e.f7ad9",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 455.33288192749023,\r
-        "y": 479.2130994796753,\r
-        "z": "28baf2a.ead510e",\r
+        "x": 981.9959716796875,\r
+        "y": 400,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "6182e795.96a958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2185890c.41cf5e",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978.9959716796875,\r
+        "y": 328,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "6182e795.96a958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6182e795.96a958",\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": 1150.9959716796875,\r
+        "y": 362,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bf0b3d3b.de1c1",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 943.9959487915039,\r
+        "y": 470.9999986886978,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "f14d9e8b.d52ee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13dbecad.5f9583",\r
+        "type": "set",\r
+        "name": "set vf-module_length",\r
+        "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",\r
+        "comments": "",\r
+        "x": 1297.995964050293,\r
+        "y": 469.0000126361847,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f14d9e8b.d52ee8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1104.995994567871,\r
+        "y": 467.99999010562897,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "13dbecad.5f9583",\r
+                "76e7a061.215fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "76e7a061.215fe",\r
+        "type": "for",\r
+        "name": "for each existing vf-index",\r
+        "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1316.9959335327148,\r
+        "y": 521.9999891519547,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "4d4229cc.870928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d4229cc.870928",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1559.995948791504,\r
+        "y": 516.9999986886978,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "235f500c.adb2d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "235f500c.adb2d8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1757.9959774017334,\r
+        "y": 504.00000536441803,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "b98c0673.7d62f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b98c0673.7d62f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1909.995948791504,\r
+        "y": 505.9999986886978,\r
+        "z": "9b26c8a0.a64c1",\r
         "wires": [\r
             [\r
-                "da013af.4338448"\r
+                "9c359698.db3d68",\r
+                "1962516c.e21167"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "da013af.4338448",\r
+        "id": "9c359698.db3d68",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
+        "comments": "",\r
+        "x": 2137.996063232422,\r
+        "y": 448.0000025033951,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1962516c.e21167",\r
+        "type": "set",\r
+        "name": "set vf-module-request-input.",\r
+        "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
+        "comments": "",\r
+        "x": 2141.996063232422,\r
+        "y": 502.0000025033951,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f1780b76.81d518",\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": 723.25,\r
-        "y": 561.75,\r
-        "z": "28baf2a.ead510e",\r
+        "x": 615.9961547851562,\r
+        "y": 1675.501220703125,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29a9aeb.30d1952",\r
+        "type": "call",\r
+        "name": "call sotn-get-vf-module-uni-param",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2172.45108795166,\r
+        "y": 553.0104948282242,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5733466d.dcbb88",\r
+        "type": "execute",\r
+        "name": "execute Properties",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 701.9959564208984,\r
+        "y": 315.5039049386978,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb010427.42f398",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1288,\r
+        "y": 255,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "8fe487a9.faab98",\r
+                "c2b0533e.d5b1d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2b0533e.d5b1d",\r
+        "type": "set",\r
+        "name": "set tmp.vnf-id",\r
+        "xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",\r
+        "comments": "",\r
+        "x": 1473,\r
+        "y": 270,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "48dc3a93.b23a44",\r
+        "type": "get-resource",\r
+        "name": "get-resource generic-vnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n        pfx='tmp.aai.generic-vnf' local-only='false' >\n\n<!--AND depth = '0'\"-->\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 594,\r
+        "y": 534,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "28391a2c.3321fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a811cc0.b174ac",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 824,\r
+        "y": 582,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "1afc6101.b3a3ff",\r
+                "6ac23f85.2f3a38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ac23f85.2f3a38",\r
+        "type": "for",\r
+        "name": "for each relationship in gen-vnf",\r
+        "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1036,\r
+        "y": 585,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "5e0bc542.fea784"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e0bc542.fea784",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1262,\r
+        "y": 589,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "ad3f5adb.0bf5b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad3f5adb.0bf5b8",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1451.285888671875,\r
+        "y": 597.82177734375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "4a0655ab.fa2fa4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a0655ab.fa2fa4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1626.117431640625,\r
+        "y": 600.3402709960938,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "2cd069f4.1bd85e",\r
+                "e85654b4.901fd",\r
+                "596112fe.dbc0a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cd069f4.1bd85e",\r
+        "type": "set",\r
+        "name": "set tmp.unis.uni[].tpId",\r
+        "xml": "<set>\n<!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />-->\n\n<parameter name='tmp.tpId' value=\"`$tmp.aai.uni.tpId`\" />\n",\r
+        "comments": "",\r
+        "x": 1843.117431640625,\r
+        "y": 598.3402709960938,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1afc6101.b3a3ff",\r
+        "type": "switchNode",\r
+        "name": "switch number of unis  less than two",\r
+        "xml": "<switch test='`$tmp.unis.uni_length &lt; 2`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1011,\r
+        "y": 749,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "3398154f.dabcca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0dacaa2.3f6d9",\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\n",\r
+        "comments": "",\r
+        "x": 1419,\r
+        "y": 751,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3398154f.dabcca",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1227,\r
+        "y": 750,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "f0dacaa2.3f6d9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e85654b4.901fd",\r
+        "type": "execute",\r
+        "name": "execute split tpId to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`tmp.unis.uni[$vidx].tpId`'/>\n<parameter name=\"regex\" value=\"nodeId\"/>\n<parameter name=\"tmp.unis.uni[$vidx].pnf-name\" value=\"\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1882,\r
+        "y": 673,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "fb92d303.a6d858",\r
+                "3b07d667.72d91a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b07d667.72d91a",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2105,\r
+        "y": 628,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "9111f685.17b2e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fb92d303.a6d858",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2107,\r
+        "y": 692,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "1432f6d2.d75751"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9111f685.17b2e8",\r
+        "type": "set",\r
+        "name": "set ipAddress prefixLength",\r
+        "xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",\r
+        "comments": "",\r
+        "x": 2327,\r
+        "y": 630,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1432f6d2.d75751",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
+        "comments": "",\r
+        "x": 2266,\r
+        "y": 711,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "596112fe.dbc0a4",\r
+        "type": "get-resource",\r
+        "name": "get-resource pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name'\n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\t\tresource=\"generic-vnf\" -->\n<!--\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->\n<!--\t\tAND depth = '0'\"-->\n<!--        pfx='tmp.aai.generic-vnf' local-only='false' >-->",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1812,\r
+        "y": 810,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "51c3744a.753414"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "796d1bdc.d65e9c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2171.88232421875,\r
+        "y": 818.6556396484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "9e81136f.40f158",\r
+                "3a607f75.56a9d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e81136f.40f158",\r
+        "type": "set",\r
+        "name": "set node-id",\r
+        "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",\r
+        "comments": "",\r
+        "x": 2351,\r
+        "y": 772,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3a607f75.56a9d",\r
+        "type": "for",\r
+        "name": "for each relationship in pnf",\r
+        "xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2363.882568359375,\r
+        "y": 858.6597290039062,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "709c4d83.a869b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "709c4d83.a869b4",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2589.882568359375,\r
+        "y": 858.6597290039062,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "8cbba6bb.ad862",\r
+                "dd673476.c308f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd673476.c308f",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2788,\r
+        "y": 971,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "2c8cb3cb.28eeec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c8cb3cb.28eeec",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3001,\r
+        "y": 972,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "8af5221c.7c91b",\r
+                "47206fa6.e312e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8af5221c.7c91b",\r
+        "type": "set",\r
+        "name": "set network-id",\r
+        "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].network-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 3236,\r
+        "y": 902,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "47206fa6.e312e",\r
+        "type": "get-resource",\r
+        "name": "get-resource network-resource",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"'network-resource.network-id = $tmp.unis.uni[$vidx].network-id'\n\t\tAND depth = '0'\"\n        pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3244,\r
+        "y": 983,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "4ad04544.d0fad4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ad04544.d0fad4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3476.5,\r
+        "y": 979,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "d8cca786.0614f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8cca786.0614f8",\r
+        "type": "set",\r
+        "name": "set network-id, topo-id, client-id, etc",\r
+        "xml": "<set>\n<parameter name=\"`$tmp.unis.uni[$vidx].network-id`\" value=\"`$tmp.aai.network-resource.network-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].provider-id`\" value=\"`$tmp.aai.network-resource.provider-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].client-id`\" value=\"`$tmp.aai.network-resource.client-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].te-topo-id`\" value=\"`$tmp.aai.network-resource.te-topo-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].network-type`\" value=\"`$tmp.aai.network-resource.network-type`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 3745,\r
+        "y": 978,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aab160b4.f76088",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 800,\r
+        "y": 896,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cbba6bb.ad862",\r
+        "type": "outcome",\r
+        "name": "thirdparty-controller",\r
+        "xml": "<outcome value='thirdparty-controller'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2815,\r
+        "y": 836,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "8b43ac76.263cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b43ac76.263cd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3028,\r
+        "y": 837,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "9b5d5673.27be38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b5d5673.27be38",\r
+        "type": "set",\r
+        "name": "set thirdparty-sdnc-id",\r
+        "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 3255,\r
+        "y": 836,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4ddb604c.658b08",\r
+        "type": "comment",\r
+        "name": "when we reach here, we have 2 UNIs, so do ACTN operations",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 813,\r
+        "y": 842,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6d51d616.88647",\r
+        "type": "for",\r
+        "name": "for vidx..unis.uni_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 666,\r
+        "y": 1088,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "8a72c5de.69f39"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7756434.d014e",\r
+        "type": "set",\r
+        "name": "set oof.vpn",\r
+        "xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",\r
+        "comments": "",\r
+        "x": 1092.0272216796875,\r
+        "y": 1027.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8e5c8d32.64abe8",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
+        "comments": "",\r
+        "x": 1572.0272216796875,\r
+        "y": 1140.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "58b223b2.226b5c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1402.0272216796875,\r
+        "y": 1140.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "8e5c8d32.64abe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74cd1f0b.113038",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1406.0272216796875,\r
+        "y": 1180.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "50f33a59.7393a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f39f2a5.5bd5fc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1398.0272216796875,\r
+        "y": 1220.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "4b579e44.4ec6b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50f33a59.7393a4",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 1556.0272216796875,\r
+        "y": 1180.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4b579e44.4ec6b",\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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 1556.0272216796875,\r
+        "y": 1220.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "66a971fa.46a568",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1402.0272216796875,\r
+        "y": 1260.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "9aeb59cf.e4f488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3bf26416.4deddc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1398.0272216796875,\r
+        "y": 1300.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "e227ce38.6755d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e227ce38.6755d",\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=\"Error executing get token rest api\" />\n",\r
+        "comments": "",\r
+        "x": 1556.0272216796875,\r
+        "y": 1300.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9aeb59cf.e4f488",\r
+        "type": "set",\r
+        "name": "set token-id",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
+        "comments": "",\r
+        "x": 1552.5272216796875,\r
+        "y": 1260.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ac6d44a1.0c401",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1164.0272216796875,\r
+        "y": 1140.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a9643f3f.4f04b",\r
+        "type": "get-resource",\r
+        "name": "get-resource esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $oof.vpn.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1156.0272216796875,\r
+        "y": 1180.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "58b223b2.226b5c",\r
+                "74cd1f0b.113038",\r
+                "4f39f2a5.5bd5fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6d53bc.53f5bc8",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Get token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1168.5272216796875,\r
+        "y": 1280.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "66a971fa.46a568",\r
+                "3bf26416.4deddc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "787bd09.8ff59b",\r
+        "type": "comment",\r
+        "name": "call domain controller to  create underlay OTN tunnel",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1217.5272216796875,\r
+        "y": 1365.49560546875,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ee991e0.ab6b36",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1237.5272216796875,\r
+        "y": 1409.49560546875,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a72c5de.69f39",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 819.5272216796875,\r
+        "y": 1420.0407409667969,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "124c6957.e07dc7",\r
+                "3ce3b19a.7c10c6",\r
+                "d661efba.3fa238",\r
+                "ee991e0.ab6b36",\r
+                "f7756434.d014e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab7e4ea9.e8e178",\r
+        "type": "comment",\r
+        "name": "Loop through UNIs and configure domain controllers",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 754.5003662109375,\r
+        "y": 1228.5003662109375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "124c6957.e07dc7",\r
+        "type": "set",\r
+        "name": "set sotn_value",\r
+        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
+        "comments": "",\r
+        "x": 1083.52734375,\r
+        "y": 1488.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3ce3b19a.7c10c6",\r
+        "type": "set",\r
+        "name": "set attachment_param",\r
+        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 1108.02734375,\r
+        "y": 1528.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d661efba.3fa238",\r
+        "type": "switchNode",\r
+        "name": "switch prop.sdncRestApi.token_id",\r
+        "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1143.52734375,\r
+        "y": 1568.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "f63083b5.0624b",\r
+                "fbf2273e.fbe678"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "678c3911.078e2",\r
+        "type": "execute",\r
+        "name": "execute RestconfApiCallNode Create ethernet Service with token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1660.52734375,\r
+        "y": 1588.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "72a042fd.6a9e5c",\r
+                "4ae2509c.7d19b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72a042fd.6a9e5c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2004.02734375,\r
+        "y": 1588.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "743fa383.cc94fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "743fa383.cc94fc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2161.52734375,\r
+        "y": 1588.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e01ab8f.069484",\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=\"Error executing Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 2158.02734375,\r
+        "y": 1548.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4ae2509c.7d19b8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2000.02734375,\r
+        "y": 1548.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "7e01ab8f.069484"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f63083b5.0624b",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1356.3711738586426,\r
+        "y": 1548.162670135498,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "42cb8b06.e7daec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbf2273e.fbe678",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1360.02734375,\r
+        "y": 1588.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "678c3911.078e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42cb8b06.e7daec",\r
+        "type": "execute",\r
+        "name": "execute RestconfApiCallNode Create ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1670.52734375,\r
+        "y": 1548.040771484375,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "4ae2509c.7d19b8",\r
+                "72a042fd.6a9e5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "28391a2c.3321fe",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 725,\r
+        "y": 663,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "6a811cc0.b174ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51c3744a.753414",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1995,\r
+        "y": 817,\r
+        "z": "9b26c8a0.a64c1",\r
+        "wires": [\r
+            [\r
+                "796d1bdc.d65e9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "672fc75a.1e91b",\r
+        "type": "set",\r
+        "name": "set tmp.unis.uni[].tpId",\r
+        "xml": "<set>\n<parameter name='tmp.unis.uni[0].id' value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />\n<parameter name='tmp.unis.uni[0].tp-id' value=\"networkId-providerId-5555-clientId-6666-topologyId-11-nodeId-0.190.0.1\" />\n<parameter name='tmp.unis.uni[0].access-provider-id' value=\"`$domain-A.provider-id`\" />\n<parameter name='tmp.unis.uni[0].access-client-id' value=\"`$domain-A.client-id`\" />\n<parameter name='tmp.unis.uni[0].access-topology-id' value=\"`$domain-A.topology-id`\" />\n<parameter name='tmp.unis.uni[0].access-node-id' value=\"\" />\n<parameter name='tmp.unis.uni[0].src-access-ltp-id' value=\"\" />\n<parameter name='tmp.unis.uni[0].dst-access-ltp-id' value=\"\" />\n\n<parameter name='tmp.unis.uni[1].id' value=\"5642e9dd-496c-4ef6-be97-5caf4e9beec9\" />\n<parameter name='tmp.unis.uni[1].tp-id' value=\"networkId-domain2-providerId-5555-clientId-6666-topologyId-11-nodeId-0.191.0.4\" />\n<parameter name='tmp.unis.uni[1].access-provider-id' value=\"`$domain-B.provider-id`\" />\n<parameter name='tmp.unis.uni[1].access-client-id' value=\"`$domain-B.client-id`\" />\n<parameter name='tmp.unis.uni[1].access-topology-id' value=\"`$domain-B.topology-id`\" />\n<parameter name='tmp.unis.uni[1].access-node-id' value=\"\" />\n<parameter name='tmp.unis.uni[1].src-access-ltp-id' value=\"\" />\n<parameter name='tmp.unis.uni[1].dst-access-ltp-id' value=\"\" />\n\n<parameter name='tmp.unis.uni_length' value=\"2\" />\n\n",\r
+        "comments": "",\r
+        "x": 655,\r
+        "y": 1015,\r
+        "z": "9b26c8a0.a64c1",\r
         "wires": []\r
     }\r
 ]
\ No newline at end of file