New DGs required for deletion and bandwidth modification of a given cloud leased...
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json
diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json
new file mode 100644 (file)
index 0000000..8f287f3
--- /dev/null
@@ -0,0 +1,1627 @@
+[\r
+    {\r
+        "id": "9eb6465b.8231d",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 174,\r
+        "y": 129,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "c7ce6b7b.48fc18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7ce6b7b.48fc18",\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": 399.2856903076172,\r
+        "y": 203.23810863494873,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "5b4de938.1f507"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b4de938.1f507",\r
+        "type": "method",\r
+        "name": "method cll-vnf-topology-operation-cll-modify",\r
+        "xml": "<method rpc='cll-vnf-topology-operation-cll-modify' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 405.42860412597656,\r
+        "y": 288.0000305175781,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "4dc62efc.c83c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4dc62efc.c83c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 775.238037109375,\r
+        "y": 312.66668701171875,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "967b1057.e0a818",\r
+                "c598fe83.44b4b8",\r
+                "14de5c82.464f93"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "967b1057.e0a818",\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": 1030.571533203125,\r
+        "y": 466.59698486328125,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c598fe83.44b4b8",\r
+        "type": "save",\r
+        "name": "get service-instance from aai",\r
+        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1098,\r
+        "y": 286,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "be5a0198.1ba518",\r
+                "d9138d20.e2fc8",\r
+                "91625785.c9ff18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91625785.c9ff18",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1307,\r
+        "y": 260,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "d564baab.1e6f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d990b70.47f5fc",\r
+        "type": "outcome",\r
+        "name": "logical-link",\r
+        "xml": "<outcome value='logical-link'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1039.0001220703125,\r
+        "y": 766.0001220703125,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "5e1ad592.41ee24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e1ad592.41ee24",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1216,\r
+        "y": 759,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "e398aae7.45cbf8",\r
+                "a04e6833.e4988",\r
+                "5187f08e.74ac2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d902fdae.cea3e8",\r
+        "type": "for",\r
+        "name": "for each allotted-resource relationship",\r
+        "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 814,\r
+        "y": 695,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "4648afd9.f59d38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4648afd9.f59d38",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1085,\r
+        "y": 691,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "4d990b70.47f5fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14de5c82.464f93",\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' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1065,\r
+        "y": 226,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "aaa9891e.70ccc8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 362,\r
+        "y": 671,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "d7003a6e.38b288",\r
+                "cee9d4f6.bc12e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7003a6e.38b288",\r
+        "type": "for",\r
+        "name": "for each allotted-resource relationship",\r
+        "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 808,\r
+        "y": 530,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "23206dde.76caa2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cc7d8a0.338888",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1290.33349609375,\r
+        "y": 1177,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "361c81d1.d1312e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cee9d4f6.bc12e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 781,\r
+        "y": 1176,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "80751e9a.0057d8",\r
+                "26d1ad19.58f772"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80751e9a.0057d8",\r
+        "type": "for",\r
+        "name": "for each svc-instance relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1055,\r
+        "y": 1176,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "9cc7d8a0.338888"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "361c81d1.d1312e",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 574.000244140625,\r
+        "y": 1330,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "eead4d83.93ec08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fba02c9f.91f47",\r
+        "type": "save",\r
+        "name": "get connectivity from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 963,\r
+        "y": 1335,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "dbda7d85.ee895",\r
+                "4ef19f13.4e41a8",\r
+                "2ea82e0b.cdf21a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbda7d85.ee895",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1159,\r
+        "y": 1300,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "8ba3755.a15c088"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ef19f13.4e41a8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1159.490966796875,\r
+        "y": 1345.5740356445312,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "729746db.d253f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ea82e0b.cdf21a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1124,\r
+        "y": 1391,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "4b0e29e1.6abb78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "729746db.d253f",\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": 1319.0625,\r
+        "y": 1342.8597412109375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4b0e29e1.6abb78",\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": 1277,\r
+        "y": 1393,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ba3755.a15c088",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1323,\r
+        "y": 1284,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "5032e132.b50ce8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eead4d83.93ec08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 746,\r
+        "y": 1330,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "fba02c9f.91f47",\r
+                "8f9d786c.56a8b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f9d786c.56a8b8",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.connectivity",\r
+        "xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",\r
+        "comments": "",\r
+        "x": 966,\r
+        "y": 1278,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e398aae7.45cbf8",\r
+        "type": "set",\r
+        "name": "set the current logical-link-name",\r
+        "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1462,\r
+        "y": 669,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a04e6833.e4988",\r
+        "type": "save",\r
+        "name": "get logical-link from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1429,\r
+        "y": 783,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "49053c81.8b87cc",\r
+                "6a35a06.779ac6",\r
+                "64bb497.5849e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49053c81.8b87cc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1641.490966796875,\r
+        "y": 749.573974609375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "7b3cd426.944f0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a35a06.779ac6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1630,\r
+        "y": 794,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "715fffb0.0dd628"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b3cd426.944f0c",\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": 1790.0625,\r
+        "y": 749.8597412109375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "715fffb0.0dd628",\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": 1789,\r
+        "y": 794,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "64bb497.5849e38",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1635,\r
+        "y": 837,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb0d7b9d.4f62",\r
+        "type": "switchNode",\r
+        "name": "switch loglink-id exists in conn",\r
+        "xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1552,\r
+        "y": 1283,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "ed843baa.4246c",\r
+                "77db6f07.dbc38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed843baa.4246c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1763,\r
+        "y": 1248,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "c41e69d5.000d98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77db6f07.dbc38",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1760,\r
+        "y": 1309,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c41e69d5.000d98",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1915,\r
+        "y": 1249,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "b90808de.83d488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c0a4cffa.883e98",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2068,\r
+        "y": 1277,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1190650a.0a84cb",\r
+        "type": "comment",\r
+        "name": "currLinkIsFound. Go to the next logical-link",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2073,\r
+        "y": 1171,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5187f08e.74ac2",\r
+        "type": "switchNode",\r
+        "name": "switch currLinkIsFound",\r
+        "xml": "<switch test='`$currLinkIsFound`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1355,\r
+        "y": 901,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "bc7d7df2.5493c",\r
+                "acacd757.221108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bc7d7df2.5493c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1541,\r
+        "y": 880,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "1afa8a19.4821fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "acacd757.221108",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1538,\r
+        "y": 1016,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1afa8a19.4821fe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1783,\r
+        "y": 875,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "790c6016.9667b8",\r
+        "type": "comment",\r
+        "name": "A new logical-link has been found: modify process should be triggered",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1729,\r
+        "y": 979,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5032e132.b50ce8",\r
+        "type": "switchNode",\r
+        "name": "switch connectivityBW == gfp",\r
+        "xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1553,\r
+        "y": 1374,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "ee0cb72e.3d8b4",\r
+                "b958be18.cec7a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee0cb72e.3d8b4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1758,\r
+        "y": 1370,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b958be18.cec7a8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1760,\r
+        "y": 1420,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "649f93b2.4fa094"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "649f93b2.4fa094",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1914,\r
+        "y": 1419,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "2c6dae30.c090da",\r
+                "bec6024a.522f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b90808de.83d488",\r
+        "type": "set",\r
+        "name": "set currLinkIsFound",\r
+        "xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2101,\r
+        "y": 1221,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c6dae30.c090da",\r
+        "type": "set",\r
+        "name": "set bwModified",\r
+        "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2109,\r
+        "y": 1398,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bec6024a.522f",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 934,\r
+        "y": 1624,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "fa7c4190.123f5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa7c4190.123f5",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1139,\r
+        "y": 1624,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "15fdeaff.12dc65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15fdeaff.12dc65",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1305,\r
+        "y": 1624,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "23696373.a05af4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23696373.a05af4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1468,\r
+        "y": 1624,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "393b763a.3c031a",\r
+                "93b6e437.4f099"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93b6e437.4f099",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1697,\r
+        "y": 1564,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "393b763a.3c031a",\r
+        "type": "save",\r
+        "name": "get vpn-binding from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206,\r
+        "y": 1718,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "2f327191.83395e",\r
+                "e7652a9b.a6a5d8",\r
+                "cbe418b.f7d27e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a250676.10f76",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1590,\r
+        "y": 1718,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "c8600837.7048d8",\r
+                "6043cb08.7416ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f327191.83395e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1417,\r
+        "y": 1720,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "8a250676.10f76"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7652a9b.a6a5d8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1417.490966796875,\r
+        "y": 1765.5740356445312,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "a94efe89.188bd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbe418b.f7d27e8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1415,\r
+        "y": 1809,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "f4d34be9.21913"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4d34be9.21913",\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": 1582,\r
+        "y": 1826,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a94efe89.188bd8",\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": 1580.0623779296875,\r
+        "y": 1765.8597717285156,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8600837.7048d8",\r
+        "type": "save",\r
+        "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1940.5,\r
+        "y": 1713,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6043cb08.7416ec",\r
+        "type": "save",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1867.5,\r
+        "y": 1777,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "be5a0198.1ba518",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1323,\r
+        "y": 144,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "acd16415.eb51f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d9138d20.e2fc8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1318.490966796875,\r
+        "y": 213.57403564453125,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "855114bb.d4b47"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "acd16415.eb51f",\r
+        "type": "switchNode",\r
+        "name": "switch allotted-resources_length != 0",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1562,\r
+        "y": 141,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "7d32da32.7e3de4",\r
+                "7d05195c.3ec52"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "855114bb.d4b47",\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": 1472.0623779296875,\r
+        "y": 216.85977172851562,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d564baab.1e6f6",\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": 1476,\r
+        "y": 261,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7d32da32.7e3de4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1775,\r
+        "y": 165,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "1771a12b.55c52f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d05195c.3ec52",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1777,\r
+        "y": 105,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1771a12b.55c52f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1720,\r
+        "y": 347,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "e4c22eb.a2aea5",\r
+                "6160b6fc.008b48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4c22eb.a2aea5",\r
+        "type": "for",\r
+        "name": "for each allotted-resource",\r
+        "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1978,\r
+        "y": 300,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "fc0dfed8.0cac3",\r
+                "c57f71e8.93673"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6160b6fc.008b48",\r
+        "type": "set",\r
+        "name": "set tmp.arr",\r
+        "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n<parameter name='bwModified' value='false' />\n",\r
+        "comments": "",\r
+        "x": 1937,\r
+        "y": 250,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d51caf90.a463f",\r
+        "type": "comment",\r
+        "name": "The following two nodes are for PCE",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2012,\r
+        "y": 105,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f6765cf8.85e25",\r
+        "type": "get-resource",\r
+        "name": "get-resource pnfs-list",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1972,\r
+        "y": 149,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "66aed450.169b54",\r
+        "type": "get-resource",\r
+        "name": "get-resource logical-links",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1985,\r
+        "y": 194,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3532310.372288",\r
+        "type": "switchNode",\r
+        "name": "switch allotted-resource.relationship-list not empty",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2205,\r
+        "y": 465,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "9a292ac4.9b06e",\r
+                "35630785.237e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c57f71e8.93673",\r
+        "type": "save",\r
+        "name": "get allotted-resource from aai",\r
+        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2246,\r
+        "y": 304,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "87b192bc.e1f0e",\r
+                "d00bb928.2d4ff",\r
+                "29adfdf9.b65b62"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "87b192bc.e1f0e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2462,\r
+        "y": 371,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "8f69272a.fd278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d00bb928.2d4ff",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2462.490966796875,\r
+        "y": 270.573974609375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "b5f2de6e.0aa398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29adfdf9.b65b62",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2458,\r
+        "y": 320,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "8aece160.d46958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5f2de6e.0aa398",\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": 2640.0625,\r
+        "y": 270.8597412109375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8aece160.d46958",\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": 2640,\r
+        "y": 320,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8f69272a.fd278",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2642,\r
+        "y": 371,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "a8018aed.5af3e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35630785.237e1",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2526,\r
+        "y": 447,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a292ac4.9b06e",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2508,\r
+        "y": 545,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "aaa9891e.70ccc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8018aed.5af3e8",\r
+        "type": "save",\r
+        "name": "get allotted-resource relationship from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2935,\r
+        "y": 318,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "ee26c76e.4e13b",\r
+                "ebfa2004.002188",\r
+                "d77341f8.228578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebfa2004.002188",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3208.490966796875,\r
+        "y": 210.573974609375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "c12dc61.2210b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d77341f8.228578",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3204,\r
+        "y": 260,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "bd3bae8a.af124"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee26c76e.4e13b",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3208,\r
+        "y": 311,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "de61d430.83d478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23206dde.76caa2",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3173,\r
+        "y": 512,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "9e627c37.4741c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc0dfed8.0cac3",\r
+        "type": "set",\r
+        "name": "set the current allotted-resource-id",\r
+        "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2243,\r
+        "y": 223,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c12dc61.2210b38",\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": 3386.0625,\r
+        "y": 210.8597412109375,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd3bae8a.af124",\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": 3386,\r
+        "y": 260,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "de61d430.83d478",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3388,\r
+        "y": 311,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "c3532310.372288"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e627c37.4741c8",\r
+        "type": "outcome",\r
+        "name": "network-policy",\r
+        "xml": "<outcome value='network-policy'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3364,\r
+        "y": 509,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "e7f365c6.bea78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7f365c6.bea78",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3540.9998779296875,\r
+        "y": 501.9998779296875,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "dc98dc9c.c8fc5",\r
+                "d938d57f.cf2528"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc98dc9c.c8fc5",\r
+        "type": "set",\r
+        "name": "set the 1st network-policy-id",\r
+        "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 3783.9998779296875,\r
+        "y": 458.9998779296875,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d938d57f.cf2528",\r
+        "type": "save",\r
+        "name": "get network-policy from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3772.9998779296875,\r
+        "y": 513.9998779296875,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "21724bd7.b5773c",\r
+                "86152ffd.44c928",\r
+                "acc93ab6.b56018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "acc93ab6.b56018",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4026,\r
+        "y": 400,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "958f19ed.72cb28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "958f19ed.72cb28",\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": 4174.571533203125,\r
+        "y": 400.2857666015625,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "34514989.26e926",\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": 4173.509033203125,\r
+        "y": 444.426025390625,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "86152ffd.44c928",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4014.509033203125,\r
+        "y": 444.426025390625,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "34514989.26e926"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21724bd7.b5773c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4021.509033203125,\r
+        "y": 523.426025390625,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "9ee2f354.296c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ee2f354.296c2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4160.509033203125,\r
+        "y": 523.426025390625,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            [\r
+                "66fe28af.a13018",\r
+                "a2cba337.578da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66fe28af.a13018",\r
+        "type": "set",\r
+        "name": "set the max bandwidth",\r
+        "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
+        "comments": "",\r
+        "x": 4366,\r
+        "y": 521,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a2cba337.578da8",\r
+        "type": "set",\r
+        "name": "set the max bandwidth",\r
+        "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
+        "comments": "",\r
+        "x": 4365,\r
+        "y": 567,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "26d1ad19.58f772",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 838,\r
+        "y": 2032,\r
+        "z": "7b5a733a.b08434",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file