aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json1624
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input.json1756
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml19
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input.xml703
4 files changed, 3066 insertions, 1036 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json
index f4f96055..695f6f30 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json
@@ -1,1026 +1,1132 @@
[
{
- "id": "a6c81f95.1fa118",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 100.99998092651367,
- "y": 142.0476369857788,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"876e190d.c525e8",
+ "type":"dgstart",
+ "name":"DGSTART",
+ "outputs":1,
+ "x":102.66666412353516,
+ "y":113.04766654968262,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "a7b8fbd6.6571b8"
+ "b93e38a6.cd8608"
]
]
},
{
- "id": "a7b8fbd6.6571b8",
- "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": 346.28569412231445,
- "y": 141.28571605682373,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"b93e38a6.cd8608",
+ "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":347.95237731933594,
+ "y":112.28574562072754,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "45cf957f.7d2f24"
+ "fbd1bd91.34b78"
]
]
},
{
- "id": "45cf957f.7d2f24",
- "type": "method",
- "name": "method validate-network-input-parameters",
- "xml": "<method rpc='validate-network-input-parameters' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 303.9166679382324,
- "y": 216.30065441131592,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"fbd1bd91.34b78",
+ "type":"method",
+ "name":"method validate-network-input-parameters",
+ "xml":"<method rpc='validate-network-input-parameters' mode='sync'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":305.5833511352539,
+ "y":187.30068397521973,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "c3df6ec7.366e"
+ "6b5c5bc8.7d32d4"
]
]
},
{
- "id": "c3df6ec7.366e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 587.916675567627,
- "y": 204.30067920684814,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"6b5c5bc8.7d32d4",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":589.5833587646484,
+ "y":175.30070877075195,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "3e0f268c.78cbaa",
- "5d08a6e7.19c55"
+ "fa0b7905.76ead8",
+ "b76add98.9e1be"
]
]
},
{
- "id": "3e0f268c.78cbaa",
- "type": "switchNode",
- "name": "switch svc-action",
- "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 868.916675567627,
- "y": 199.3006649017334,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"fa0b7905.76ead8",
+ "type":"switchNode",
+ "name":"switch svc-action",
+ "xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":870.5833587646484,
+ "y":170.3006944656372,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "8c7d88cf.19c588"
+ "5c424a89.e26674"
]
]
},
{
- "id": "8c7d88cf.19c588",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1059.6309776306152,
- "y": 200.30066585540771,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"5c424a89.e26674",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":1061.2976608276367,
+ "y":171.30069541931152,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "a12c30e5.545f9"
+ "47b80c53.4ff5d4"
]
]
},
{
- "id": "a12c30e5.545f9",
- "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
- "comments": "",
- "x": 1234.05952835083,
- "y": 199.30065822601318,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "5d08a6e7.19c55",
- "type": "switchNode",
- "name": "switch svc-action",
- "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 169.91662216186523,
- "y": 475.30067920684814,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"47b80c53.4ff5d4",
+ "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
+ "comments":"",
+ "x":1235.7262115478516,
+ "y":170.300687789917,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"b76add98.9e1be",
+ "type":"switchNode",
+ "name":"switch svc-action",
+ "xml":"<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":171.58330535888672,
+ "y":446.30070877075195,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "7698d5c.1143dac",
- "c834ebc1.b37db",
- "280a1dfa.b0ef12",
- "40cce0a9.5132b8",
- "5ba97181.5ecc78"
+ "9f1d13e8.82e5",
+ "35c209ea.ec9956",
+ "bc476f2b.e9662",
+ "a4e386cc.9d4fe8",
+ "3750fd7a.51d192"
]
]
},
{
- "id": "7698d5c.1143dac",
- "type": "outcome",
- "name": "create",
- "xml": "<outcome value='create'>\n",
- "comments": "",
- "outputs": 1,
- "x": 371.4167060852051,
- "y": 475.30067920684814,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"9f1d13e8.82e5",
+ "type":"outcome",
+ "name":"create",
+ "xml":"<outcome value='create'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":373.08338928222656,
+ "y":446.30070877075195,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "1379c979.4ffbd7"
+ "229d8b8e.ad42f4"
]
]
},
{
- "id": "1379c979.4ffbd7",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 537.4167137145996,
- "y": 475.30067920684814,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"229d8b8e.ad42f4",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":539.0833969116211,
+ "y":446.30070877075195,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "97127fcd.491ca8"
+ "87553fdd.439b4"
]
]
},
{
- "id": "9bc1551b.7cbc08",
- "type": "for",
- "name": "for loop i - Network input parameters",
- "xml": "<for index=\"i\" start=\"0\" end=\"`$network-topology-information.network-request-input.network-input-parameters.param_length`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1736.6308555603027,
- "y": 139.01494884490967,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"31212153.05a14e",
+ "type":"for",
+ "name":"for loop i - Network input parameters",
+ "xml":"<for index=\"i\" start=\"0\" end=\"`$network-topology-information.network-request-input.network-input-parameters.param_length`\">\n",
+ "comments":"",
+ "outputs":1,
+ "x":1738.2975387573242,
+ "y":110.01497840881348,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "5138f56a.465374"
+ "f4b30b58.428408"
]
]
},
{
- "id": "4640e206.76b664",
- "type": "switchNode",
- "name": "switch value",
- "xml": "<switch test=\"`$tmp.value`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2590.202205657959,
- "y": 393.01492404937744,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"673a19c8.c4f588",
+ "type":"switchNode",
+ "name":"switch value",
+ "xml":"<switch test=\"`$tmp.value`\">\n",
+ "comments":"",
+ "outputs":1,
+ "x":2591.8688888549805,
+ "y":364.01495361328125,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "134be211.73f7be"
+ "e672b71c.729478"
]
]
},
{
- "id": "134be211.73f7be",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 2807.202178955078,
- "y": 392.01492977142334,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"e672b71c.729478",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2808.8688621520996,
+ "y":363.01495933532715,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "d41b48b9.7616f8"
+ "9880ef3.46a7f1"
]
]
},
{
- "id": "d41b48b9.7616f8",
- "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=\"`'network-request-input.network-input-parameters.param '+ $tmp.name +' is a required input'\" />\n",
- "comments": "",
- "x": 2985.6308937072754,
- "y": 393.01492977142334,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "c834ebc1.b37db",
- "type": "outcome",
- "name": "deactivate",
- "xml": "<outcome value='deactivate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 373.71426010131836,
- "y": 633.47620677948,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"9880ef3.46a7f1",
+ "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=\"`'network-request-input.network-input-parameters.param '+ $tmp.name +' is a required input'\" />\n",
+ "comments":"",
+ "x":2987.297576904297,
+ "y":364.01495933532715,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"35c209ea.ec9956",
+ "type":"outcome",
+ "name":"deactivate",
+ "xml":"<outcome value='deactivate'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":375.38094329833984,
+ "y":604.4762363433838,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "2303dff.d38ae2"
+ "cb8ed99f.c4ede8"
]
]
},
{
- "id": "280a1dfa.b0ef12",
- "type": "outcome",
- "name": "delete",
- "xml": "<outcome value='delete'>\n",
- "comments": "",
- "outputs": 1,
- "x": 377.4286422729492,
- "y": 804.1907644271851,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"bc476f2b.e9662",
+ "type":"outcome",
+ "name":"delete",
+ "xml":"<outcome value='delete'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":379.0953254699707,
+ "y":775.1907939910889,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "389ea1d5.79e916"
+ "1a9b73a8.0cf75c"
]
]
},
{
- "id": "40cce0a9.5132b8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 375.1905212402344,
- "y": 758.6190328598022,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"a4e386cc.9d4fe8",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":376.85720443725586,
+ "y":729.619062423706,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "1a84f642.1ab022"
+ "5e5bc4fc.5288dc"
]
]
},
{
- "id": "1a84f642.1ab022",
- "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
- "comments": "",
- "x": 528.7620964050293,
- "y": 761.2381768226624,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "5138f56a.465374",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1614.7142295837402,
- "y": 285.76189708709717,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"5e5bc4fc.5288dc",
+ "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
+ "comments":"",
+ "x":530.4287796020508,
+ "y":732.2382063865662,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"f4b30b58.428408",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1616.3809127807617,
+ "y":256.761926651001,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "29c502b.740c77e",
- "6b4d7b55.4c2ff4",
- "9b824272.4adc6"
+ "e47573a1.6ba18",
+ "26ac63ef.a9427c",
+ "71e6ba60.1db544"
]
]
},
{
- "id": "97127fcd.491ca8",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 862.9999961853027,
- "y": 364.71430683135986,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"87553fdd.439b4",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":864.6666793823242,
+ "y":335.7143363952637,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "b86df3ce.626b8",
- "ff7737a8.55111"
+ "39a5f2c0.1dc56e",
+ "88f987b2.ec07e8"
]
]
},
{
- "id": "b86df3ce.626b8",
- "type": "other",
- "name": "CreateNetworkInstance",
- "xml": "<outcome value='CreateNetworkInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 1128.9999961853027,
- "y": 323.71430683135986,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"39a5f2c0.1dc56e",
+ "type":"other",
+ "name":"CreateNetworkInstance",
+ "xml":"<outcome value='CreateNetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1130.6666793823242,
+ "y":294.7143363952637,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "b782b5c0.64daa8"
+ "c169b655.0cf8b8"
]
]
},
{
- "id": "ff7737a8.55111",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 1082.9999961853027,
- "y": 373.71430683135986,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"88f987b2.ec07e8",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1084.6666793823242,
+ "y":344.7143363952637,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "64b48b9c.6474c4"
+ "8ba2158c.eefe38"
]
]
},
{
- "id": "64b48b9c.6474c4",
- "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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=create\" />\n",
- "comments": "",
- "x": 1251.9999961853027,
- "y": 373.71430683135986,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "b782b5c0.64daa8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1353.9999961853027,
- "y": 312.71430683135986,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"8ba2158c.eefe38",
+ "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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=create\" />\n",
+ "comments":"",
+ "x":1253.6666793823242,
+ "y":344.7143363952637,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"c169b655.0cf8b8",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1355.6666793823242,
+ "y":283.7143363952637,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "9bc1551b.7cbc08"
+ "31212153.05a14e"
]
]
},
{
- "id": "29c502b.740c77e",
- "type": "set",
- "name": "clear tmp-data",
- "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
- "comments": "",
- "x": 1806.7142906188965,
- "y": 239.99999523162842,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "6b4d7b55.4c2ff4",
- "type": "set",
- "name": "set tmp-data",
- "xml": "<set>\n<parameter name='tmp.name' value=\"'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].name'\"/>\n<parameter name='tmp.value' value=\"'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].value'\"/>\n",
- "comments": "",
- "x": 1795.7142906188965,
- "y": 329.9999952316284,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "9b824272.4adc6",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"'$tmp.name'\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1774.7142906188965,
- "y": 423.9999952316284,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"e47573a1.6ba18",
+ "type":"set",
+ "name":"clear tmp-data",
+ "xml":"<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
+ "comments":"",
+ "x":1808.380973815918,
+ "y":211.00002479553223,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"26ac63ef.a9427c",
+ "type":"set",
+ "name":"set tmp-data",
+ "xml":"<set>\n<parameter name='tmp.name' value=\"'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].name'\"/>\n<parameter name='tmp.value' value=\"'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].value'\"/>\n",
+ "comments":"",
+ "x":1797.380973815918,
+ "y":301.0000247955322,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"71e6ba60.1db544",
+ "type":"switchNode",
+ "name":"switch name",
+ "xml":"<switch test=\"'$tmp.name'\">\n",
+ "comments":"",
+ "outputs":1,
+ "x":1776.380973815918,
+ "y":395.0000247955322,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "9dc924e4.d5eee8",
- "d40dab22.2110d",
- "d21b9753.5ddc7",
- "eb828f46.725928",
- "26f6f12.444ae0e",
- "79521d4d.d066fc",
- "ea7a9601.54836",
- "fcdaea7c.60c75",
- "dd18a79d.ddd94",
- "a1177f41.e35148",
- "73ed196f.9f7c8",
- "3464140a.8cc06c",
- "87259f41.87e1c8",
- "41479001.27e018",
- "19083ff5.a4af58",
- "d82aab4b.d86238",
- "b73417db.a46ef8"
+ "680083b4.4ec03c",
+ "52ae21e2.cbfde",
+ "eb52f0cc.707a2",
+ "729b727c.e783bc",
+ "a11ee971.636938",
+ "847e975f.c4e778",
+ "9c556409.b9d588",
+ "92551891.abca18",
+ "43e55944.571388",
+ "bffd97c2.c0d0d8",
+ "53c77b44.d42e04",
+ "5b52d96e.83c168",
+ "12245816.6f2ce8",
+ "10b6ad91.e93502",
+ "311da7df.56b808",
+ "5e98d17a.e9af5",
+ "ae2e4af6.5db478"
]
]
},
{
- "id": "9dc924e4.d5eee8",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 2314.2855796813965,
- "y": 926.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"680083b4.4ec03c",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2315.952262878418,
+ "y":898,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "fd7cd54b.6b7b6"
+ "cc20162b.8f5aa8"
]
]
},
{
- "id": "fd7cd54b.6b7b6",
- "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
- "comments": "",
- "x": 2489.2855796813965,
- "y": 925.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "d40dab22.2110d",
- "type": "other",
- "name": "name",
- "xml": "<outcome value='name'>",
- "comments": "",
- "outputs": 1,
- "x": 2291.2855796813965,
- "y": 48.99997043609619,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"cc20162b.8f5aa8",
+ "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
+ "comments":"",
+ "x":2490.952262878418,
+ "y":897,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"52ae21e2.cbfde",
+ "type":"other",
+ "name":"name",
+ "xml":"<outcome value='name'>",
+ "comments":"",
+ "outputs":1,
+ "x":2292.952262878418,
+ "y":20,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "d21b9753.5ddc7",
- "type": "other",
- "name": "service-type",
- "xml": "<outcome value='service-type'>",
- "comments": "",
- "outputs": 1,
- "x": 2294.2855796813965,
- "y": 115.99997043609619,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"eb52f0cc.707a2",
+ "type":"other",
+ "name":"service-type",
+ "xml":"<outcome value='service-type'>",
+ "comments":"",
+ "outputs":1,
+ "x":2295.952262878418,
+ "y":87,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "ea7a9601.54836",
- "type": "other",
- "name": "sna2_name",
- "xml": "<outcome value='sna2_name'>",
- "comments": "",
- "outputs": 1,
- "x": 2298.2855796813965,
- "y": 344.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"9c556409.b9d588",
+ "type":"other",
+ "name":"sna2_name",
+ "xml":"<outcome value='sna2_name'>",
+ "comments":"",
+ "outputs":1,
+ "x":2299.952262878418,
+ "y":316,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "eb828f46.725928",
- "type": "other",
- "name": "site1-name",
- "xml": "<outcome value='site1-name'>",
- "comments": "",
- "outputs": 1,
- "x": 2295.2855796813965,
- "y": 176.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"729b727c.e783bc",
+ "type":"other",
+ "name":"site1-name",
+ "xml":"<outcome value='site1-name'>",
+ "comments":"",
+ "outputs":1,
+ "x":2296.952262878418,
+ "y":148,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "26f6f12.444ae0e",
- "type": "other",
- "name": "site2-name",
- "xml": "<outcome value='site2-name'>",
- "comments": "",
- "outputs": 1,
- "x": 2291.2855796813965,
- "y": 233.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"a11ee971.636938",
+ "type":"other",
+ "name":"site2-name",
+ "xml":"<outcome value='site2-name'>",
+ "comments":"",
+ "outputs":1,
+ "x":2292.952262878418,
+ "y":205,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "79521d4d.d066fc",
- "type": "other",
- "name": "sna1_name",
- "xml": "<outcome value='sna1_name'>",
- "comments": "",
- "outputs": 1,
- "x": 2294.2855796813965,
- "y": 290.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"847e975f.c4e778",
+ "type":"other",
+ "name":"sna1_name",
+ "xml":"<outcome value='sna1_name'>",
+ "comments":"",
+ "outputs":1,
+ "x":2295.952262878418,
+ "y":262,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "fcdaea7c.60c75",
- "type": "other",
- "name": "pe1_id",
- "xml": "<outcome value='pe1_id'>",
- "comments": "",
- "outputs": 1,
- "x": 2298.2855796813965,
- "y": 395.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"92551891.abca18",
+ "type":"other",
+ "name":"pe1_id",
+ "xml":"<outcome value='pe1_id'>",
+ "comments":"",
+ "outputs":1,
+ "x":2299.952262878418,
+ "y":367,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "dd18a79d.ddd94",
- "type": "other",
- "name": "pe2_id",
- "xml": "<outcome value='pe2_id'>",
- "comments": "",
- "outputs": 1,
- "x": 2301.2855796813965,
- "y": 443.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"43e55944.571388",
+ "type":"other",
+ "name":"pe2_id",
+ "xml":"<outcome value='pe2_id'>",
+ "comments":"",
+ "outputs":1,
+ "x":2302.952262878418,
+ "y":415,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "a1177f41.e35148",
- "type": "other",
- "name": "ac1-id",
- "xml": "<outcome value='ac1-id'>",
- "comments": "",
- "outputs": 1,
- "x": 2306.2855796813965,
- "y": 492.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"bffd97c2.c0d0d8",
+ "type":"other",
+ "name":"ac1-id",
+ "xml":"<outcome value='ac1-id'>",
+ "comments":"",
+ "outputs":1,
+ "x":2307.952262878418,
+ "y":464,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "73ed196f.9f7c8",
- "type": "other",
- "name": "ac2-id",
- "xml": "<outcome value='ac2-id'>",
- "comments": "",
- "outputs": 1,
- "x": 2308.2855796813965,
- "y": 547.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"53c77b44.d42e04",
+ "type":"other",
+ "name":"ac2-id",
+ "xml":"<outcome value='ac2-id'>",
+ "comments":"",
+ "outputs":1,
+ "x":2309.952262878418,
+ "y":519,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "3464140a.8cc06c",
- "type": "other",
- "name": "ac1-ip",
- "xml": "<outcome value='ac1-ip'>",
- "comments": "",
- "outputs": 1,
- "x": 2308.2855796813965,
- "y": 599.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"5b52d96e.83c168",
+ "type":"other",
+ "name":"ac1-ip",
+ "xml":"<outcome value='ac1-ip'>",
+ "comments":"",
+ "outputs":1,
+ "x":2309.952262878418,
+ "y":571,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "87259f41.87e1c8",
- "type": "other",
- "name": "ac2-ip",
- "xml": "<outcome value='ac2-ip'>",
- "comments": "",
- "outputs": 1,
- "x": 2310.2855796813965,
- "y": 660.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"12245816.6f2ce8",
+ "type":"other",
+ "name":"ac2-ip",
+ "xml":"<outcome value='ac2-ip'>",
+ "comments":"",
+ "outputs":1,
+ "x":2311.952262878418,
+ "y":632,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "41479001.27e018",
- "type": "other",
- "name": "ac1_peer_ip",
- "xml": "<outcome value='ac1_peer_ip'>",
- "comments": "",
- "outputs": 1,
- "x": 2312.2855796813965,
- "y": 710.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"10b6ad91.e93502",
+ "type":"other",
+ "name":"ac1_peer_ip",
+ "xml":"<outcome value='ac1_peer_ip'>",
+ "comments":"",
+ "outputs":1,
+ "x":2313.952262878418,
+ "y":682,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "19083ff5.a4af58",
- "type": "other",
- "name": "ac2_peer_ip",
- "xml": "<outcome value='ac2_peer_ip'>",
- "comments": "",
- "outputs": 1,
- "x": 2308.2855796813965,
- "y": 758.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"311da7df.56b808",
+ "type":"other",
+ "name":"ac2_peer_ip",
+ "xml":"<outcome value='ac2_peer_ip'>",
+ "comments":"",
+ "outputs":1,
+ "x":2309.952262878418,
+ "y":730,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "d82aab4b.d86238",
- "type": "other",
- "name": "ac1_svlan",
- "xml": "<outcome value='ac1_svlan'>",
- "comments": "",
- "outputs": 1,
- "x": 2310.2855796813965,
- "y": 811.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"5e98d17a.e9af5",
+ "type":"other",
+ "name":"ac1_svlan",
+ "xml":"<outcome value='ac1_svlan'>",
+ "comments":"",
+ "outputs":1,
+ "x":2311.952262878418,
+ "y":783,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "b73417db.a46ef8",
- "type": "other",
- "name": "ac2_svlan",
- "xml": "<outcome value='ac2_svlan'>",
- "comments": "",
- "outputs": 1,
- "x": 2312.2855796813965,
- "y": 872.9999704360962,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"ae2e4af6.5db478",
+ "type":"other",
+ "name":"ac2_svlan",
+ "xml":"<outcome value='ac2_svlan'>",
+ "comments":"",
+ "outputs":1,
+ "x":2313.952262878418,
+ "y":844,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "4640e206.76b664"
+ "673a19c8.c4f588"
]
]
},
{
- "id": "389ea1d5.79e916",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 308.57141494750977,
- "y": 885.857213973999,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"1a9b73a8.0cf75c",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":310.23809814453125,
+ "y":856.8572435379028,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "54c12db0.6590dc"
+ "9d2b6252.7686e"
]
]
},
{
- "id": "1f448cd7.9ac43b",
- "type": "other",
- "name": "DeleteNetworkInstance",
- "xml": "<outcome value='DeleteNetworkInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 775.2857055664062,
- "y": 798.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"a2921cae.f2ac3",
+ "type":"other",
+ "name":"DeleteNetworkInstance",
+ "xml":"<outcome value='DeleteNetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":776.9523887634277,
+ "y":769.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "a7e9fd9d.eefae8"
+ "5219fa84.90d664"
]
]
},
{
- "id": "bd139dc0.9ef408",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 835.2857055664062,
- "y": 928.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"444810a.5a640f",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":836.9523887634277,
+ "y":899.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "c3650164.8f94"
+ "975771a8.05f76"
]
]
},
{
- "id": "c3650164.8f94",
- "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=\"request-information.request-action is required to be DeleteNetworkInstance for svc-action=delete\" />\n",
- "comments": "",
- "x": 1022.2857055664062,
- "y": 929.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "a7e9fd9d.eefae8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 730.2857055664062,
- "y": 998.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"975771a8.05f76",
+ "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=\"request-information.request-action is required to be DeleteNetworkInstance for svc-action=delete\" />\n",
+ "comments":"",
+ "x":1023.9523887634277,
+ "y":900.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"5219fa84.90d664",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":731.9523887634277,
+ "y":969.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "374f47e5.09a2f",
- "8ad81c32.d34b9"
+ "9de6db30.2f5d08",
+ "1e164e5f.bcc522"
]
]
},
{
- "id": "374f47e5.09a2f",
- "type": "switchNode",
- "name": "switch network-id",
- "xml": "<switch test=\"`$network-topology-operation-input.network-information.network-id`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 884.28564453125,
- "y": 1098.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"9de6db30.2f5d08",
+ "type":"switchNode",
+ "name":"switch network-id",
+ "xml":"<switch test=\"`$network-topology-operation-input.network-information.network-id`\">\n",
+ "comments":"",
+ "outputs":1,
+ "x":885.9523277282715,
+ "y":1069.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "3a8b9cb2.91ca2c"
+ "8dcf2b85.8a7718"
]
]
},
{
- "id": "3a8b9cb2.91ca2c",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1068.28564453125,
- "y": 1101.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"8dcf2b85.8a7718",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":1069.9523277282715,
+ "y":1072.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "ed90dada.d01dc8"
+ "826c9129.66a6a"
]
]
},
{
- "id": "ed90dada.d01dc8",
- "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
- "comments": "",
- "x": 1224.71435546875,
- "y": 1100.857177734375,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "5ba97181.5ecc78",
- "type": "outcome",
- "name": "activate",
- "xml": "<outcome value='activate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 372.42855072021484,
- "y": 567.7619495391846,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"826c9129.66a6a",
+ "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
+ "comments":"",
+ "x":1226.3810386657715,
+ "y":1071.8572072982788,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"3750fd7a.51d192",
+ "type":"outcome",
+ "name":"activate",
+ "xml":"<outcome value='activate'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":374.0952339172363,
+ "y":538.7619791030884,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "3c576c37.cacc9c"
+ "5d1ff75b.5232f8"
]
]
},
{
- "id": "3c576c37.cacc9c",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 555.285717010498,
- "y": 564.9047994613647,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"5d1ff75b.5232f8",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":556.9524002075195,
+ "y":535.9048290252686,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "9ef27dfb.32967",
- "47a1d56.952aa2c"
+ "2afede0b.bd1572",
+ "54e1c91a.d85148"
]
]
},
{
- "id": "9ef27dfb.32967",
- "type": "other",
- "name": "ActivateDCINetworkInstance",
- "xml": "<outcome value='ActivateDCINetworkInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 821.285717010498,
- "y": 523.9047994613647,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"2afede0b.bd1572",
+ "type":"other",
+ "name":"ActivateDCINetworkInstance",
+ "xml":"<outcome value='ActivateDCINetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":822.9524002075195,
+ "y":494.90482902526855,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "b568716c.746398"
+ "50e656ca.d6f338"
]
]
},
{
- "id": "47a1d56.952aa2c",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 775.285717010498,
- "y": 573.9047994613647,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"54e1c91a.d85148",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":776.9524002075195,
+ "y":544.9048290252686,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "66c486ba.242f98"
+ "3c265a21.293036"
]
]
},
{
- "id": "66c486ba.242f98",
- "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=\"request-information.request-action is required to be ActivateNetworkInstance for svc-action=activate\" />\n",
- "comments": "",
- "x": 944.285717010498,
- "y": 573.9047994613647,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "b568716c.746398",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1046.285717010498,
- "y": 512.9047994613647,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"3c265a21.293036",
+ "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=\"request-information.request-action is required to be ActivateNetworkInstance for svc-action=activate\" />\n",
+ "comments":"",
+ "x":945.9524002075195,
+ "y":544.9048290252686,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"50e656ca.d6f338",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1047.9524002075195,
+ "y":483.90482902526855,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "f1391d7b.3f3618"
+ "64a676e8.861d28"
]
]
},
{
- "id": "ab14b358.9b8f7",
- "type": "other",
- "name": "DeActivateDCINetworkInstance",
- "xml": "<outcome value='DeActivateDCINetworkInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 817.1428871154785,
- "y": 635.1906003952026,
- "z": "65c9aaba.d47f7c",
- "wires": [
- []
+ "id":"6076d36f.c0eccc",
+ "type":"other",
+ "name":"DeActivateDCINetworkInstance",
+ "xml":"<outcome value='DeActivateDCINetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":818.8095703125,
+ "y":606.1906299591064,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+ "ad73741b.c60b68"
+ ]
]
},
{
- "id": "afd0efcd.371a1",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 732.142879486084,
- "y": 704.1906080245972,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"b7a2dc33.468d7",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":733.8095626831055,
+ "y":675.190637588501,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "b6887a7a.63ca6"
+ "866ab25a.9ff16"
]
]
},
{
- "id": "b6887a7a.63ca6",
- "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=\"request-information.request-action is required to be DeactivateNetworkInstance for svc-action=deactivate\" />\n",
- "comments": "",
- "x": 913.142894744873,
- "y": 705.1906080245972,
- "z": "65c9aaba.d47f7c",
- "wires": []
- },
- {
- "id": "f1391d7b.3f3618",
- "type": "call",
- "name": "call validate-overlay-network-input-parameters",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-overlay-network-input-parameters' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1354.151050567627,
- "y": 514.3333225250244,
- "z": "65c9aaba.d47f7c",
- "wires": [
- []
- ]
- },
- {
- "id": "2303dff.d38ae2",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 553.999942779541,
- "y": 635.6664342880249,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"866ab25a.9ff16",
+ "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=\"request-information.request-action is required to be DeactivateNetworkInstance for svc-action=deactivate\" />\n",
+ "comments":"",
+ "x":914.8095779418945,
+ "y":676.190637588501,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"64a676e8.861d28",
+ "type":"call",
+ "name":"call validate-overlay-network-input-parameters",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-overlay-network-input-parameters' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":1355.8177337646484,
+ "y":485.3333520889282,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"cb8ed99f.c4ede8",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":555.6666259765625,
+ "y":606.6664638519287,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+ "6076d36f.c0eccc",
+ "b7a2dc33.468d7"
+ ]
+ ]
+ },
+ {
+ "id":"9d2b6252.7686e",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":545.6666831970215,
+ "y":857.0000295639038,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+ "a2921cae.f2ac3",
+ "444810a.5a640f"
+ ]
+ ]
+ },
+ {
+ "id":"1e164e5f.bcc522",
+ "type":"execute",
+ "name":"execute requiredParameter",
+ "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"$network-topology-operation-input.network-information.network-id\" value=\"\"/>\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":1018.6666831970215,
+ "y":966.0000295639038,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"ad73741b.c60b68",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1107.6666259765625,
+ "y":609,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+ "68fa6b90.e42414",
+ "b293eb0.4a82b18"
+ ]
+ ]
+ },
+ {
+ "id":"68fa6b90.e42414",
+ "type":"switchNode",
+ "name":"switch network-id",
+ "xml":"<switch test=\"`$network-topology-operation-input.network-information.network-id`\">\n",
+ "comments":"",
+ "outputs":1,
+ "x":1261.6665649414062,
+ "y":709,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "ab14b358.9b8f7",
- "afd0efcd.371a1"
+ "e6a56919.99b308"
]
]
},
{
- "id": "54c12db0.6590dc",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 544,
- "y": 886,
- "z": "65c9aaba.d47f7c",
- "wires": [
+ "id":"e6a56919.99b308",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":1445.6665649414062,
+ "y":712,
+ "z":"6ce0e277.83694c",
+ "wires":[
[
- "1f448cd7.9ac43b",
- "bd139dc0.9ef408"
+ "c239837d.9386b"
]
]
},
{
- "id": "8ad81c32.d34b9",
- "type": "execute",
- "name": "execute requiredParameters",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"$network-topology-operation-input.network-information.network-id\" value=\"\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1017,
- "y": 995,
- "z": "65c9aaba.d47f7c",
- "wires": [
- []
+ "id":"c239837d.9386b",
+ "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
+ "comments":"",
+ "x":1602.0952758789062,
+ "y":711,
+ "z":"6ce0e277.83694c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"b293eb0.4a82b18",
+ "type":"execute",
+ "name":"execute requiredParameters",
+ "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"$network-topology-operation-input.network-information.network-id\" value=\"\"/>\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":1394.3809204101562,
+ "y":605.142822265625,
+ "z":"6ce0e277.83694c",
+ "wires":[
+ [
+
+ ]
]
}
-]
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input.json
index e8224837..26a82347 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input.json
@@ -1 +1,1755 @@
-[{"id":"6ab127d7.3e57c8","type":"dgstart","name":"DGSTART","outputs":1,"x":172.85714721679688,"y":85.71428680419922,"z":"41a5a817.3d5648","wires":[["4c59a442.f4cf4c"]]},{"id":"4c59a442.f4cf4c","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":245.14285278320312,"y":137.95240020751953,"z":"41a5a817.3d5648","wires":[["f4dd0024.4a75d"]]},{"id":"f4dd0024.4a75d","type":"method","name":"validate-network-input","xml":"<method rpc='validate-network-input' mode='sync'>\n","comments":"","outputs":1,"x":245.28577423095703,"y":199.71428680419922,"z":"41a5a817.3d5648","wires":[["6b1e8286.76d08c"]]},{"id":"6b1e8286.76d08c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":258.60719299316406,"y":482.15778160095215,"z":"41a5a817.3d5648","wires":[["d7d522c6.c47a1","ef3da6ff.fcb4c8","d770503.09738b","49787de8.d52cc4","4dc7f80.27c8508","9e606dc6.bb62"]]},{"id":"d7d522c6.c47a1","type":"switchNode","name":"switch svc-request-id","xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-request-id`'>\n","comments":"","outputs":1,"x":575.0000076293945,"y":208.14287757873535,"z":"41a5a817.3d5648","wires":[["eda00305.af8c6"]]},{"id":"eda00305.af8c6","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":800.7143118722097,"y":208.14288003104048,"z":"41a5a817.3d5648","wires":[["5fa7cf6c.c6e4f"]]},{"id":"5fa7cf6c.c6e4f","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=\"sdnc-request-header.svc-request-id is a required input\" />\n","comments":"","x":952.1428778512136,"y":208.14287812369184,"z":"41a5a817.3d5648","wires":[]},{"id":"ef3da6ff.fcb4c8","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":563.5713806152344,"y":166.71430778503418,"z":"41a5a817.3d5648","wires":[["d3c980b5.f4f9d"]]},{"id":"d3c980b5.f4f9d","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":799.2857322692871,"y":165.28570556640625,"z":"41a5a817.3d5648","wires":[["60f3d2b2.8b6fec"]]},{"id":"60f3d2b2.8b6fec","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=\"sdnc-request-header.svc-action is a required input\" />\n","comments":"","x":949.2857055664062,"y":165.2857151031494,"z":"41a5a817.3d5648","wires":[]},{"id":"d770503.09738b","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":573.571418762207,"y":251.00002479553223,"z":"41a5a817.3d5648","wires":[["642ffc6d.edb964"]]},{"id":"642ffc6d.edb964","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":800.7143075125559,"y":251.0000337873189,"z":"41a5a817.3d5648","wires":[["d98a3d01.69dd1"]]},{"id":"d98a3d01.69dd1","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=\"request-information.request-action is a required input\" />\n","comments":"","x":952.1428734915598,"y":251.00003187997027,"z":"41a5a817.3d5648","wires":[]},{"id":"49787de8.d52cc4","type":"switchNode","name":"switch service-instance-id","xml":"<switch test='`$network-topology-operation-input.service-information.service-instance-id`'>\n","comments":"","outputs":1,"x":582.7143249511719,"y":293.7142868041992,"z":"41a5a817.3d5648","wires":[["e35572e4.683a8"]]},{"id":"e35572e4.683a8","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":799.1429138183594,"y":294.7142868041992,"z":"41a5a817.3d5648","wires":[["18765702.c192b9"]]},{"id":"18765702.c192b9","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=\"service-information.service-instance-id is a required input\" />\n","comments":"","x":957.5714416503906,"y":293.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"5cdaef51.cf01","type":"comment","name":"validate-network-input - CHANGELOG","info":"12/8: Initial release 1.0.0","comments":"","x":457.8571472167969,"y":49.71428680419922,"z":"41a5a817.3d5648","wires":[]},{"id":"4dc7f80.27c8508","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":559.8571472167969,"y":380.7142868041992,"z":"41a5a817.3d5648","wires":[["ab840805.c88aa8","7698d514.9e9e2c","9c038218.279e2","8a5331f6.7fc97"]]},{"id":"ab840805.c88aa8","type":"other","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":792.5715026855469,"y":386.2856979370117,"z":"41a5a817.3d5648","wires":[["181f85f2.59fb4a"]]},{"id":"7698d514.9e9e2c","type":"other","name":"activate","xml":"<outcome value='activate'>","comments":"","outputs":1,"x":797.8571472167969,"y":443.7142868041992,"z":"41a5a817.3d5648","wires":[["d7064d3a.59a01"]]},{"id":"9c038218.279e2","type":"other","name":"deactivate","xml":"<outcome value='deactivate'>","comments":"","outputs":1,"x":804.8571472167969,"y":533.7142868041992,"z":"41a5a817.3d5648","wires":[["c401091a.c37a98"]]},{"id":"181f85f2.59fb4a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":954.8571472167969,"y":385.7142868041992,"z":"41a5a817.3d5648","wires":[["9bede249.ab53a"]]},{"id":"9bede249.ab53a","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":1174.8571472167969,"y":385.7142868041992,"z":"41a5a817.3d5648","wires":[["a2e85843.a5abb8","d66ddc9c.2a644"]]},{"id":"a2e85843.a5abb8","type":"other","name":"CreateNetworkInstance","xml":"<outcome value='CreateNetworkInstance'>","comments":"","outputs":1,"x":1454.8571472167969,"y":350.7142868041992,"z":"41a5a817.3d5648","wires":[["3038a703.535d38"]]},{"id":"d66ddc9c.2a644","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1403.8571472167969,"y":394.7142868041992,"z":"41a5a817.3d5648","wires":[["f2b15bb.3c848a8"]]},{"id":"f2b15bb.3c848a8","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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=assign\" />\n","comments":"","x":1572.8571472167969,"y":394.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"d7064d3a.59a01","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":971.8571472167969,"y":443.7142868041992,"z":"41a5a817.3d5648","wires":[["34fe96d4.b2500a"]]},{"id":"34fe96d4.b2500a","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":1188.8571472167969,"y":443.7142868041992,"z":"41a5a817.3d5648","wires":[["c4a51e3e.a25db","8bdfe41b.6d4f88"]]},{"id":"c4a51e3e.a25db","type":"other","name":"CreateNetworkInstance","xml":"<outcome value='CreateNetworkInstance'>","comments":"","outputs":1,"x":1469.8571472167969,"y":444.7142868041992,"z":"41a5a817.3d5648","wires":[["246b8ff9.bce8"]]},{"id":"8bdfe41b.6d4f88","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1412.8571472167969,"y":484.7142868041992,"z":"41a5a817.3d5648","wires":[["bc9c621d.3e2ae"]]},{"id":"bc9c621d.3e2ae","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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=activate\" />\n","comments":"","x":1584.714443206787,"y":486.1428928375244,"z":"41a5a817.3d5648","wires":[]},{"id":"c401091a.c37a98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":986.8571472167969,"y":532.7142868041992,"z":"41a5a817.3d5648","wires":[["a1a63bd0.1ec5a8"]]},{"id":"a1a63bd0.1ec5a8","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":1203.8571472167969,"y":532.7142868041992,"z":"41a5a817.3d5648","wires":[["75f3214d.9e77d","21bf838c.09f3ec"]]},{"id":"75f3214d.9e77d","type":"other","name":"DeleteNetworkInstance","xml":"<outcome value='DeleteNetworkInstance'>","comments":"","outputs":1,"x":1484.8571472167969,"y":533.7142868041992,"z":"41a5a817.3d5648","wires":[["5a3b4e49.08f33"]]},{"id":"21bf838c.09f3ec","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1427.8571472167969,"y":573.7142868041992,"z":"41a5a817.3d5648","wires":[["a50b5c0e.432a7"]]},{"id":"a50b5c0e.432a7","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=\"request-information.request-action is required to be DeleteNetworkInstance for svc-action=deactivate\" />\n","comments":"","x":1596.8572120666504,"y":576.5714483261108,"z":"41a5a817.3d5648","wires":[]},{"id":"8a5331f6.7fc97","type":"other","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":800.8571166992188,"y":627.7142639160156,"z":"41a5a817.3d5648","wires":[["3a283b63.0312d4"]]},{"id":"3a283b63.0312d4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":982.8571472167969,"y":623.7142868041992,"z":"41a5a817.3d5648","wires":[["acd7d9f1.6d5088"]]},{"id":"acd7d9f1.6d5088","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":1199.8571472167969,"y":623.7142868041992,"z":"41a5a817.3d5648","wires":[["32330185.59cdce","3c3df1cc.6cec8e"]]},{"id":"32330185.59cdce","type":"other","name":"DeleteNetworkInstance","xml":"<outcome value='DeleteNetworkInstance'>","comments":"","outputs":1,"x":1480.8571472167969,"y":624.7142868041992,"z":"41a5a817.3d5648","wires":[["d66e133d.3bb22"]]},{"id":"3c3df1cc.6cec8e","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1423.8571472167969,"y":664.7142868041992,"z":"41a5a817.3d5648","wires":[["778da03.f91686"]]},{"id":"778da03.f91686","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=\"request-information.request-action is required to be DeleteNetworkInstance for svc-action=unassign\" />\n","comments":"","x":1592.8571472167969,"y":664.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"3038a703.535d38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1690.8571472167969,"y":349.7142868041992,"z":"41a5a817.3d5648","wires":[["c765164c.9eace8","11185b8d.68e464","d22c5621.e7ed08","53430aac.e9f274","8953c98c.1fc098","b1716261.5a723","2999af64.a7a08"]]},{"id":"246b8ff9.bce8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1694.8571472167969,"y":444.7142868041992,"z":"41a5a817.3d5648","wires":[["5011a400.db0fec","c765164c.9eace8","11185b8d.68e464","d22c5621.e7ed08","53430aac.e9f274","b1716261.5a723","2999af64.a7a08"]]},{"id":"5a3b4e49.08f33","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1740.8571472167969,"y":534.7142868041992,"z":"41a5a817.3d5648","wires":[["5011a400.db0fec"]]},{"id":"d66e133d.3bb22","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1739.8571472167969,"y":625.7142868041992,"z":"41a5a817.3d5648","wires":[["5011a400.db0fec"]]},{"id":"2999af64.a7a08","type":"switchNode","name":"switch onap-model-information.model-uuid","xml":"<switch test='`$network-topology-operation-input.service-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":2327.523811340332,"y":1073.714238166809,"z":"41a5a817.3d5648","wires":[["da26908.26dc67","7dd72bf4.535174"]]},{"id":"5011a400.db0fec","type":"switchNode","name":"switch network-information.network-id","xml":"<switch test='`$network-topology-operation-input.network-information.network-id`'>\n","comments":"","outputs":1,"x":2299.8569946289062,"y":592.3809604644775,"z":"41a5a817.3d5648","wires":[["da2e5662.90bf18"]]},{"id":"da2e5662.90bf18","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2528.571319580078,"y":594.3809604644775,"z":"41a5a817.3d5648","wires":[["46bc6888.3cf728"]]},{"id":"46bc6888.3cf728","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=\"service-information.network-information.network-id is a required input\" />\n","comments":"","x":2692.9999389648438,"y":592.3809604644775,"z":"41a5a817.3d5648","wires":[]},{"id":"7432549d.7b029c","type":"comment","name":"validations - required for all","info":"","comments":"","x":590.8571472167969,"y":123.71428680419922,"z":"41a5a817.3d5648","wires":[]},{"id":"6149c7a0.9e2508","type":"comment","name":"validations specific per svc-action","info":"","comments":"","x":602.8571472167969,"y":338.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"507daba4.f33a84","type":"comment","name":"network-request-information block validations","info":"","comments":"","x":2330.857147216797,"y":925.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"c765164c.9eace8","type":"switchNode","name":"switch network-request-information.tenant","xml":"<switch test='`$network-topology-operation-input.network-request-input.tenant`'>\n","comments":"","outputs":1,"x":2327.857147216797,"y":975.7142868041992,"z":"41a5a817.3d5648","wires":[["1a5fa5c7.b0d18a"]]},{"id":"1a5fa5c7.b0d18a","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2569.571502685547,"y":977.7142868041992,"z":"41a5a817.3d5648","wires":[["f027f546.8a9e68"]]},{"id":"f027f546.8a9e68","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=\"network-request-input.tenant is a required input\" />\n","comments":"","x":2721.0000915527344,"y":975.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"11185b8d.68e464","type":"switchNode","name":"switch network-request-information.aic-cloud-region","xml":"<switch test='`$network-topology-operation-input.network-request-input.aic-cloud-region`'>\n","comments":"","outputs":1,"x":2356.857147216797,"y":1018.7142868041992,"z":"41a5a817.3d5648","wires":[["7c6634cb.2fe02c"]]},{"id":"7c6634cb.2fe02c","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2618.571502685547,"y":1018.7142868041992,"z":"41a5a817.3d5648","wires":[["5b96c621.a931a8"]]},{"id":"5b96c621.a931a8","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=\"service-information.network-request-information.aic-cloud-region is a required input\" />\n","comments":"","x":2782.999969482422,"y":1017.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"d22c5621.e7ed08","type":"switchNode","name":"switch onap-model-information.model-invariant-uuid","xml":"<switch test='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":2346.857208251953,"y":769.7143230438232,"z":"41a5a817.3d5648","wires":[["ffe55e64.cc6e"]]},{"id":"ffe55e64.cc6e","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2631.8572692871094,"y":768.7143173217773,"z":"41a5a817.3d5648","wires":[["5ca74dcc.f22ac4"]]},{"id":"5ca74dcc.f22ac4","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=\"network-information.onap-model-information.model-invariant-uuid is a required input\" />\n","comments":"","x":2783.2857360839844,"y":767.7143173217773,"z":"41a5a817.3d5648","wires":[]},{"id":"53430aac.e9f274","type":"switchNode","name":"switch onap-model-information.model-uuid","xml":"<switch test='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":2320.0000915527344,"y":845.571403503418,"z":"41a5a817.3d5648","wires":[["cc57c618.935228"]]},{"id":"cc57c618.935228","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2560.0000915527344,"y":846.571403503418,"z":"41a5a817.3d5648","wires":[["475e9557.c6d32c"]]},{"id":"475e9557.c6d32c","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=\"network-information.onap-model-information.model-uuid is a required input\" />\n","comments":"","x":2725.4285583496094,"y":844.5713729858398,"z":"41a5a817.3d5648","wires":[]},{"id":"2fbcae92.f3d252","type":"comment","name":"network-information.onap-model-information block validations","info":"","comments":"","x":2366.0000915527344,"y":730.571403503418,"z":"41a5a817.3d5648","wires":[]},{"id":"b1716261.5a723","type":"switchNode","name":"switch onap-model-information.model-customization-uuid","xml":"<switch test='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":2364.857147216797,"y":804.7142868041992,"z":"41a5a817.3d5648","wires":[["a7c4b830.4d2a88"]]},{"id":"a7c4b830.4d2a88","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2660.857147216797,"y":805.7142868041992,"z":"41a5a817.3d5648","wires":[["50af7fb0.9a0cd"]]},{"id":"50af7fb0.9a0cd","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=\"network-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":2808.285614013672,"y":805.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"9e606dc6.bb62","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":565.2142219543457,"y":702.3571214675903,"z":"41a5a817.3d5648","wires":[]},{"id":"8953c98c.1fc098","type":"switchNode","name":"switch network-information.network-id","xml":"<switch test='`$network-topology-operation-input.network-information.network-id`'>\n\n","comments":"","outputs":1,"x":2301.8570709228516,"y":639.047643661499,"z":"41a5a817.3d5648","wires":[["aae74684.f0dda8","80692ac4.4c61e8"]]},{"id":"aae74684.f0dda8","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":2597.857021331787,"y":671.71435546875,"z":"41a5a817.3d5648","wires":[["4ed88700.e91638"]]},{"id":"80692ac4.4c61e8","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2595.5239181518555,"y":638.7142295837402,"z":"41a5a817.3d5648","wires":[["8c56108c.57f57"]]},{"id":"8c56108c.57f57","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='' value='' />\n","comments":"","x":2755.857147216797,"y":635.7142868041992,"z":"41a5a817.3d5648","wires":[]},{"id":"841b40cc.f635f","type":"get-resource","name":"get-resource NETWORK_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid\n and service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'\n pfx='network-model'>\n\n","comments":"","outputs":1,"x":3043.040214538574,"y":1288.8927631378174,"z":"41a5a817.3d5648","wires":[["5d7f37c8.9ba188","b4e8d9f3.c1cda8"]]},{"id":"c17b9253.2645b","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=\"`'No network model found for customization UUID ' \n + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +\n ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n","comments":"","x":3502.5044174194336,"y":1279.9401788711548,"z":"41a5a817.3d5648","wires":[]},{"id":"5d7f37c8.9ba188","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3303.7544288635254,"y":1273.2973852157593,"z":"41a5a817.3d5648","wires":[["c17b9253.2645b"]]},{"id":"b4e8d9f3.c1cda8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3297.5044288635254,"y":1305.7973852157593,"z":"41a5a817.3d5648","wires":[["c17b9253.2645b"]]},{"id":"5076277.ef718d8","type":"for","name":"for nidx..service-data.networks.network[]","xml":"<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n","comments":"","outputs":1,"x":3745.9684448242188,"y":711.1587524414062,"z":"41a5a817.3d5648","wires":[["bdf3da2f.82df78"]]},{"id":"7b4191b9.96922","type":"switchNode","name":"switch service-data.networks.network_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":3005.682388305664,"y":673.730110168457,"z":"41a5a817.3d5648","wires":[["5d1aec57.6490c4","eeefabc.77a5a58"]]},{"id":"5d1aec57.6490c4","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":3294.682388305664,"y":675.7301712036133,"z":"41a5a817.3d5648","wires":[["c38a3978.799d68"]]},{"id":"eeefabc.77a5a58","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3274.682388305664,"y":710.7301712036133,"z":"41a5a817.3d5648","wires":[["43481644.30d748"]]},{"id":"bdf3da2f.82df78","type":"switchNode","name":"switch networkid found","xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n","comments":"","outputs":1,"x":4036.3969955444336,"y":710.4088363647461,"z":"41a5a817.3d5648","wires":[["6db05184.d3014"]]},{"id":"6db05184.d3014","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4225.349349975586,"y":711.3015747070312,"z":"41a5a817.3d5648","wires":[["95f707a8.f519b8"]]},{"id":"d129023b.96226","type":"set","name":"set tmp.nidx and ctx.network-data","xml":"<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n","comments":"","x":4668.881118774414,"y":720.0515975952148,"z":"41a5a817.3d5648","wires":[]},{"id":"43481644.30d748","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3475.952407836914,"y":712.2847366333008,"z":"41a5a817.3d5648","wires":[["5076277.ef718d8","37c09b6f.552274"]]},{"id":"37c09b6f.552274","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":3664.269874572754,"y":753.1419591903687,"z":"41a5a817.3d5648","wires":[["3234ec06.966ed4"]]},{"id":"62bd6613.9eb128","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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n","comments":"","x":4017.1268577575684,"y":748.856201171875,"z":"41a5a817.3d5648","wires":[]},{"id":"3234ec06.966ed4","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":3835.6984100341797,"y":751.7133445739746,"z":"41a5a817.3d5648","wires":[["62bd6613.9eb128"]]},{"id":"4ed88700.e91638","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2731.968276977539,"y":672.1587600708008,"z":"41a5a817.3d5648","wires":[["7b4191b9.96922"]]},{"id":"c38a3978.799d68","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.validate-network-input\"/>\n<parameter name=\"field3\" value=\"`$network-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Network id proveded but no network exists that matches\"/>\n<parameter name=\"field5\" value=\"`$network-topology-operation-input.network-information.network-id`\"/>\n\n\n\n","comments":"","outputs":1,"x":3455.968276977539,"y":675.1587600708008,"z":"41a5a817.3d5648","wires":[[]]},{"id":"c767fce.cccd4","type":"switchNode","name":"switch order-status","xml":"<switch test='`$ctx.network-data.network-data.network-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":4627.301528930664,"y":757.1587753295898,"z":"41a5a817.3d5648","wires":[["a1a0872f.35e998"]]},{"id":"a1a0872f.35e998","type":"other","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":4841.301528930664,"y":757.1587753295898,"z":"41a5a817.3d5648","wires":[["7d734a8.c4b78b4"]]},{"id":"7d734a8.c4b78b4","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=\"`'Network aready exists in Created state matching network-id ' + $network-topology-operation-input.network-information.network-id`\" />\n","comments":"","x":5045.301528930664,"y":753.1587600708008,"z":"41a5a817.3d5648","wires":[]},{"id":"95f707a8.f519b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":4373.967788696289,"y":711.1587600708008,"z":"41a5a817.3d5648","wires":[["d129023b.96226"]]},{"id":"da26908.26dc67","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2592.671890258789,"y":1073.3068771362305,"z":"41a5a817.3d5648","wires":[["1dddd4c3.75a05b"]]},{"id":"7dd72bf4.535174","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":2598.9218254089355,"y":1212.473482131958,"z":"41a5a817.3d5648","wires":[["d31eafb0.3ca5d"]]},{"id":"eadc3f09.27d1","type":"get-resource","name":"get-resource SERVICE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from SERVICE_MODEL WHERE service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'\n pfx='service-model'>\n\n","comments":"","outputs":1,"x":3045.540199279785,"y":1211.9575357437134,"z":"41a5a817.3d5648","wires":[["3724789a.07bf88","7fff67b2.5b9128"]]},{"id":"cdf7a94d.143108","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=\"`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n","comments":"","x":3492.623565673828,"y":1211.9575662612915,"z":"41a5a817.3d5648","wires":[]},{"id":"3724789a.07bf88","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3293.8736457824707,"y":1207.3147821426392,"z":"41a5a817.3d5648","wires":[["cdf7a94d.143108"]]},{"id":"7fff67b2.5b9128","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3287.6236457824707,"y":1239.8147821426392,"z":"41a5a817.3d5648","wires":[["cdf7a94d.143108"]]},{"id":"2199ac52.a52754","type":"get-resource","name":"get-resource NETWORK_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid\n and service_uuid = $service-data.service-information.onap-model-information.model-uuid'\n pfx='network-model'>\n\n","comments":"","outputs":1,"x":3039.226402282715,"y":1148.1150856018066,"z":"41a5a817.3d5648","wires":[["fb39ce72.7ac11","9a65b565.a66b48"]]},{"id":"b207cf63.6ed86","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=\"`'No network model found for customization UUID ' \n + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +\n ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n","comments":"","x":3498.690605163574,"y":1139.162501335144,"z":"41a5a817.3d5648","wires":[]},{"id":"fb39ce72.7ac11","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3299.940616607666,"y":1132.5197076797485,"z":"41a5a817.3d5648","wires":[["b207cf63.6ed86"]]},{"id":"9a65b565.a66b48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3294.9405937194824,"y":1163.7697067260742,"z":"41a5a817.3d5648","wires":[["b207cf63.6ed86"]]},{"id":"65fe4dcf.819eb4","type":"get-resource","name":"get-resource SERVICE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-data.service-information.onap-model-information.model-uuid'\n pfx='service-model'>","comments":"","outputs":1,"x":3037.9763259887695,"y":1073.6797513961792,"z":"41a5a817.3d5648","wires":[["718f4575.5b593c","2ee513d0.71b3dc"]]},{"id":"17962387.d3415c","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=\"`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n","comments":"","x":3488.8097534179688,"y":1071.1798887252808,"z":"41a5a817.3d5648","wires":[]},{"id":"718f4575.5b593c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3290.0598335266113,"y":1066.5371046066284,"z":"41a5a817.3d5648","wires":[["17962387.d3415c"]]},{"id":"2ee513d0.71b3dc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3283.8098335266113,"y":1099.0371046066284,"z":"41a5a817.3d5648","wires":[["17962387.d3415c"]]},{"id":"1dddd4c3.75a05b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2767.996139526367,"y":1072.5197052955627,"z":"41a5a817.3d5648","wires":[["65fe4dcf.819eb4","2199ac52.a52754"]]},{"id":"d31eafb0.3ca5d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2760.496139526367,"y":1211.2697086334229,"z":"41a5a817.3d5648","wires":[["eadc3f09.27d1","841b40cc.f635f"]]}]
+[
+ {
+ "id":"3562cf58.a10c3",
+ "type":"dgstart",
+ "name":"DGSTART",
+ "outputs":1,
+ "x":124.66666412353516,
+ "y":56,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "e0c4e082.c3295"
+ ]
+ ]
+ },
+ {
+ "id":"e0c4e082.c3295",
+ "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":196.9523696899414,
+ "y":108.23811340332031,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "74573d69.9fc2d4"
+ ]
+ ]
+ },
+ {
+ "id":"74573d69.9fc2d4",
+ "type":"method",
+ "name":"validate-network-input",
+ "xml":"<method rpc='validate-network-input' mode='sync'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":197.0952911376953,
+ "y":170,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "38143f74.bd9fb"
+ ]
+ ]
+ },
+ {
+ "id":"38143f74.bd9fb",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":210.41670989990234,
+ "y":452.44349479675293,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "6a4466c6.034508",
+ "a2d77c10.0ac29",
+ "a84fadec.2e44e",
+ "ffea4923.ca61d8",
+ "d893960c.dd4f28",
+ "5bf0bd5.e1cf344"
+ ]
+ ]
+ },
+ {
+ "id":"6a4466c6.034508",
+ "type":"switchNode",
+ "name":"switch svc-request-id",
+ "xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":526.8095245361328,
+ "y":178.42859077453613,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "2121585b.cc4c88"
+ ]
+ ]
+ },
+ {
+ "id":"2121585b.cc4c88",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":752.523828778948,
+ "y":178.42859322684126,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b7fb6dfb.8d24d"
+ ]
+ ]
+ },
+ {
+ "id":"b7fb6dfb.8d24d",
+ "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
+ "comments":"",
+ "x":903.9523947579519,
+ "y":178.42859131949263,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a2d77c10.0ac29",
+ "type":"switchNode",
+ "name":"switch svc-action",
+ "xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":515.3808975219727,
+ "y":137.00002098083496,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b4f2a460.952418"
+ ]
+ ]
+ },
+ {
+ "id":"b4f2a460.952418",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":751.0952491760254,
+ "y":135.57141876220703,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "61cade62.7bdae"
+ ]
+ ]
+ },
+ {
+ "id":"61cade62.7bdae",
+ "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=\"sdnc-request-header.svc-action is a required input\" />\n",
+ "comments":"",
+ "x":901.0952224731445,
+ "y":135.5714282989502,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a84fadec.2e44e",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":525.3809356689453,
+ "y":221.285737991333,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "f530f35d.dff69"
+ ]
+ ]
+ },
+ {
+ "id":"f530f35d.dff69",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":752.5238244192942,
+ "y":221.28574698311968,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "81af5b92.07ad88"
+ ]
+ ]
+ },
+ {
+ "id":"81af5b92.07ad88",
+ "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=\"request-information.request-action is a required input\" />\n",
+ "comments":"",
+ "x":903.9523903982981,
+ "y":221.28574507577105,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"ffea4923.ca61d8",
+ "type":"switchNode",
+ "name":"switch service-instance-id",
+ "xml":"<switch test='`$network-topology-operation-input.service-information.service-instance-id`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":534.5238418579102,
+ "y":264,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "f94eed30.1cf1f"
+ ]
+ ]
+ },
+ {
+ "id":"f94eed30.1cf1f",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":750.9524307250977,
+ "y":265,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "8de683d9.482d8"
+ ]
+ ]
+ },
+ {
+ "id":"8de683d9.482d8",
+ "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=\"service-information.service-instance-id is a required input\" />\n",
+ "comments":"",
+ "x":909.3809585571289,
+ "y":264,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"5c67dc8d.8d5404",
+ "type":"comment",
+ "name":"validate-network-input - CHANGELOG",
+ "info":"12/8: Initial release 1.0.0",
+ "comments":"",
+ "x":409.66666412353516,
+ "y":20,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"d893960c.dd4f28",
+ "type":"switchNode",
+ "name":"switch svc-action",
+ "xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":511.66666412353516,
+ "y":351,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "bbb03e72.c193c",
+ "d561d416.9bde38",
+ "6249118d.6483f",
+ "3af74b5a.5deb94"
+ ]
+ ]
+ },
+ {
+ "id":"bbb03e72.c193c",
+ "type":"other",
+ "name":"assign",
+ "xml":"<outcome value='assign'>",
+ "comments":"",
+ "outputs":1,
+ "x":744.3810195922852,
+ "y":356.5714111328125,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "891109fe.945338"
+ ]
+ ]
+ },
+ {
+ "id":"d561d416.9bde38",
+ "type":"other",
+ "name":"activate",
+ "xml":"<outcome value='activate'>",
+ "comments":"",
+ "outputs":1,
+ "x":739.6667709350586,
+ "y":486.99999046325684,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "715e1bb3.dc8644"
+ ]
+ ]
+ },
+ {
+ "id":"6249118d.6483f",
+ "type":"other",
+ "name":"deactivate",
+ "xml":"<outcome value='deactivate'>",
+ "comments":"",
+ "outputs":1,
+ "x":742.6667327880859,
+ "y":653.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "34bfca22.5765e6"
+ ]
+ ]
+ },
+ {
+ "id":"891109fe.945338",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "comments":"",
+ "outputs":1,
+ "x":906.6666641235352,
+ "y":356,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "fa6a9864.20de58"
+ ]
+ ]
+ },
+ {
+ "id":"fa6a9864.20de58",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1126.6666641235352,
+ "y":356,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "6cbfdbf5.656f04",
+ "e45f32a3.8baec"
+ ]
+ ]
+ },
+ {
+ "id":"6cbfdbf5.656f04",
+ "type":"other",
+ "name":"CreateNetworkInstance",
+ "xml":"<outcome value='CreateNetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1406.6666641235352,
+ "y":321,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "a3e07e88.c882c"
+ ]
+ ]
+ },
+ {
+ "id":"e45f32a3.8baec",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1355.6666641235352,
+ "y":365,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "1947914a.274a4f"
+ ]
+ ]
+ },
+ {
+ "id":"1947914a.274a4f",
+ "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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=assign\" />\n",
+ "comments":"",
+ "x":1524.6666641235352,
+ "y":365,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"715e1bb3.dc8644",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":913.6667709350586,
+ "y":486.99999046325684,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "61933e36.32ebf"
+ ]
+ ]
+ },
+ {
+ "id":"61933e36.32ebf",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1130.6667709350586,
+ "y":486.99999046325684,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "d2032cc2.899d9",
+ "99d34aaa.d04488",
+ "44919742.aa0cd8"
+ ]
+ ]
+ },
+ {
+ "id":"d2032cc2.899d9",
+ "type":"other",
+ "name":"CreateNetworkInstance",
+ "xml":"<outcome value='CreateNetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1411.6667709350586,
+ "y":487.99999046325684,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "71f64cf9.079ef4"
+ ]
+ ]
+ },
+ {
+ "id":"99d34aaa.d04488",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1354.6667709350586,
+ "y":527.9999904632568,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b7f6be61.4073c"
+ ]
+ ]
+ },
+ {
+ "id":"b7f6be61.4073c",
+ "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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=activate\" />\n",
+ "comments":"",
+ "x":1526.5240669250488,
+ "y":529.428596496582,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"34bfca22.5765e6",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":924.6667327880859,
+ "y":652.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "d7eb74bd.890dc8"
+ ]
+ ]
+ },
+ {
+ "id":"d7eb74bd.890dc8",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1141.666732788086,
+ "y":652.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "16268a9c.1f62a5",
+ "baf47ce9.50dcc",
+ "1bec30c1.fe7d2f"
+ ]
+ ]
+ },
+ {
+ "id":"16268a9c.1f62a5",
+ "type":"other",
+ "name":"DeleteNetworkInstance",
+ "xml":"<outcome value='DeleteNetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1422.666732788086,
+ "y":653.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "66edda2e.adbdb4"
+ ]
+ ]
+ },
+ {
+ "id":"baf47ce9.50dcc",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1365.666732788086,
+ "y":693.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "a51db5f8.e4cd38"
+ ]
+ ]
+ },
+ {
+ "id":"a51db5f8.e4cd38",
+ "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=\"request-information.request-action is required to be DeleteNetworkInstance for svc-action=deactivate\" />\n",
+ "comments":"",
+ "x":1534.6667976379395,
+ "y":695.857174873352,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"3af74b5a.5deb94",
+ "type":"other",
+ "name":"unassign",
+ "xml":"<outcome value='unassign'>",
+ "comments":"",
+ "outputs":1,
+ "x":738.6667022705078,
+ "y":746.9999904632568,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "fc12acc9.e5517"
+ ]
+ ]
+ },
+ {
+ "id":"fc12acc9.e5517",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":920.6667327880859,
+ "y":743.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "521c12e4.61495c"
+ ]
+ ]
+ },
+ {
+ "id":"521c12e4.61495c",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1137.666732788086,
+ "y":743.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "74f5e24d.62b7fc",
+ "5f7ef187.e1747"
+ ]
+ ]
+ },
+ {
+ "id":"74f5e24d.62b7fc",
+ "type":"other",
+ "name":"DeleteNetworkInstance",
+ "xml":"<outcome value='DeleteNetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1418.666732788086,
+ "y":744.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "7f6850df.2b87e"
+ ]
+ ]
+ },
+ {
+ "id":"5f7ef187.e1747",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1361.666732788086,
+ "y":784.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "c7092fc3.cd677"
+ ]
+ ]
+ },
+ {
+ "id":"c7092fc3.cd677",
+ "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=\"request-information.request-action is required to be DeleteNetworkInstance for svc-action=unassign\" />\n",
+ "comments":"",
+ "x":1530.666732788086,
+ "y":784.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a3e07e88.c882c",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "comments":"",
+ "outputs":1,
+ "x":1642.6666641235352,
+ "y":320,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "43839f1a.168f2",
+ "50cf5531.098c6c",
+ "7341b7e.9ac2b48",
+ "a0f0d3d5.a87ab",
+ "88002920.134a48",
+ "6d91f416.826f2c",
+ "9a5aad4a.6e681"
+ ]
+ ]
+ },
+ {
+ "id":"71f64cf9.079ef4",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "comments":"",
+ "outputs":1,
+ "x":1636.6667709350586,
+ "y":487.99999046325684,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "43839f1a.168f2",
+ "50cf5531.098c6c",
+ "7341b7e.9ac2b48",
+ "a0f0d3d5.a87ab",
+ "88002920.134a48",
+ "6d91f416.826f2c",
+ "b67ae856.729b08"
+ ]
+ ]
+ },
+ {
+ "id":"66edda2e.adbdb4",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "comments":"",
+ "outputs":1,
+ "x":1678.666732788086,
+ "y":654.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b67ae856.729b08"
+ ]
+ ]
+ },
+ {
+ "id":"7f6850df.2b87e",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "comments":"",
+ "outputs":1,
+ "x":1677.666732788086,
+ "y":745.0000133514404,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b67ae856.729b08"
+ ]
+ ]
+ },
+ {
+ "id":"88002920.134a48",
+ "type":"switchNode",
+ "name":"switch onap-model-information.model-uuid",
+ "xml":"<switch test='`$network-topology-operation-input.service-information.onap-model-information.model-uuid`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2279.3333282470703,
+ "y":1043.9999513626099,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "1d5cf7df.d6b918",
+ "9241a417.ce32a8"
+ ]
+ ]
+ },
+ {
+ "id":"424069b0.42ea38",
+ "type":"comment",
+ "name":"validations - required for all",
+ "info":"",
+ "comments":"",
+ "x":542.6666641235352,
+ "y":94,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"67177f2d.d0dfb",
+ "type":"comment",
+ "name":"validations specific per svc-action",
+ "info":"",
+ "comments":"",
+ "x":554.6666641235352,
+ "y":309,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"b6492325.12cf4",
+ "type":"comment",
+ "name":"network-request-information block validations",
+ "info":"",
+ "comments":"",
+ "x":2282.666664123535,
+ "y":896,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"43839f1a.168f2",
+ "type":"switchNode",
+ "name":"switch network-request-information.tenant",
+ "xml":"<switch test='`$network-topology-operation-input.network-request-input.tenant`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2279.666664123535,
+ "y":946,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "f579222c.d4325"
+ ]
+ ]
+ },
+ {
+ "id":"f579222c.d4325",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2521.381019592285,
+ "y":948,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "ad98280c.f99968"
+ ]
+ ]
+ },
+ {
+ "id":"ad98280c.f99968",
+ "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=\"network-request-input.tenant is a required input\" />\n",
+ "comments":"",
+ "x":2672.8096084594727,
+ "y":946,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"50cf5531.098c6c",
+ "type":"switchNode",
+ "name":"switch network-request-information.aic-cloud-region",
+ "xml":"<switch test='`$network-topology-operation-input.network-request-input.aic-cloud-region`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2308.666664123535,
+ "y":989,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "d057fdf3.d010e"
+ ]
+ ]
+ },
+ {
+ "id":"d057fdf3.d010e",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2570.381019592285,
+ "y":989,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "3c313792.39c5f8"
+ ]
+ ]
+ },
+ {
+ "id":"3c313792.39c5f8",
+ "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=\"service-information.network-request-information.aic-cloud-region is a required input\" />\n",
+ "comments":"",
+ "x":2734.80948638916,
+ "y":988,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"7341b7e.9ac2b48",
+ "type":"switchNode",
+ "name":"switch onap-model-information.model-uuid",
+ "xml":"<switch test='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2271.8096084594727,
+ "y":815.8571166992188,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "76f250fe.8ad13"
+ ]
+ ]
+ },
+ {
+ "id":"76f250fe.8ad13",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2511.8096084594727,
+ "y":816.8571166992188,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "5f0fb81f.eafbb8"
+ ]
+ ]
+ },
+ {
+ "id":"5f0fb81f.eafbb8",
+ "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=\"network-information.onap-model-information.model-uuid is a required input\" />\n",
+ "comments":"",
+ "x":2677.2380752563477,
+ "y":814.8570861816406,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a0f0d3d5.a87ab",
+ "type":"switchNode",
+ "name":"switch onap-model-information.model-customization-uuid",
+ "xml":"<switch test='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2316.666664123535,
+ "y":775,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b58e5e29.9b188"
+ ]
+ ]
+ },
+ {
+ "id":"b58e5e29.9b188",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2612.666664123535,
+ "y":776,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "d1292b85.45d678"
+ ]
+ ]
+ },
+ {
+ "id":"d1292b85.45d678",
+ "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=\"network-information.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments":"",
+ "x":2760.09513092041,
+ "y":776,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"5bf0bd5.e1cf344",
+ "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":517.023738861084,
+ "y":672.6428346633911,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a1c80246.e678",
+ "type":"get-resource",
+ "name":"get-resource NETWORK_MODEL",
+ "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid\n and service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'\n pfx='network-model'>\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":2994.8497314453125,
+ "y":1259.1784763336182,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "89788b78.0fbba8",
+ "fe14df05.e082"
+ ]
+ ]
+ },
+ {
+ "id":"925507bc.719978",
+ "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=\"`'No network model found for customization UUID ' \n + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +\n ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n",
+ "comments":"",
+ "x":3454.313934326172,
+ "y":1250.2258920669556,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"89788b78.0fbba8",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3255.5639457702637,
+ "y":1243.58309841156,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "925507bc.719978"
+ ]
+ ]
+ },
+ {
+ "id":"fe14df05.e082",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3249.3139457702637,
+ "y":1276.08309841156,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "925507bc.719978"
+ ]
+ ]
+ },
+ {
+ "id":"1d5cf7df.d6b918",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2544.4814071655273,
+ "y":1043.5925903320312,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b9cf48d2.24de78"
+ ]
+ ]
+ },
+ {
+ "id":"9241a417.ce32a8",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":2550.731342315674,
+ "y":1182.7591953277588,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "c5c99455.9c06d8"
+ ]
+ ]
+ },
+ {
+ "id":"dd80fff3.bf7d7",
+ "type":"get-resource",
+ "name":"get-resource SERVICE_MODEL",
+ "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from SERVICE_MODEL WHERE service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'\n pfx='service-model'>\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":2997.3497161865234,
+ "y":1182.2432489395142,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "6a57274e.5355b8",
+ "7bb62a10.e078e4"
+ ]
+ ]
+ },
+ {
+ "id":"fb19a79a.af3d48",
+ "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=\"`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n",
+ "comments":"",
+ "x":3444.4330825805664,
+ "y":1182.2432794570923,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"6a57274e.5355b8",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3245.683162689209,
+ "y":1177.60049533844,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "fb19a79a.af3d48"
+ ]
+ ]
+ },
+ {
+ "id":"7bb62a10.e078e4",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3239.433162689209,
+ "y":1210.10049533844,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "fb19a79a.af3d48"
+ ]
+ ]
+ },
+ {
+ "id":"56d4c353.92e90c",
+ "type":"get-resource",
+ "name":"get-resource NETWORK_MODEL",
+ "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid\n and service_uuid = $service-data.service-information.onap-model-information.model-uuid'\n pfx='network-model'>\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":2991.035919189453,
+ "y":1118.4007987976074,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "415be4e2.5955dc",
+ "5521a407.7c24fc"
+ ]
+ ]
+ },
+ {
+ "id":"e4108457.428de8",
+ "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=\"`'No network model found for customization UUID ' \n + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +\n ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n",
+ "comments":"",
+ "x":3450.5001220703125,
+ "y":1109.4482145309448,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"415be4e2.5955dc",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3251.7501335144043,
+ "y":1102.8054208755493,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "e4108457.428de8"
+ ]
+ ]
+ },
+ {
+ "id":"5521a407.7c24fc",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3246.7501106262207,
+ "y":1134.055419921875,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "e4108457.428de8"
+ ]
+ ]
+ },
+ {
+ "id":"b5ccaabe.a03018",
+ "type":"get-resource",
+ "name":"get-resource SERVICE_MODEL",
+ "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-data.service-information.onap-model-information.model-uuid'\n pfx='service-model'>",
+ "comments":"",
+ "outputs":1,
+ "x":2989.785842895508,
+ "y":1043.96546459198,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "7521044.4b449fc",
+ "4aa1c6c1.dc1288"
+ ]
+ ]
+ },
+ {
+ "id":"5c9d87d7.566af8",
+ "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=\"`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n",
+ "comments":"",
+ "x":3440.619270324707,
+ "y":1041.4656019210815,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"7521044.4b449fc",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3241.8693504333496,
+ "y":1036.8228178024292,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "5c9d87d7.566af8"
+ ]
+ ]
+ },
+ {
+ "id":"4aa1c6c1.dc1288",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3235.6193504333496,
+ "y":1069.3228178024292,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "5c9d87d7.566af8"
+ ]
+ ]
+ },
+ {
+ "id":"b9cf48d2.24de78",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":2719.8056564331055,
+ "y":1042.8054184913635,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "b5ccaabe.a03018",
+ "56d4c353.92e90c"
+ ]
+ ]
+ },
+ {
+ "id":"c5c99455.9c06d8",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":2712.3056564331055,
+ "y":1181.5554218292236,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "dd80fff3.bf7d7",
+ "a1c80246.e678"
+ ]
+ ]
+ },
+ {
+ "id":"44919742.aa0cd8",
+ "type":"outcome",
+ "name":"ActivateDCINetworkInstance",
+ "xml":"<outcome value='ActivateDCINetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1426.333251953125,
+ "y":441,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"1bec30c1.fe7d2f",
+ "type":"outcome",
+ "name":"DeActivateDCINetworkInstance",
+ "xml":"<outcome value='DeActivateDCINetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1447.6666259765625,
+ "y":604,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"6d91f416.826f2c",
+ "type":"switchNode",
+ "name":"switch onap-model-information.model-invariant-uuid",
+ "xml":"<switch test='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2298.6667251586914,
+ "y":740.000036239624,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "429b261e.09c5a8"
+ ]
+ ]
+ },
+ {
+ "id":"429b261e.09c5a8",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2583.6667861938477,
+ "y":739.0000305175781,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "defe665.bee1098"
+ ]
+ ]
+ },
+ {
+ "id":"defe665.bee1098",
+ "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=\"network-information.onap-model-information.model-invariant-uuid is a required input\" />\n",
+ "comments":"",
+ "x":2735.0952529907227,
+ "y":738.0000305175781,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"f11122f.6d0b4e",
+ "type":"comment",
+ "name":"network-information.onap-model-information block validations",
+ "info":"",
+ "comments":"",
+ "x":2317.8096084594727,
+ "y":700.8571166992188,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"9a5aad4a.6e681",
+ "type":"switchNode",
+ "name":"switch network-information.network-id",
+ "xml":"<switch test='`$network-topology-operation-input.network-information.network-id`'>\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":2253.66658782959,
+ "y":609.3333568572998,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "35c914cb.fa2c7c",
+ "f70379ac.e82478"
+ ]
+ ]
+ },
+ {
+ "id":"35c914cb.fa2c7c",
+ "type":"other",
+ "name":"Other",
+ "xml":"<outcome value='Other'>",
+ "comments":"",
+ "outputs":1,
+ "x":2549.6665382385254,
+ "y":642.0000686645508,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "f6b8e9bf.429b88"
+ ]
+ ]
+ },
+ {
+ "id":"f6b8e9bf.429b88",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2683.7777938842773,
+ "y":642.4444732666016,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "124f1a13.d4f066"
+ ]
+ ]
+ },
+ {
+ "id":"124f1a13.d4f066",
+ "type":"switchNode",
+ "name":"switch service-data.networks.network_length",
+ "xml":"<switch test='`$service-data.networks.network_length`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2957.4919052124023,
+ "y":644.0158233642578,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "92655d33.ed6d7",
+ "9ed4f2.56f8bb1"
+ ]
+ ]
+ },
+ {
+ "id":"92655d33.ed6d7",
+ "type":"other",
+ "name":"outcome Null",
+ "xml":"<outcome value=''>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3246.4919052124023,
+ "y":646.0158843994141,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "1dc93ca8.c6ca53"
+ ]
+ ]
+ },
+ {
+ "id":"9ed4f2.56f8bb1",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3226.4919052124023,
+ "y":681.0158843994141,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "8f8d810b.3f421"
+ ]
+ ]
+ },
+ {
+ "id":"8f8d810b.3f421",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":3427.7619247436523,
+ "y":682.5704498291016,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "1f53b4b0.227ebb",
+ "ff0f33a8.2a294"
+ ]
+ ]
+ },
+ {
+ "id":"1f53b4b0.227ebb",
+ "type":"for",
+ "name":"for nidx..service-data.networks.network[]",
+ "xml":"<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":3697.777961730957,
+ "y":681.444465637207,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "8351ac5.ac1f25"
+ ]
+ ]
+ },
+ {
+ "id":"8351ac5.ac1f25",
+ "type":"switchNode",
+ "name":"switch networkid found",
+ "xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3988.206512451172,
+ "y":680.6945495605469,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "9138e8c9.7ab098"
+ ]
+ ]
+ },
+ {
+ "id":"9138e8c9.7ab098",
+ "type":"outcomeTrue",
+ "name":"true",
+ "xml":"<outcome value='true'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":4177.158866882324,
+ "y":681.587287902832,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "8476406f.ea8ad"
+ ]
+ ]
+ },
+ {
+ "id":"a2e4da11.fec288",
+ "type":"set",
+ "name":"set tmp.nidx and ctx.network-data",
+ "xml":"<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
+ "comments":"",
+ "x":4620.690635681152,
+ "y":690.3373107910156,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"ff0f33a8.2a294",
+ "type":"switchNode",
+ "name":"switch tmp.nidx ",
+ "xml":"<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3616.079391479492,
+ "y":723.4276723861694,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "8aba4dc7.d9aff"
+ ]
+ ]
+ },
+ {
+ "id":"74581001.a829d",
+ "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
+ "comments":"",
+ "x":3968.9363746643066,
+ "y":719.1419143676758,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"8aba4dc7.d9aff",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3787.507926940918,
+ "y":721.9990577697754,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "74581001.a829d"
+ ]
+ ]
+ },
+ {
+ "id":"2ea1516d.a319ae",
+ "type":"switchNode",
+ "name":"switch order-status",
+ "xml":"<switch test='`$ctx.network-data.network-data.network-level-oper-status.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":4579.111045837402,
+ "y":727.4444885253906,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "8688e510.ad7d88"
+ ]
+ ]
+ },
+ {
+ "id":"8688e510.ad7d88",
+ "type":"other",
+ "name":"outcome Created",
+ "xml":"<outcome value='Created'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":4793.111045837402,
+ "y":727.4444885253906,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "55924408.41735c"
+ ]
+ ]
+ },
+ {
+ "id":"55924408.41735c",
+ "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=\"`'Network aready exists in Created state matching network-id ' + $network-topology-operation-input.network-information.network-id`\" />\n",
+ "comments":"",
+ "x":4997.111045837402,
+ "y":723.4444732666016,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"8476406f.ea8ad",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":4325.777305603027,
+ "y":681.4444732666016,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "a2e4da11.fec288"
+ ]
+ ]
+ },
+ {
+ "id":"1dc93ca8.c6ca53",
+ "type":"record",
+ "name":"record",
+ "xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.validate-network-input\"/>\n<parameter name=\"field3\" value=\"`$network-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Network id proveded but no network exists that matches\"/>\n<parameter name=\"field5\" value=\"`$network-topology-operation-input.network-information.network-id`\"/>\n\n\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3407.7777938842773,
+ "y":645.4444732666016,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"b67ae856.729b08",
+ "type":"switchNode",
+ "name":"switch network-information.network-id",
+ "xml":"<switch test='`$network-topology-operation-input.network-information.network-id`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2251.6665115356445,
+ "y":562.6666736602783,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "9dba4815.084fc8"
+ ]
+ ]
+ },
+ {
+ "id":"9dba4815.084fc8",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2480.3808364868164,
+ "y":564.6666736602783,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+ "cae9bfb4.2d442"
+ ]
+ ]
+ },
+ {
+ "id":"cae9bfb4.2d442",
+ "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=\"service-information.network-information.network-id is a required input\" />\n",
+ "comments":"",
+ "x":2644.809455871582,
+ "y":562.6666736602783,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"f70379ac.e82478",
+ "type":"other",
+ "name":"NULL",
+ "xml":"<outcome value=''>",
+ "comments":"",
+ "outputs":1,
+ "x":2547.3334350585938,
+ "y":608.999942779541,
+ "z":"9587f32a.6a9aa",
+ "wires":[
+ [
+
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml
index e54026dc..3af34c61 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml
@@ -244,7 +244,22 @@
</outcome>
<outcome value="deactivate">
<switch test="`$network-topology-operation-input.request-information.request-action`">
- <outcome value="DeActivateDCINetworkInstance" />
+ <outcome value="DeActivateDCINetworkInstance">
+ <block atomic="true">
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="requiredParameters">
+ <parameter name="$network-topology-operation-input.network-information.network-id" value="" />
+ </execute>
+ <switch test="`$network-topology-operation-input.network-information.network-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
<outcome value="Other">
<return status="failure">
<parameter name="ack-final" value="Y" />
@@ -293,4 +308,4 @@
</switch>
</block>
</method>
-</service-logic>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input.xml
index b11b8417..1f950e64 100755
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input.xml
@@ -1,274 +1,429 @@
-<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}'><method rpc='validate-network-input' mode='sync'>
-<block atomic="true"><switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="sdnc-request-header.svc-action is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.sdnc-request-header.svc-request-id`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="sdnc-request-header.svc-request-id is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.request-information.request-action`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.service-information.service-instance-id`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.service-instance-id is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>
-<outcome value='assign'><block atomic="true"><switch test='`$network-topology-operation-input.request-information.request-action`'>
-<outcome value='CreateNetworkInstance'><block atomic="true"><switch test='`$network-topology-operation-input.network-information.network-id`'>
-
-<outcome value=''><return status='success'>
-<parameter name='' value='' />
-</return></outcome><outcome value='Other'><block>
-<switch test='`$service-data.networks.network_length`'>
-<outcome value=''>
-<record plugin="com.att.sdnctl.sli.recording.Slf4jRecorder">
-<parameter name="logger" value="message-log"/>
-<parameter name="field1" value="__TIMESTAMP__"/>
-<parameter name="field2" value="GENERIC-RESOURCE-API.validate-network-input"/>
-<parameter name="field3" value="`$network-topology-operation-input.sdnc-request-header.svc-request-id`"/>
-<parameter name="field4" value="Network id proveded but no network exists that matches"/>
-<parameter name="field5" value="`$network-topology-operation-input.network-information.network-id`"/>
-
-
-
-</record></outcome><outcome value='Other'>
-<block atomic="true"><for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-<switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-
-<outcome value='true'>
-<block atomic="true"><set>
-<parameter name='tmp.nidx' value='`$nidx`' />
-<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />
-</set></block></outcome></switch></for><switch test="`$tmp.nidx`">
-
-<outcome value=''>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-</return></outcome></switch></block></outcome></switch></block></outcome></switch><switch test='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-information.onap-model-information.model-invariant-uuid is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-information.onap-model-information.model-customization-uuid is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-information.onap-model-information.model-uuid is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-request-input.tenant`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.tenant is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-request-input.aic-cloud-region`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.network-request-information.aic-cloud-region is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.service-information.onap-model-information.model-uuid`'>
-<outcome value=''><block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-data.service-information.onap-model-information.model-uuid'
- pfx='service-model'><outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid
- and service_uuid = $service-data.service-information.onap-model-information.model-uuid'
- pfx='network-model'>
-
-<outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource></block></outcome><outcome value='Other'><block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from SERVICE_MODEL WHERE service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'
- pfx='service-model'>
-
-<outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid
- and service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'
- pfx='network-model'>
-
-<outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource></block></outcome></switch></block></outcome><outcome value='Other'><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
-</return></outcome></switch></block></outcome><outcome value='activate'><block atomic="true"><switch test='`$network-topology-operation-input.request-information.request-action`'>
-<outcome value='CreateNetworkInstance'><block atomic="true"><switch test='`$network-topology-operation-input.network-information.network-id`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.network-information.network-id is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-information.onap-model-information.model-invariant-uuid is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-information.onap-model-information.model-customization-uuid is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-information.onap-model-information.model-uuid is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-request-input.tenant`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.tenant is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.network-request-input.aic-cloud-region`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.network-request-information.aic-cloud-region is a required input" />
-</return></outcome></switch><switch test='`$network-topology-operation-input.service-information.onap-model-information.model-uuid`'>
-<outcome value=''><block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-data.service-information.onap-model-information.model-uuid'
- pfx='service-model'><outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid
- and service_uuid = $service-data.service-information.onap-model-information.model-uuid'
- pfx='network-model'>
-
-<outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource></block></outcome><outcome value='Other'><block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from SERVICE_MODEL WHERE service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'
- pfx='service-model'>
-
-<outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource><get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid
- and service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid'
- pfx='network-model'>
-
-<outcome value='not-found'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome><outcome value='failure'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'No network model found for customization UUID '
- + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid +
- ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
-</return></outcome></get-resource></block></outcome></switch></block></outcome><outcome value='Other'><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=activate" />
-</return></outcome></switch></block></outcome><outcome value='deactivate'><block atomic="true"><switch test='`$network-topology-operation-input.request-information.request-action`'>
-<outcome value='DeleteNetworkInstance'><block atomic="true"><switch test='`$network-topology-operation-input.network-information.network-id`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.network-information.network-id is a required input" />
-</return></outcome></switch></block></outcome><outcome value='Other'><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=deactivate" />
-</return></outcome></switch></block></outcome><outcome value='unassign'><block atomic="true"><switch test='`$network-topology-operation-input.request-information.request-action`'>
-<outcome value='DeleteNetworkInstance'><block atomic="true"><switch test='`$network-topology-operation-input.network-information.network-id`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.network-information.network-id is a required input" />
-</return></outcome></switch></block></outcome><outcome value='Other'><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=unassign" />
-</return></outcome></switch></block></outcome></switch><return status='success'>
-<parameter name="ack-final-indicator" value="Y" />
-<parameter name="error-code" value="200" />
-<parameter name="error-message" value="`$error-message`" />
-</return></block></method></service-logic>
+<?xml version="1.0" encoding="UTF-8"?>
+<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}">
+ <method rpc="validate-network-input" mode="sync">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.sdnc-request-header.svc-action`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="sdnc-request-header.svc-action is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.sdnc-request-header.svc-request-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="sdnc-request-header.svc-request-id is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.service-information.service-instance-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="service-information.service-instance-id is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.sdnc-request-header.svc-action`">
+ <outcome value="assign">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="CreateNetworkInstance">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.network-information.network-id`">
+ <outcome value="" />
+ <outcome value="Other">
+ <block>
+ <switch test="`$service-data.networks.network_length`">
+ <outcome value="">
+ <record plugin="com.att.sdnctl.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value="__TIMESTAMP__" />
+ <parameter name="field2" value="GENERIC-RESOURCE-API.validate-network-input" />
+ <parameter name="field3" value="`$network-topology-operation-input.sdnc-request-header.svc-request-id`" />
+ <parameter name="field4" value="Network id proveded but no network exists that matches" />
+ <parameter name="field5" value="`$network-topology-operation-input.network-information.network-id`" />
+ </record>
+ </outcome>
+ <outcome value="Other">
+ <block atomic="true">
+ <for index="nidx" start="0" end="`$service-data.networks.network_length`">
+ <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="tmp.nidx" value="`$nidx`" />
+ <parameter name="ctx.network-data." value="`$service-data.networks.network[$nidx].`" />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.nidx`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-information.onap-model-information.model-invariant-uuid is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-information.onap-model-information.model-customization-uuid is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-information.onap-model-information.model-uuid`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-information.onap-model-information.model-uuid is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.tenant`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.tenant is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.aic-cloud-region`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="service-information.network-request-information.aic-cloud-region is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.service-information.onap-model-information.model-uuid`">
+ <outcome value="">
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from SERVICE_MODEL WHERE service_uuid = $service-data.service-information.onap-model-information.model-uuid" pfx="service-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid and service_uuid = $service-data.service-information.onap-model-information.model-uuid" pfx="network-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value="Other">
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from SERVICE_MODEL WHERE service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid" pfx="service-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid and service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid" pfx="network-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="activate">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="ActivateDCINetworkInstance" />
+ <outcome value="CreateNetworkInstance">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.network-information.network-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="service-information.network-information.network-id is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-information.onap-model-information.model-invariant-uuid is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-information.onap-model-information.model-customization-uuid is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-information.onap-model-information.model-uuid`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-information.onap-model-information.model-uuid is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.tenant`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.tenant is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.aic-cloud-region`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="service-information.network-request-information.aic-cloud-region is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.service-information.onap-model-information.model-uuid`">
+ <outcome value="">
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from SERVICE_MODEL WHERE service_uuid = $service-data.service-information.onap-model-information.model-uuid" pfx="service-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid and service_uuid = $service-data.service-information.onap-model-information.model-uuid" pfx="network-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value="Other">
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from SERVICE_MODEL WHERE service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid" pfx="service-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No service model found for service UUID ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource" resource="SQL" key="SELECT * from NETWORK_MODEL WHERE customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid and service_uuid = $network-topology-operation-input.service-information.onap-model-information.model-uuid" pfx="network-model">
+ <outcome value="not-found">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'No network model found for customization UUID ' + $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid + ' and model-uuid ' + $network-topology-operation-input.service-information.onap-model-information.model-uuid`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=activate" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="deactivate">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="DeActivateDCINetworkInstance" />
+ <outcome value="DeleteNetworkInstance">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.network-information.network-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="service-information.network-information.network-id is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=deactivate" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="unassign">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="DeleteNetworkInstance">
+ <block atomic="true">
+ <switch test="`$network-topology-operation-input.network-information.network-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="service-information.network-information.network-id is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=unassign" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <return status="success">
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file