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