diff options
author | Cheung, Pat (kc1472) <kc1472@att.com> | 2019-03-15 19:54:13 +0000 |
---|---|---|
committer | Cheung, Pat (kc1472) <kc1472@att.com> | 2019-03-15 19:54:13 +0000 |
commit | e27e991d1c39b162209a95c76c0b1b5e4ea9b045 (patch) | |
tree | bf1ac14584ee70d111be57610bfb724ec56982f0 /platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json | |
parent | c594cb1cdfd3d589bb995aec11797fefe89bb2ab (diff) |
Dublin pnf DGs
Adding DGs to support pnf unassign
Change-Id: Ic480fc334729535d16c0f4f65ace502e69448a31
Issue-ID: SDNC-642
Signed-off-by: Cheung, Pat (kc1472) <kc1472@att.com>
Former-commit-id: e75b4f974c0d5f9ea54436b01aa85a93318e7199
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json | 1269 |
1 files changed, 351 insertions, 918 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json index a679b1f5..84646292 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json @@ -1,919 +1,352 @@ -[ - { - "id": "1c1b1b8c.f22d8c", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 101, - "y": 36, - "z": "cd15d378.222de8", - "wires": [ - [ - "5242feba.24d568" - ] - ] - }, - { - "id": "5242feba.24d568", - "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": 377, - "y": 37, - "z": "cd15d378.222de8", - "wires": [ - [ - "d27cbed.05f55c" - ] - ] - }, - { - "id": "d27cbed.05f55c", - "type": "method", - "name": "self-serve-generate-name-changeassign", - "xml": "<method rpc='self-serve-generate-name-changeassign' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 773, - "y": 36, - "z": "cd15d378.222de8", - "wires": [ - [ - "5dd94280.59f404" - ] - ] - }, - { - "id": "5dd94280.59f404", - "type": "block", - "name": "block atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 119.5, - "y": 119, - "z": "cd15d378.222de8", - "wires": [ - [ - "f7b2e52c.493238", - "f8d58ab4.c216e", - "488f44a1.f47cc4" - ] - ] - }, - { - "id": "488f44a1.f47cc4", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$ss.capability-type`'>\n\n", - "comments": "", - "outputs": 1, - "x": 365, - "y": 450.11114501953125, - "z": "cd15d378.222de8", - "wires": [ - [ - "2c48172e.c12508", - "33b5a922.c609d6", - "7e07a472.6c934c", - "b86ad187.19dd28" - ] - ] - }, - { - "id": "2c48172e.c12508", - "type": "outcome", - "name": "vnf", - "xml": "<outcome value='vnf'>\n", - "comments": "", - "outputs": 1, - "x": 550, - "y": 514, - "z": "cd15d378.222de8", - "wires": [ - [ - "973953f9.a1f848" - ] - ] - }, - { - "id": "33b5a922.c609d6", - "type": "outcome", - "name": "vf-module", - "xml": "<outcome value='vf-module'>\n", - "comments": "", - "outputs": 1, - "x": 567.4444580078125, - "y": 1362.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "fc92d96a.d71e28" - ] - ] - }, - { - "id": "7e07a472.6c934c", - "type": "outcome", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 538.111083984375, - "y": 2089.5556030273438, - "z": "cd15d378.222de8", - "wires": [ - [ - "6e4fdf25.0d9908" - ] - ] - }, - { - "id": "b86ad187.19dd28", - "type": "outcome", - "name": "null", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 541.111083984375, - "y": 2159.5556030273438, - "z": "cd15d378.222de8", - "wires": [ - [ - "6e4fdf25.0d9908" - ] - ] - }, - { - "id": "6e4fdf25.0d9908", - "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=\"capability-type is not vnf or vf-module\" />\n", - "comments": "", - "x": 726.111083984375, - "y": 2119.5556030273438, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "f7b2e52c.493238", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$ss.input.param.index`'>\n\n", - "comments": "", - "outputs": 1, - "x": 362, - "y": 162, - "z": "cd15d378.222de8", - "wires": [ - [ - "570568eb.22122" - ] - ] - }, - { - "id": "f8d58ab4.c216e", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$ss.service-data.param.index`'>\n\n", - "comments": "", - "outputs": 1, - "x": 364, - "y": 235, - "z": "cd15d378.222de8", - "wires": [ - [ - "b5d6857c.4e6108" - ] - ] - }, - { - "id": "570568eb.22122", - "type": "outcome", - "name": "null", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 525, - "y": 161, - "z": "cd15d378.222de8", - "wires": [ - [ - "efa9a9cc.1d3f18" - ] - ] - }, - { - "id": "b5d6857c.4e6108", - "type": "outcome", - "name": "null", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 528, - "y": 234, - "z": "cd15d378.222de8", - "wires": [ - [ - "7c13efe5.43ea88" - ] - ] - }, - { - "id": "efa9a9cc.1d3f18", - "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=\"ss.input.param.index is null\" />\n", - "comments": "", - "x": 714, - "y": 161, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "7c13efe5.43ea88", - "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=\"ss.service-data.param.index is null\" />\n", - "comments": "", - "x": 715, - "y": 234, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "776ec9b3.cfe35", - "type": "execute", - "name": "execute NameGenerationNode-changeassign", - "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.vnf.changeassign.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"vnf.changeassign.nameGenResponse\" />\n", - "comments": "", - "outputs": 1, - "x": 839, - "y": 829, - "z": "cd15d378.222de8", - "wires": [ - [ - "ece4186c.66532", - "92f7fa59.72257" - ] - ] - }, - { - "id": "ece4186c.66532", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1080, - "y": 784, - "z": "cd15d378.222de8", - "wires": [ - [ - "cef19df0.cf597" - ] - ] - }, - { - "id": "92f7fa59.72257", - "type": "failure", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 1085, - "y": 882, - "z": "cd15d378.222de8", - "wires": [ - [ - "cef19df0.cf597" - ] - ] - }, - { - "id": "cef19df0.cf597", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1237, - "y": 826, - "z": "cd15d378.222de8", - "wires": [ - [ - "ee51f6c5.2fc7b", - "2868a2e7.19a866" - ] - ] - }, - { - "id": "ee51f6c5.2fc7b", - "type": "set", - "name": "set status as FAILED", - "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />", - "comments": "", - "x": 1438, - "y": 774, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "2868a2e7.19a866", - "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=\"`'Error from NameGenerationNode ChangeAssign vnf ' + $error-message`\" />\n", - "comments": "", - "x": 1424, - "y": 883, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "973953f9.a1f848", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 718, - "y": 514, - "z": "cd15d378.222de8", - "wires": [ - [ - "e2385750.976298", - "924870b0.89a2", - "43fb1f27.951ec8", - "776ec9b3.cfe35", - "cdac6275.62c538", - "3d7cf445.7e3e64" - ] - ] - }, - { - "id": "e2385750.976298", - "type": "for", - "name": "for service-data.vnf-parameters-data.param index i", - "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >", - "comments": "", - "outputs": 1, - "x": 886, - "y": 577, - "z": "cd15d378.222de8", - "wires": [ - [ - "502bdf23.14a01" - ] - ] - }, - { - "id": "502bdf23.14a01", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n", - "comments": "", - "outputs": 1, - "x": 1042, - "y": 639, - "z": "cd15d378.222de8", - "wires": [ - [ - "a82dd4d8.fa645" - ] - ] - }, - { - "id": "a82dd4d8.fa645", - "type": "outcome", - "name": "external-key", - "xml": "<outcome value='external-key'>\n", - "comments": "", - "outputs": 1, - "x": 1228, - "y": 639, - "z": "cd15d378.222de8", - "wires": [ - [ - "c9562be9.ab781" - ] - ] - }, - { - "id": "c9562be9.ab781", - "type": "set", - "name": "set tmp.external-key.value", - "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n", - "comments": "", - "x": 1460, - "y": 639, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "43fb1f27.951ec8", - "type": "set", - "name": "set payload data", - "xml": "<set>\n<parameter name=\"tmp.vnf.changeassign.naming-data-payload\" value=\"`'{"elements":[{' + '"resource-name":"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].name + '","resource-value":"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value + '","external-key":"' + $tmp.external-key.value + '"}]}'`\"/>", - "comments": "", - "x": 775, - "y": 763, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "924870b0.89a2", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$tmp.external-key.value`'>\n\n", - "comments": "", - "outputs": 1, - "x": 746, - "y": 706, - "z": "cd15d378.222de8", - "wires": [ - [ - "a1e3a0cf.8001e8" - ] - ] - }, - { - "id": "a1e3a0cf.8001e8", - "type": "outcome", - "name": "null", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 899, - "y": 705, - "z": "cd15d378.222de8", - "wires": [ - [ - "8627e3cd.3b77e8" - ] - ] - }, - { - "id": "8627e3cd.3b77e8", - "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=\"self-service-generate-name-changeassign error : external-key is null for vnf\" />\n", - "comments": "", - "x": 1060, - "y": 705, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "89b0826d.ca14b", - "type": "execute", - "name": "execute NameGenerationNode-changeassign", - "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.vf-module.changeassign.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"vf-module.changeassign.nameGenResponse\" />\n", - "comments": "", - "outputs": 1, - "x": 897.4444580078125, - "y": 1678.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "24cee4e8.4b448c", - "75bedfb3.3ade98" - ] - ] - }, - { - "id": "24cee4e8.4b448c", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1134.4444580078125, - "y": 1632.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "cb648bfb.cf66d8" - ] - ] - }, - { - "id": "75bedfb3.3ade98", - "type": "failure", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 1140.4444580078125, - "y": 1732.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "cb648bfb.cf66d8" - ] - ] - }, - { - "id": "cb648bfb.cf66d8", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1287.4444580078125, - "y": 1674.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "6fbd418e.fb8d9", - "a4b1611a.39c14" - ] - ] - }, - { - "id": "6fbd418e.fb8d9", - "type": "set", - "name": "set status as FAILED", - "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />", - "comments": "", - "x": 1496.4444580078125, - "y": 1623.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "a4b1611a.39c14", - "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=\"`'Error from NameGenerationNode ChangeAssign vf-module ' + $error-message`\" />\n", - "comments": "", - "x": 1482.4444580078125, - "y": 1732.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "fc92d96a.d71e28", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 776.4444580078125, - "y": 1363.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "c4770fe1.62916", - "dd52b043.a96ef", - "12397850.e2f698", - "89b0826d.ca14b", - "352c4756.0206c8", - "d93b3d94.b2b228" - ] - ] - }, - { - "id": "c4770fe1.62916", - "type": "for", - "name": "for service-data.vnf-parameters-data.param index i", - "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >", - "comments": "", - "outputs": 1, - "x": 944.4444580078125, - "y": 1426.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "7c7934f8.f11a6c" - ] - ] - }, - { - "id": "7c7934f8.f11a6c", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n", - "comments": "", - "outputs": 1, - "x": 1098.4444580078125, - "y": 1488.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "c6f3adca.93b718" - ] - ] - }, - { - "id": "c6f3adca.93b718", - "type": "outcome", - "name": "external-key", - "xml": "<outcome value='external-key'>\n", - "comments": "", - "outputs": 1, - "x": 1284.4444580078125, - "y": 1488.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "be8ee91c.01b38" - ] - ] - }, - { - "id": "be8ee91c.01b38", - "type": "set", - "name": "set tmp.external-key.value", - "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n", - "comments": "", - "x": 1516.4444580078125, - "y": 1488.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "12397850.e2f698", - "type": "set", - "name": "set payload data", - "xml": "<set>\n<parameter name=\"tmp.vf-module.changeassign.naming-data-payload\" value=\"`'{"elements":[{' + '"resource-name":"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].name + '","resource-value":"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value + '","external-key":"' + $tmp.external-key.value + '"}]}'`\"/>", - "comments": "", - "x": 833.4444580078125, - "y": 1612.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "dd52b043.a96ef", - "type": "switchNode", - "name": "switch", - "xml": "<switch test='`$tmp.external-key.value`'>\n\n", - "comments": "", - "outputs": 1, - "x": 804.4444580078125, - "y": 1555.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "e401bf03.ed02a8" - ] - ] - }, - { - "id": "e401bf03.ed02a8", - "type": "outcome", - "name": "null", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 957.4444580078125, - "y": 1554.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "1bd8e3a8.c533b4" - ] - ] - }, - { - "id": "1bd8e3a8.c533b4", - "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=\"self-service-generate-name-changeassign error : external-key is null for vf-module\" />\n", - "comments": "", - "x": 1118.4444580078125, - "y": 1554.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "c22afee4.bb0e98", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 890.9999389648438, - "y": 948.8888549804688, - "z": "cd15d378.222de8", - "wires": [ - [ - "d52d5d8a.20fc58" - ] - ] - }, - { - "id": "d52d5d8a.20fc58", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1056.5556640625, - "y": 993.4444427490234, - "z": "cd15d378.222de8", - "wires": [ - [ - "85e49276.168cd", - "f60bf43e.3a4bd8" - ] - ] - }, - { - "id": "85e49276.168cd", - "type": "set", - "name": "set status as FAILED", - "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />", - "comments": "", - "x": 1266, - "y": 949, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "f60bf43e.3a4bd8", - "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=\"`'Failed to update generic-vnf.vnf-name to ' + $ss.changeassign.vnf-name + ' in AnAI'`\" />\n", - "comments": "", - "x": 1254, - "y": 1037, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "3d7cf445.7e3e64", - "type": "set", - "name": "set success", - "xml": "<set>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].value`' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value`'/>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />", - "comments": "", - "x": 688.1111450195312, - "y": 1077.8888549804688, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "296de1b7.0fd81e", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 959.111083984375, - "y": 1804.1109008789062, - "z": "cd15d378.222de8", - "wires": [ - [ - "1a47636d.f18615" - ] - ] - }, - { - "id": "1a47636d.f18615", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1122.4444580078125, - "y": 1839.777587890625, - "z": "cd15d378.222de8", - "wires": [ - [ - "13f096ae.130bd9", - "446f10ad.05f988" - ] - ] - }, - { - "id": "13f096ae.130bd9", - "type": "set", - "name": "set status as FAILED", - "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />", - "comments": "", - "x": 1337.4444580078125, - "y": 1799.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "446f10ad.05f988", - "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=\"`'Failed to update vf-module.vf-module-name to ' + $ss.changeassign.vf-module-name + ' in AnAI'`\" />\n", - "comments": "", - "x": 1325.4444580078125, - "y": 1887.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "d93b3d94.b2b228", - "type": "set", - "name": "set success", - "xml": "<set>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].value`' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`'/>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />", - "comments": "", - "x": 788.4444580078125, - "y": 1929.777587890625, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "ef964ca0.407bf8", - "type": "comment", - "name": "For VNF genname changeassign", - "info": "", - "comments": "", - "x": 632.2222290039062, - "y": 450.2222595214844, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "2ef4734c.fa35c4", - "type": "comment", - "name": "For VF-MODULE genname changeassign", - "info": "", - "comments": "", - "x": 667.7777709960938, - "y": 1272.444580078125, - "z": "cd15d378.222de8", - "wires": [] - }, - { - "id": "cdac6275.62c538", - "type": "save", - "name": "update generic-vnf", - "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id \" >\n<parameter name=\"vnf-name\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value`' />\n\n", - "comments": "", - "outputs": 1, - "x": 712.22216796875, - "y": 990.2222900390625, - "z": "cd15d378.222de8", - "wires": [ - [ - "c22afee4.bb0e98", - "5fc85d40.547644" - ] - ] - }, - { - "id": "352c4756.0206c8", - "type": "save", - "name": "update vf-module", - "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id AND vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id \" > \n<parameter name=\"vf-module-name\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`' />\n", - "comments": "", - "outputs": 1, - "x": 790, - "y": 1840.2222900390625, - "z": "cd15d378.222de8", - "wires": [ - [ - "296de1b7.0fd81e", - "ba968b2c.2f6978" - ] - ] - }, - { - "id": "ba968b2c.2f6978", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 956.6666870117188, - "y": 1890.2219848632812, - "z": "cd15d378.222de8", - "wires": [ - [ - "1a47636d.f18615" - ] - ] - }, - { - "id": "5fc85d40.547644", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 894.4445190429688, - "y": 1039.1111450195312, - "z": "cd15d378.222de8", - "wires": [ - [ - "d52d5d8a.20fc58" - ] - ] - } +[
+ {
+ "id": "214635e7.c9d7da",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 162.85714721679688,
+ "y": 60,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "7c170e6c.b1f92"
+ ]
+ ]
+ },
+ {
+ "id": "7c170e6c.b1f92",
+ "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": 438.8571472167969,
+ "y": 61,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "bc54c92c.6660c8"
+ ]
+ ]
+ },
+ {
+ "id": "bc54c92c.6660c8",
+ "type": "method",
+ "name": "self-serve-generate-name-changeassign",
+ "xml": "<method rpc='self-serve-generate-name-changeassign' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 287.71429443359375,
+ "y": 118.57143115997314,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "2a24a725.3d8af8"
+ ]
+ ]
+ },
+ {
+ "id": "2a24a725.3d8af8",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 345.64286041259766,
+ "y": 292.9999942779541,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "cfd035fd.908608",
+ "16504b6.9600db5",
+ "6ee2e5ff.d456bc",
+ "9f6c60d6.c01e8",
+ "7e866415.d5162c"
+ ]
+ ]
+ },
+ {
+ "id": "6ee2e5ff.d456bc",
+ "type": "switchNode",
+ "name": "switch ss.capability-type",
+ "xml": "<switch test='`$ss.capability-type`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 621.1428527832031,
+ "y": 645.5397043228149,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "d6d95309.fd728",
+ "89c92bcf.b9bd18",
+ "18b4c130.7fafcf"
+ ]
+ ]
+ },
+ {
+ "id": "d6d95309.fd728",
+ "type": "outcome",
+ "name": "vnf",
+ "xml": "<outcome value='vnf'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 857.5715103149414,
+ "y": 558.000018119812,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "da068899.c4fcc8"
+ ]
+ ]
+ },
+ {
+ "id": "89c92bcf.b9bd18",
+ "type": "outcome",
+ "name": "vf-module",
+ "xml": "<outcome value='vf-module'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 869.3015823364258,
+ "y": 616.2061395645142,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "79055137.e90c6"
+ ]
+ ]
+ },
+ {
+ "id": "cfd035fd.908608",
+ "type": "switchNode",
+ "name": "switch ss.input.param.index",
+ "xml": "<switch test='`$ss.input.param.index`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 638.1428680419922,
+ "y": 390.28570652008057,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "b355a907.8b4998"
+ ]
+ ]
+ },
+ {
+ "id": "16504b6.9600db5",
+ "type": "switchNode",
+ "name": "switch ss.service-data.param.index",
+ "xml": "<switch test='`$ss.service-data.param.index`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 665.8571624755859,
+ "y": 463.71426486968994,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "212a16ee.89cc4a"
+ ]
+ ]
+ },
+ {
+ "id": "b355a907.8b4998",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 871.1429214477539,
+ "y": 390.7142767906189,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "e955c510.269908"
+ ]
+ ]
+ },
+ {
+ "id": "212a16ee.89cc4a",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 908.4286270141602,
+ "y": 463.71426916122437,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "2955cf32.c355c"
+ ]
+ ]
+ },
+ {
+ "id": "e955c510.269908",
+ "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=\"ss.input.param.index is null\" />\n",
+ "comments": "",
+ "x": 1060.142921447754,
+ "y": 390.7142767906189,
+ "z": "5d6511ad.296e1",
+ "wires": []
+ },
+ {
+ "id": "2955cf32.c355c",
+ "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=\"ss.service-data.param.index is null\" />\n",
+ "comments": "",
+ "x": 1095.4286270141602,
+ "y": 463.71426916122437,
+ "z": "5d6511ad.296e1",
+ "wires": []
+ },
+ {
+ "id": "c215d7d9.0f6ee8",
+ "type": "outcome",
+ "name": "pnf",
+ "xml": "<outcome value='pnf'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 852.8571586608887,
+ "y": 674.2857217788696,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "5357c55f.7049cc"
+ ]
+ ]
+ },
+ {
+ "id": "18b4c130.7fafcf",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 852.8254013061523,
+ "y": 729.2698307037354,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "1774b158.13d70f"
+ ]
+ ]
+ },
+ {
+ "id": "1774b158.13d70f",
+ "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=\"`'Unknown capability-type [' + $ss.capability-type + '], valid value are: vnf, pnf, vf-module'`\" />\n",
+ "comments": "",
+ "x": 1039.3967819213867,
+ "y": 729.2698259353638,
+ "z": "5d6511ad.296e1",
+ "wires": []
+ },
+ {
+ "id": "da068899.c4fcc8",
+ "type": "call",
+ "name": "call self-serve-vnf-generate-name-changeassign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-generate-name-changeassign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154.2858581542969,
+ "y": 558.1428499221802,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79055137.e90c6",
+ "type": "call",
+ "name": "call self-serve-vf-module-generate-name-changeassign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-generate-name-changeassign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1203.3930702209473,
+ "y": 615.9285726547241,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5357c55f.7049cc",
+ "type": "call",
+ "name": "call self-serve-pnf-generate-name-changeassign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-generate-name-changeassign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155.0001258850098,
+ "y": 673.7143020629883,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7e866415.d5162c",
+ "type": "call",
+ "name": "call capability-param-resolution",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 651.4284973144531,
+ "y": 320.00001335144043,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "84c93cbb.6b991",
+ "type": "execute",
+ "name": "execute PropertiesNode",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.1070763724192,
+ "y": 250.28571564810636,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9f6c60d6.c01e8",
+ "type": "switchNode",
+ "name": "switch prop.controller.user",
+ "xml": "<switch test='`$prop.controller.user`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 630.8213119506836,
+ "y": 250.71433639526367,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "beb3f038.e55c8"
+ ]
+ ]
+ },
+ {
+ "id": "beb3f038.e55c8",
+ "type": "failure",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 830.6784073965891,
+ "y": 250.28575093405607,
+ "z": "5d6511ad.296e1",
+ "wires": [
+ [
+ "84c93cbb.6b991"
+ ]
+ ]
+ }
]
\ No newline at end of file |