CCVPN extension DGs 33/83133/4
authorprakash.e <prakash.e@huawei.com>
Mon, 25 Mar 2019 04:27:47 +0000 (09:57 +0530)
committerprakash eswaramoorthy <prakash.e@huawei.com>
Mon, 25 Mar 2019 09:02:40 +0000 (09:02 +0000)
VPN and SITE resource VNF-topology-operation DGs

Change-Id: I2f39a26280b7a9a2add0783c614b542fe2073439
Issue-ID: SDNC-659
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: 201b92b81c7f50e7733297df88141357dc05c05c

platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json
platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml
platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml [new file with mode: 0644]

index 1502a4d..46a248f 100644 (file)
-[
-  {
-    "id": "7bde6af5.3548a4",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 101.71429443359375,
-    "y": 102.41365432739258,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "e157b5ae.b89b18"
-      ]
-    ]
-  },
-  {
-    "id": "e157b5ae.b89b18",
-    "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": 177,
-    "y": 142.65176582336426,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "48440c73.4b21e4"
-      ]
-    ]
-  },
-  {
-    "id": "48440c73.4b21e4",
-    "type": "method",
-    "name": "method vnf-topology-operation",
-    "xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 170.1429214477539,
-    "y": 182.41364860534668,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "22b966ec.08b71a"
-      ]
-    ]
-  },
-  {
-    "id": "ddc89afc.a79548",
-    "type": "comment",
-    "name": "vnf-topology-operation",
-    "info": "",
-    "comments": "",
-    "x": 496.0591506958008,
-    "y": 49.99999809265137,
-    "z": "d01dd033.8ac4a",
-    "wires": []
-  },
-  {
-    "id": "22b966ec.08b71a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 185.8810577392578,
-    "y": 369.10718536376953,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "c63a8d0b.7cd2d",
-        "9a9f4c36.42c6e",
-        "63014890.7d3f18"
-      ]
-    ]
-  },
-  {
-    "id": "c63a8d0b.7cd2d",
-    "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": 478.3810119628906,
-    "y": 519.2712182998657,
-    "z": "d01dd033.8ac4a",
-    "wires": []
-  },
-  {
-    "id": "9a9f4c36.42c6e",
-    "type": "switchNode",
-    "name": "switch svc-action",
-    "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 481.28572845458984,
-    "y": 367.3184289932251,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "7166573d.f3e208",
-        "91d66056.0ca95",
-        "37b3898c.305b16",
-        "e44be482.faad98",
-        "746a31a7.54817",
-        "43b3d6b0.c09de8",
-        "7acd2ca5.9b68c4"
-      ]
-    ]
-  },
-  {
-    "id": "7166573d.f3e208",
-    "type": "outcome",
-    "name": "assign",
-    "xml": "<outcome value='assign'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 893.0952606201172,
-    "y": 77.93756580352783,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "16b2d01e.2203e"
-      ]
-    ]
-  },
-  {
-    "id": "91d66056.0ca95",
-    "type": "outcome",
-    "name": "unassign",
-    "xml": "<outcome value='unassign'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 910.1430587768555,
-    "y": 639.1283464431763,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "18d76be8.6f0684"
-      ]
-    ]
-  },
-  {
-    "id": "e44be482.faad98",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 898.8573303222656,
-    "y": 1231.3186054229736,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "7c46c4a8.c5114c"
-      ]
-    ]
-  },
-  {
-    "id": "7c46c4a8.c5114c",
-    "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=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
-    "comments": "",
-    "x": 1132.0477600097656,
-    "y": 1231.3186664581299,
-    "z": "d01dd033.8ac4a",
-    "wires": []
-  },
-  {
-    "id": "63014890.7d3f18",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:validate-vnf-input",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 587.1309814453125,
-    "y": 258.794713973999,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "16b2d01e.2203e",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-assign",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1235.2381134033203,
-    "y": 77.50902652740479,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "20a6f0ca.ebd98",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1710.571566581726,
-    "y": 583.8424263000488,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "18d76be8.6f0684",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1274.2381896972656,
-    "y": 643.8424272537231,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "37b3898c.305b16",
-    "type": "outcome",
-    "name": "deactivate",
-    "xml": "<outcome value='deactivate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 900.238166809082,
-    "y": 447.50903511047363,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "3399642f.f8978c"
-      ]
-    ]
-  },
-  {
-    "id": "7bd14237.45986c",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1724.3811988830566,
-    "y": 303.41370391845703,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "746a31a7.54817",
-    "type": "outcome",
-    "name": "activate",
-    "xml": "<outcome value='activate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 896.0475997924805,
-    "y": 169.0803337097168,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "82bdf0ff.efdf4"
-      ]
-    ]
-  },
-  {
-    "id": "43b3d6b0.c09de8",
-    "type": "outcome",
-    "name": "create",
-    "xml": "<outcome value='create'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 911.7144889831543,
-    "y": 771.5000133514404,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "45a0dc92.069df4"
-      ]
-    ]
-  },
-  {
-    "id": "7acd2ca5.9b68c4",
-    "type": "outcome",
-    "name": "delete",
-    "xml": "<outcome value='delete'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 909.7145233154297,
-    "y": 986.5000548362732,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "15d3bdce.a379d2"
-      ]
-    ]
-  },
-  {
-    "id": "d48650ef.7c891",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1137.714370727539,
-    "y": 219.50001049041748,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "d11685a9.f62eb8",
-        "d06a8d19.4d6d1",
-        "4d5727ac.a53ee8",
-        "a770a856.f607b8"
-      ]
-    ]
-  },
-  {
-    "id": "d06a8d19.4d6d1",
-    "type": "outcome",
-    "name": "ActivateSiteInstance",
-    "xml": "<outcome value='ActivateSiteInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1387.1906280517578,
-    "y": 168.9792537689209,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "f4ae7362.f5fcf"
-      ]
-    ]
-  },
-  {
-    "id": "d11685a9.f62eb8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1346.0954399108887,
-    "y": 304.35725593566895,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "7bd14237.45986c"
-      ]
-    ]
-  },
-  {
-    "id": "82bdf0ff.efdf4",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1076.714370727539,
-    "y": 164.50001049041748,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "d48650ef.7c891"
-      ]
-    ]
-  },
-  {
-    "id": "f4ae7362.f5fcf",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1760.7144317626953,
-    "y": 167.50003623962402,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "fd14ed12.5d0ad",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1162.714485168457,
-    "y": 480.50000190734863,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "58b64587.59c5ec",
-        "212999d2.74fa56",
-        "dac41099.6c197",
-        "eb0736e3.b5ac48"
-      ]
-    ]
-  },
-  {
-    "id": "212999d2.74fa56",
-    "type": "outcome",
-    "name": "DeactivateSiteInstance",
-    "xml": "<outcome value='DeactivateSiteInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1406.1906814575195,
-    "y": 431.9792504310608,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "cbe77765.242be8"
-      ]
-    ]
-  },
-  {
-    "id": "58b64587.59c5ec",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1355.0954389572144,
-    "y": 582.357292175293,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "20a6f0ca.ebd98"
-      ]
-    ]
-  },
-  {
-    "id": "3399642f.f8978c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1101.714485168457,
-    "y": 425.50000190734863,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "fd14ed12.5d0ad"
-      ]
-    ]
-  },
-  {
-    "id": "cbe77765.242be8",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1775.714485168457,
-    "y": 429.5000329017639,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "c2f6d68e.0458f8",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1155.0479736328125,
-    "y": 824.0863809585571,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "a9b7bffc.aa2b4",
-        "6b318116.5323d",
-        "42a23b75.158384",
-        "9c7e9e79.a7d92"
-      ]
-    ]
-  },
-  {
-    "id": "6b318116.5323d",
-    "type": "outcome",
-    "name": "CreateSiteInstance",
-    "xml": "<outcome value='CreateSiteInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1365.5243759155273,
-    "y": 710.5656571388245,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "55240075.eb5d6"
-      ]
-    ]
-  },
-  {
-    "id": "a9b7bffc.aa2b4",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1337.4289016723633,
-    "y": 846.9435930252075,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "298a6339.0b800c"
-      ]
-    ]
-  },
-  {
-    "id": "45a0dc92.069df4",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1094.0479736328125,
-    "y": 769.0863809585571,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "c2f6d68e.0458f8"
-      ]
-    ]
-  },
-  {
-    "id": "55240075.eb5d6",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-create",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-create' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1742.048080444336,
-    "y": 709.0864157676697,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "298a6339.0b800c",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1477.7144775390625,
-    "y": 848.0000162124634,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "7fc78d60.cae204",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1155.7145233154297,
-    "y": 1039.0000548362732,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "598afaf3.9ab664",
-        "ad4f414f.86f22",
-        "80e244cd.d3b9b8",
-        "36b48dbf.e8f152"
-      ]
-    ]
-  },
-  {
-    "id": "ad4f414f.86f22",
-    "type": "outcome",
-    "name": "DeleteSiteInstance",
-    "xml": "<outcome value='DeleteSiteInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1369.1907196044922,
-    "y": 970.4792723655701,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "5ac9f6c1.9461d8"
-      ]
-    ]
-  },
-  {
-    "id": "598afaf3.9ab664",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1364.0954933166504,
-    "y": 1158.8573412895203,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "7e90d46d.dd6c8c"
-      ]
-    ]
-  },
-  {
-    "id": "15d3bdce.a379d2",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1094.7145233154297,
-    "y": 984.0000548362732,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "7fc78d60.cae204"
-      ]
-    ]
-  },
-  {
-    "id": "5ac9f6c1.9461d8",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-delete",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-delete' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1742.7145233154297,
-    "y": 969.0000548362732,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "7e90d46d.dd6c8c",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1504.3810691833496,
-    "y": 1159.9137644767761,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "4d5727ac.a53ee8",
-    "type": "outcome",
-    "name": "ActivateSDWANDeviceInstance",
-    "xml": "<outcome value='ActivateSDWANDeviceInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1415.381088256836,
-    "y": 218.00007581710815,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "707c6b49.988594"
-      ]
-    ]
-  },
-  {
-    "id": "707c6b49.988594",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1850.90478515625,
-    "y": 217.52084827423096,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "dac41099.6c197",
-    "type": "outcome",
-    "name": "DeactivateSDWANDeviceInstance",
-    "xml": "<outcome value='DeactivateSDWANDeviceInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1447.3809204101562,
-    "y": 480.00002908706665,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "ac8efd87.9dc06"
-      ]
-    ]
-  },
-  {
-    "id": "ac8efd87.9dc06",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1903.9046173095703,
-    "y": 479.52086448669434,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "2da816b6.4e7c0a",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1855.3809204101562,
-    "y": 262.99999809265137,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "a770a856.f607b8",
-    "type": "outcome",
-    "name": "ActivateSDWANPortInstance",
-    "xml": "<outcome value='ActivateSDWANPortInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1419.8572235107422,
-    "y": 263.47922563552856,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "2da816b6.4e7c0a"
-      ]
-    ]
-  },
-  {
-    "id": "eb0736e3.b5ac48",
-    "type": "outcome",
-    "name": "DeactivateSDWANPortInstance",
-    "xml": "<outcome value='DeactivateSDWANPortInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1439.3809661865234,
-    "y": 518.3333444595337,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "f22af468.5fba28"
-      ]
-    ]
-  },
-  {
-    "id": "f22af468.5fba28",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1913.9046173095703,
-    "y": 534.8541464805603,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "42a23b75.158384",
-    "type": "outcome",
-    "name": "CreateSDWANPortInstance",
-    "xml": "<outcome value='CreateSDWANPortInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1415.3812713623047,
-    "y": 799.333491563797,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "589ef7ee.6f2508"
-      ]
-    ]
-  },
-  {
-    "id": "589ef7ee.6f2508",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-create",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1871.9048919677734,
-    "y": 803.8542709350586,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "80e244cd.d3b9b8",
-    "type": "outcome",
-    "name": "DeleteSDWANPortInstance",
-    "xml": "<outcome value='DeleteSDWANPortInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1432.0477600097656,
-    "y": 1095.3334431648254,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "9255592d.86eb88"
-      ]
-    ]
-  },
-  {
-    "id": "9255592d.86eb88",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-delete",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1888.5714569091797,
-    "y": 1094.8542785644531,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "36b48dbf.e8f152",
-    "type": "outcome",
-    "name": "DeleteSDWANDeviceInstance",
-    "xml": "<outcome value='DeleteSDWANDeviceInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1440.7459106445312,
-    "y": 1035.531349658966,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "fa87fad4.5037b8"
-      ]
-    ]
-  },
-  {
-    "id": "fa87fad4.5037b8",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-delete",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-delete' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1873.269515991211,
-    "y": 1035.0520629882812,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "9c7e9e79.a7d92",
-    "type": "outcome",
-    "name": "CreateSDWANDeviceInstance",
-    "xml": "<outcome value='CreateSDWANDeviceInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1430.745620727539,
-    "y": 755.531455039978,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      [
-        "42e2eb47.a51c74"
-      ]
-    ]
-  },
-  {
-    "id": "42e2eb47.a51c74",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-create",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-create' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1887.269287109375,
-    "y": 754.0522689819336,
-    "z": "d01dd033.8ac4a",
-    "wires": [
-      []
-    ]
-  }
-]
+[\r
+    {\r
+        "id": "f6ad78a6.70d61",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 147,\r
+        "y": 72.41365623474121,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "adefe527.7305b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "adefe527.7305b8",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 222.28570556640625,\r
+        "y": 112.65176773071289,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "6abc301f.721f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6abc301f.721f8",\r
+        "type": "method",\r
+        "name": "method vnf-topology-operation",\r
+        "xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 215.42862701416016,\r
+        "y": 152.4136505126953,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "d909ae21.d0b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33491d1e.01822a",\r
+        "type": "comment",\r
+        "name": "vnf-topology-operation",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 541.344856262207,\r
+        "y": 20,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d909ae21.d0b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 231.16676330566406,\r
+        "y": 339.10718727111816,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "12dabaef.e4e31d",\r
+                "2c72dba1.c09994",\r
+                "8732851b.070f78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12dabaef.e4e31d",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 523.6667175292969,\r
+        "y": 489.27122020721436,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c72dba1.c09994",\r
+        "type": "switchNode",\r
+        "name": "switch svc-action",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 526.5714340209961,\r
+        "y": 337.31843090057373,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "430fcd00.a5d5fc",\r
+                "c670772c.dd0908",\r
+                "f99a71f9.aa21e",\r
+                "681c5b5.a0f9c24",\r
+                "f1c88e8c.45c93",\r
+                "587f0736.94e46",\r
+                "b1dd52ed.b68c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "430fcd00.a5d5fc",\r
+        "type": "outcome",\r
+        "name": "assign",\r
+        "xml": "<outcome value='assign'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 938.3809661865234,\r
+        "y": 47.937567710876465,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "f8a7b2b3.28c41"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c670772c.dd0908",\r
+        "type": "outcome",\r
+        "name": "unassign",\r
+        "xml": "<outcome value='unassign'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1009.4287919998169,\r
+        "y": 733.1283273696899,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "b332e291.fef1f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "681c5b5.a0f9c24",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 993.1430282592773,\r
+        "y": 1421.3185548782349,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "a8606faf.22f988"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8606faf.22f988",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",\r
+        "comments": "",\r
+        "x": 1226.3334579467773,\r
+        "y": 1421.318615913391,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8732851b.070f78",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:validate-vnf-input",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 632.4166870117188,\r
+        "y": 228.79471588134766,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8a7b2b3.28c41",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-assign",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1280.5238189697266,\r
+        "y": 47.50902843475342,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3c38eb4.34463",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1815.8572998046875,\r
+        "y": 686.8424072265625,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b332e291.fef1f",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1373.523922920227,\r
+        "y": 737.8424081802368,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f99a71f9.aa21e",\r
+        "type": "outcome",\r
+        "name": "deactivate",\r
+        "xml": "<outcome value='deactivate'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978.5238723754883,\r
+        "y": 472.50903701782227,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "3c2ff88a.035fd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef6e2999.a3799",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1772.6668701171875,\r
+        "y": 346.4136962890625,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1c88e8c.45c93",\r
+        "type": "outcome",\r
+        "name": "activate",\r
+        "xml": "<outcome value='activate'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941.3333053588867,\r
+        "y": 139.08033561706543,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "ca254b38.0ec08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "587f0736.94e46",\r
+        "type": "outcome",\r
+        "name": "create",\r
+        "xml": "<outcome value='create'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1011.0002222061157,\r
+        "y": 865.4999942779541,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "1b68499b.7f9d96"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1dd52ed.b68c7",\r
+        "type": "outcome",\r
+        "name": "delete",\r
+        "xml": "<outcome value='delete'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1004.0002212524414,\r
+        "y": 1176.5000042915344,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "11ce6933.d00f9f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7de5042a.89ed54",\r
+        "type": "switchNode",\r
+        "name": "switch request-action",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1183.0000762939453,\r
+        "y": 189.5000123977661,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "dfd6a1d.27647e",\r
+                "5f50adc7.ac53cc",\r
+                "31e74903.9d10b6",\r
+                "d56faee8.37ff78",\r
+                "cf5adeee.b84288",\r
+                "946dfa0d.22ede8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f50adc7.ac53cc",\r
+        "type": "outcome",\r
+        "name": "ActivateSiteInstance",\r
+        "xml": "<outcome value='ActivateSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1443.476318359375,\r
+        "y": 111.97926330566406,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "b87f363c.536f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfd6a1d.27647e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1416.381103515625,\r
+        "y": 347.3572692871094,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "ef6e2999.a3799"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca254b38.0ec08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1122.0000762939453,\r
+        "y": 134.5000123977661,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "7de5042a.89ed54"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b87f363c.536f48",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1810.0001220703125,\r
+        "y": 114.50004577636719,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2a5033e.3cfd8",\r
+        "type": "switchNode",\r
+        "name": "switch request-action",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1241.0001907348633,\r
+        "y": 505.50000381469727,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "4643a339.a1719c",\r
+                "47cd0887.0667f8",\r
+                "65997b7c.169f44",\r
+                "138fde4d.c3ff5a",\r
+                "8d371312.adf0b8",\r
+                "d66cfce5.3961f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47cd0887.0667f8",\r
+        "type": "outcome",\r
+        "name": "DeactivateSiteInstance",\r
+        "xml": "<outcome value='DeactivateSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1484.4763870239258,\r
+        "y": 456.9792523384094,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "616cb241.dff2f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4643a339.a1719c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1459.381103515625,\r
+        "y": 687.3572998046875,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "d3c38eb4.34463"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c2ff88a.035fd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1180.0001907348633,\r
+        "y": 450.50000381469727,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "e2a5033e.3cfd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "616cb241.dff2f4",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1854.0001907348633,\r
+        "y": 454.50003480911255,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "df09f43b.1eb908",\r
+        "type": "switchNode",\r
+        "name": "switch request-action",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1209.3336181640625,\r
+        "y": 952.0863037109375,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "6772d437.231574",\r
+                "1fe5f5cc.d40db2",\r
+                "11c2f3bd.05d49c",\r
+                "2d6c749d.43234c",\r
+                "48d065a3.28be94",\r
+                "a2afb217.467ef8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1fe5f5cc.d40db2",\r
+        "type": "outcome",\r
+        "name": "CreateSiteInstance",\r
+        "xml": "<outcome value='CreateSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1464.8101091384888,\r
+        "y": 804.5656380653381,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "d80e5dd3.56b4d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6772d437.231574",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1431.7145919799805,\r
+        "y": 1025.9435234069824,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "eedab70b.41d2f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b68499b.7f9d96",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1193.333706855774,\r
+        "y": 863.0863618850708,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "df09f43b.1eb908"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d80e5dd3.56b4d8",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1841.3338136672974,\r
+        "y": 803.0863966941833,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "eedab70b.41d2f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1572.0001678466797,\r
+        "y": 1026.9999465942383,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c5991d3.fe0726",\r
+        "type": "switchNode",\r
+        "name": "switch request-action",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1250.0002212524414,\r
+        "y": 1229.0000042915344,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "93525206.c4868",\r
+                "b3b4df67.0eb02",\r
+                "74c68f10.1e24b8",\r
+                "9f299b09.7aa55",\r
+                "3ebbe3a2.8b462c",\r
+                "c94b17f8.0cedb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3b4df67.0eb02",\r
+        "type": "outcome",\r
+        "name": "DeleteSiteInstance",\r
+        "xml": "<outcome value='DeleteSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1490.4764404296875,\r
+        "y": 1174.479248046875,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "a249836b.7254f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93525206.c4868",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1455.3812255859375,\r
+        "y": 1424.8574829101562,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "2bf5e221.183e6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11ce6933.d00f9f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1189.0002212524414,\r
+        "y": 1174.0000042915344,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "2c5991d3.fe0726"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a249836b.7254f",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1863.000244140625,\r
+        "y": 1172,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2bf5e221.183e6e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1595.6668014526367,\r
+        "y": 1425.913906097412,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "31e74903.9d10b6",\r
+        "type": "outcome",\r
+        "name": "ActivateSDWANDeviceInstance",\r
+        "xml": "<outcome value='ActivateSDWANDeviceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1474.666748046875,\r
+        "y": 163.0000762939453,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "17588db1.773d92"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17588db1.773d92",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1914.1904296875,\r
+        "y": 161.5208282470703,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "65997b7c.169f44",\r
+        "type": "outcome",\r
+        "name": "DeactivateSDWANDeviceInstance",\r
+        "xml": "<outcome value='DeactivateSDWANDeviceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1525.6666259765625,\r
+        "y": 505.0000309944153,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "ba2e14f5.6ad49"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba2e14f5.6ad49",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1982.1903228759766,\r
+        "y": 504.52086639404297,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "184ea4bf.3b8253",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1911.6666259765625,\r
+        "y": 202.00001525878906,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d56faee8.37ff78",\r
+        "type": "outcome",\r
+        "name": "ActivateSDWANPortInstance",\r
+        "xml": "<outcome value='ActivateSDWANPortInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1468.1429443359375,\r
+        "y": 209.47923278808594,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "184ea4bf.3b8253"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "138fde4d.c3ff5a",\r
+        "type": "outcome",\r
+        "name": "DeactivateSDWANPortInstance",\r
+        "xml": "<outcome value='DeactivateSDWANPortInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1517.6666717529297,\r
+        "y": 543.3333463668823,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "103298e7.e1370f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "103298e7.e1370f",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1992.1903228759766,\r
+        "y": 559.8541483879089,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11c2f3bd.05d49c",\r
+        "type": "outcome",\r
+        "name": "CreateSDWANPortInstance",\r
+        "xml": "<outcome value='CreateSDWANPortInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1514.667004585266,\r
+        "y": 893.3334724903107,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "656a70df.0a852"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "656a70df.0a852",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1971.1906251907349,\r
+        "y": 897.8542518615723,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74c68f10.1e24b8",\r
+        "type": "outcome",\r
+        "name": "DeleteSDWANPortInstance",\r
+        "xml": "<outcome value='DeleteSDWANPortInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1526.3334579467773,\r
+        "y": 1285.3333926200867,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "9db6cb67.644d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9db6cb67.644d78",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1952.857177734375,\r
+        "y": 1284.854248046875,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9f299b09.7aa55",\r
+        "type": "outcome",\r
+        "name": "DeleteSDWANDeviceInstance",\r
+        "xml": "<outcome value='DeleteSDWANDeviceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1535.031608581543,\r
+        "y": 1225.5312991142273,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "4f32f738.55afe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f32f738.55afe",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1967.5552139282227,\r
+        "y": 1225.0520124435425,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d6c749d.43234c",\r
+        "type": "outcome",\r
+        "name": "CreateSDWANDeviceInstance",\r
+        "xml": "<outcome value='CreateSDWANDeviceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1530.0313539505005,\r
+        "y": 849.5314359664917,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "6a3e7322.ca712c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a3e7322.ca712c",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1986.5550203323364,\r
+        "y": 848.0522499084473,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf5adeee.b84288",\r
+        "type": "outcome",\r
+        "name": "ActivateSDWANVpnInstance",\r
+        "xml": "<outcome value='ActivateSDWANVpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1472.296142578125,\r
+        "y": 258.57708740234375,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "3f12353b.7c4ed2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "946dfa0d.22ede8",\r
+        "type": "outcome",\r
+        "name": "ActivateSDWANSiteInstance",\r
+        "xml": "<outcome value='ActivateSDWANSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1476.296142578125,\r
+        "y": 301.2435302734375,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "3f12353b.7c4ed2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f12353b.7c4ed2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1747.2961349487305,\r
+        "y": 279.24358201026917,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "a64b866a.fe348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a64b866a.fe348",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2125.29598236084,\r
+        "y": 276.57724118232727,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9a9efad.b9e6c",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2178.333206176758,\r
+        "y": 615.3667154312134,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "27d19dc1.bb91e2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1781.3332977294922,\r
+        "y": 617.0330600738525,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "f9a9efad.b9e6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d66cfce5.3961f8",\r
+        "type": "outcome",\r
+        "name": "DeactivateSDWANSiteInstance",\r
+        "xml": "<outcome value='DeactivateSDWANSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1523.3332824707031,\r
+        "y": 639.0330247879028,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "27d19dc1.bb91e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d371312.adf0b8",\r
+        "type": "outcome",\r
+        "name": "DeactivateSDWANVpnInstance",\r
+        "xml": "<outcome value='DeactivateSDWANVpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1517.333251953125,\r
+        "y": 596.3665771484375,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "27d19dc1.bb91e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48d065a3.28be94",\r
+        "type": "outcome",\r
+        "name": "CreateSDWANVpnInstance",\r
+        "xml": "<outcome value='CreateSDWANVpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1510.8516845703125,\r
+        "y": 948.0215454101562,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "99be455.f37d838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2afb217.467ef8",\r
+        "type": "outcome",\r
+        "name": "CreateSDWANSiteInstance",\r
+        "xml": "<outcome value='CreateSDWANSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1502.851661682129,\r
+        "y": 989.687933921814,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "99be455.f37d838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99be455.f37d838",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1760.851676940918,\r
+        "y": 967.6879692077637,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "6c44d81a.9e145"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c44d81a.9e145",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2138.8515243530273,\r
+        "y": 965.0216283798218,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ebbe3a2.8b462c",\r
+        "type": "outcome",\r
+        "name": "DeleteSDWANVpnInstance",\r
+        "xml": "<outcome value='DeleteSDWANVpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1517.3333740234375,\r
+        "y": 1332.36669921875,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "998a2bef.b013e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c94b17f8.0cedb",\r
+        "type": "outcome",\r
+        "name": "DeleteSDWANSiteInstance",\r
+        "xml": "<outcome value='DeleteSDWANSiteInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1517.3333740234375,\r
+        "y": 1373.0332641601562,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "998a2bef.b013e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "998a2bef.b013e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1767.333366394043,\r
+        "y": 1352.0331230163574,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            [\r
+                "d4dcf7f5.c6d7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4dcf7f5.c6d7",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2145.3332138061523,\r
+        "y": 1349.3667821884155,\r
+        "z": "8e56a38a.ed9008",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json
new file mode 100644 (file)
index 0000000..244799a
--- /dev/null
@@ -0,0 +1,298 @@
+[\r
+    {\r
+        "id": "294747fd.2c2d98",\r
+        "type": "method",\r
+        "name": "method vnf-topology-operation-vpn-site-resource-activate",\r
+        "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 211.5,\r
+        "y": 201.99997901916504,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "4068c2f3.520fdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cff9203f.6e7f7",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 89.0713882446289,\r
+        "y": 38,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "78d3821a.ddc91c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78d3821a.ddc91c",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 188.35708618164062,\r
+        "y": 112.23810789268464,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "294747fd.2c2d98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4068c2f3.520fdc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 189.73804473876953,\r
+        "y": 373.66666814964265,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "3a6b0423.a0a0ac",\r
+                "d7b531c1.f5a86",\r
+                "29c1d8e.17e3128",\r
+                "206b62f4.ff1b8e",\r
+                "ac1ddf15.75241",\r
+                "fd35c3d4.a8e8a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a6b0423.a0a0ac",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to Active",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+        "comments": "",\r
+        "x": 598.8850250244141,\r
+        "y": 446.67056941986084,\r
+        "z": "79a5b197.5d84",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d7b531c1.f5a86",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 519.0717163085938,\r
+        "y": 572.5971069335938,\r
+        "z": "79a5b197.5d84",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29c1d8e.17e3128",\r
+        "type": "set",\r
+        "name": "set vnf-index and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",\r
+        "comments": "",\r
+        "x": 605.0716705322266,\r
+        "y": 394.5968236923218,\r
+        "z": "79a5b197.5d84",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "206b62f4.ff1b8e",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 619.5000610351562,\r
+        "y": 263.00000545661896,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "510e4a8b.ead204",\r
+                "c779a013.c610f",\r
+                "7ee910c1.660bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ee910c1.660bf",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 878.4689559936523,\r
+        "y": 224.96876499336213,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "a7558172.b2121"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a7558172.b2121",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1033.2778434753418,\r
+        "y": 243.88903352897614,\r
+        "z": "79a5b197.5d84",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "510e4a8b.ead204",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 871.5000953674316,\r
+        "y": 264.00008651893586,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "a7558172.b2121"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c779a013.c610f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 864.5005035400391,\r
+        "y": 297.0000903336331,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "6aaa180d.7575b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6aaa180d.7575b8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1011.7700462341309,\r
+        "y": 297.55473539512604,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "46580136.d7c0b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46580136.d7c0b",\r
+        "type": "for",\r
+        "name": "for vidx..service-data.vnfs.vnf_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1257.7861633300781,\r
+        "y": 304.4286558357999,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "a66fcd87.a077a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a66fcd87.a077a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1477.1357955932617,\r
+        "y": 303.9687359062955,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "ba7c0ee7.d144d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba7c0ee7.d144d",\r
+        "type": "switchNode",\r
+        "name": "switch vnfid found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1631.2153930664062,\r
+        "y": 303.67881796043366,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "a9157f30.c0f4f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9157f30.c0f4f",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1807.1675148010254,\r
+        "y": 303.57150003593415,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            [\r
+                "e051341c.b94158"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e051341c.b94158",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
+        "comments": "",\r
+        "x": 2016.6998901367188,\r
+        "y": 305.3216001717374,\r
+        "z": "79a5b197.5d84",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ac1ddf15.75241",\r
+        "type": "save",\r
+        "name": "update AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 624.5000305175781,\r
+        "y": 513.0103950500488,\r
+        "z": "79a5b197.5d84",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd35c3d4.a8e8a",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
+        "comments": "",\r
+        "x": 603.5001449584961,\r
+        "y": 344.010356426239,\r
+        "z": "79a5b197.5d84",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
new file mode 100644 (file)
index 0000000..7e74909
--- /dev/null
@@ -0,0 +1,375 @@
+[\r
+    {\r
+        "id": "ba2f1a27.8f7c88",\r
+        "type": "method",\r
+        "name": "method vnf-topology-operation-vpn-site-resource-create",\r
+        "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 233,\r
+        "y": 190.9999925820157,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "887ebd07.82fca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99a008b4.eb0bc8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 109.57138061523438,\r
+        "y": 43,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "9964126a.58753"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9964126a.58753",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 211.85708618164062,\r
+        "y": 101.23810407798737,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "ba2f1a27.8f7c88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "887ebd07.82fca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 213.23804473876953,\r
+        "y": 362.6666643349454,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "e036c242.ea2d7",\r
+                "8ac28eea.03b2e",\r
+                "bee946ca.5b9488",\r
+                "fa22ed9a.8f597",\r
+                "259c9f6d.05187",\r
+                "1c3377d1.23ec68",\r
+                "33f4194.b4adce6",\r
+                "cd58d769.440f18",\r
+                "50ac8040.e368f",\r
+                "82bd0bd5.564548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ac28eea.03b2e",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to Created",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",\r
+        "comments": "",\r
+        "x": 647.3847961425781,\r
+        "y": 616.6705932617188,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e036c242.ea2d7",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",\r
+        "comments": "",\r
+        "x": 639.2379837036133,\r
+        "y": 511.6668453216553,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "259c9f6d.05187",\r
+        "type": "execute",\r
+        "name": "execute generate-vnf-index",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-index\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 627.5714874267578,\r
+        "y": 461.33342933654785,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4832dc07.c382d4",\r
+        "type": "set",\r
+        "name": "set vnf-index to service data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-index`' />\n",\r
+        "comments": "",\r
+        "x": 638.5715637207031,\r
+        "y": 568.3334331512451,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bee946ca.5b9488",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 642.5713653564453,\r
+        "y": 241.3333559036255,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "b7b01487.9885f8",\r
+                "aecaf676.67f6b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b7b01487.9885f8",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877.2857513427734,\r
+        "y": 236.47617626190186,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "1f5394d7.70124b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f5394d7.70124b",\r
+        "type": "set",\r
+        "name": "set vnf-index=0",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1037.5714569091797,\r
+        "y": 236.47626781463623,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aecaf676.67f6b8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 873.7142906188965,\r
+        "y": 269.76200771331787,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "6e2b33e1.03a57c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd7ad864.5375c8",\r
+        "type": "set",\r
+        "name": "set vnf-index = vnf_length",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",\r
+        "comments": "",\r
+        "x": 1266.571533203125,\r
+        "y": 248.04773330688477,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d9951812.e7fdb8",\r
+        "type": "for",\r
+        "name": "for each existing VNF",\r
+        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1255.0001525878906,\r
+        "y": 283.04770517349243,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "febea1ac.bb0d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e2b33e1.03a57c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1008.4285736083984,\r
+        "y": 271.76197719573975,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "bd7ad864.5375c8",\r
+                "d9951812.e7fdb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "febea1ac.bb0d8",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1648.285888671875,\r
+        "y": 283.61918926239014,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "359b5cad.1078a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "359b5cad.1078a4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1929.571590423584,\r
+        "y": 282.19059467315674,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            [\r
+                "e5d5a5d7.361b48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe823586.a40dc8",\r
+        "type": "comment",\r
+        "name": "make sure this vnf-id doesn't exist already",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1617.4285049438477,\r
+        "y": 247.1905813217163,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fa22ed9a.8f597",\r
+        "type": "set",\r
+        "name": "set new vnf_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",\r
+        "comments": "",\r
+        "x": 599.5714874267578,\r
+        "y": 409.33342599868774,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c3377d1.23ec68",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 586.5714492797852,\r
+        "y": 879.59694480896,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "82bd0bd5.564548",\r
+        "type": "save",\r
+        "name": "save service relationship in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />\n\n\n<!--save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/vpn-resources/vpn-resource/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-resource.vpn-resource-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" /-->",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 649.2382202148438,\r
+        "y": 826.5968379974365,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "33f4194.b4adce6",\r
+        "type": "set",\r
+        "name": "set vnf-index and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-index  + '/vnf-data/'` \" />",\r
+        "comments": "",\r
+        "x": 640.5714797973633,\r
+        "y": 657.5968637466431,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cd58d769.440f18",\r
+        "type": "set",\r
+        "name": "set vnf-request-input.",\r
+        "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",\r
+        "comments": "",\r
+        "x": 605.5711212158203,\r
+        "y": 360.3247985839844,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5d5a5d7.361b48",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",\r
+        "comments": "",\r
+        "x": 2058.1429595947266,\r
+        "y": 333.1906089782715,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b6f6713f.1cb83",\r
+        "type": "comment",\r
+        "name": "Take the parameter names by removing prefix",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1351.5715713500977,\r
+        "y": 336.66667556762695,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a6480f2e.967df",\r
+        "type": "comment",\r
+        "name": "TODO: change AAI models",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 629.1820449829102,\r
+        "y": 726.9742965698242,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "50ac8040.e368f",\r
+        "type": "save",\r
+        "name": "save AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $prop.vnf-index\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 695.545783996582,\r
+        "y": 767.2470808029175,\r
+        "z": "bc55b65a.bac808",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json
new file mode 100644 (file)
index 0000000..654c97b
--- /dev/null
@@ -0,0 +1,433 @@
+[\r
+    {\r
+        "id": "82c84658.77d1d8",\r
+        "type": "method",\r
+        "name": "method vnf-topology-operation-vpn-site-resource-deactivate",\r
+        "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 259,\r
+        "y": 212.99999639671296,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "20631342.a0c9ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d37f40ab.ae426",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 138.5713882446289,\r
+        "y": 49,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "90866c8c.0566b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90866c8c.0566b",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 237.85708618164062,\r
+        "y": 123.23810789268464,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "82c84658.77d1d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20631342.a0c9ec",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 239.23804473876953,\r
+        "y": 384.66666814964265,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "223e8ad6.61f2e6",\r
+                "7a1d8d04.0ea1a4",\r
+                "fb28da85.68b248",\r
+                "638a26a6.3e9618",\r
+                "30cf2c07.d44e14",\r
+                "fbfde082.6174",\r
+                "c6ba194.447c2e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "223e8ad6.61f2e6",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to PendingDelete",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+        "comments": "",\r
+        "x": 647.3849029541016,\r
+        "y": 533.670627951622,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7a1d8d04.0ea1a4",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 573.5716247558594,\r
+        "y": 642.5970582962036,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fb28da85.68b248",\r
+        "type": "set",\r
+        "name": "set vnf-index and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",\r
+        "comments": "",\r
+        "x": 624.5716247558594,\r
+        "y": 489.5968955755234,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "638a26a6.3e9618",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 669.0000610351562,\r
+        "y": 274.00000545661896,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "3f139002.12bae",\r
+                "6579ac8.d79e654",\r
+                "9fa8cca.2d7cf3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9fa8cca.2d7cf3",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 927.9689559936523,\r
+        "y": 235.96876499336213,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "4d9ccf75.fe9af"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d9ccf75.fe9af",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1082.7778434753418,\r
+        "y": 254.88903352897614,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3f139002.12bae",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 921.0000953674316,\r
+        "y": 275.00008651893586,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "4d9ccf75.fe9af"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6579ac8.d79e654",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 914.0005035400391,\r
+        "y": 308.0000903336331,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "4494b904.813828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4494b904.813828",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1061.2700462341309,\r
+        "y": 308.55473539512604,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "2347d15a.1d922e",\r
+                "d97f0a58.4e7db8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2347d15a.1d922e",\r
+        "type": "for",\r
+        "name": "for vidx..service-data.vnfs.vnf_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1307.2861633300781,\r
+        "y": 315.4286558357999,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "ca1a5a9.775eaa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca1a5a9.775eaa8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1526.6357955932617,\r
+        "y": 314.9687359062955,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "66b63707.1820b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66b63707.1820b8",\r
+        "type": "switchNode",\r
+        "name": "switch vnfid found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1680.7153930664062,\r
+        "y": 314.67881796043366,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "ae7ef72d.e51818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae7ef72d.e51818",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1856.6675148010254,\r
+        "y": 314.57150003593415,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "502325a8.6e120c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "502325a8.6e120c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2005.312973022461,\r
+        "y": 302.97913000267,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "1a1e9503.dc6a5b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a1e9503.dc6a5b",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
+        "comments": "",\r
+        "x": 2267.1997680664062,\r
+        "y": 280.3215563027188,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d97f0a58.4e7db8",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.vidx ",\r
+        "xml": "<switch test=\"`$tmp.vidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1250.0000228881836,\r
+        "y": 369.99999353569,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "aa55c60d.624e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa55c60d.624e08",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1405.4286499023438,\r
+        "y": 369.57137701194733,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "d6654813.27fba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6654813.27fba8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1550.8573913574219,\r
+        "y": 369.7143146721646,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "30cf2c07.d44e14",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 618.0000762939453,\r
+        "y": 382.88902044296265,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "d1af1362.431e7",\r
+                "a3563b5d.54f858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1af1362.431e7",\r
+        "type": "outcome",\r
+        "name": "outcome Active",\r
+        "xml": "<outcome value='Active'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 863.8333702087402,\r
+        "y": 384.00011825561523,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "e723a3c3.7cd85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e723a3c3.7cd85",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1077.139762878418,\r
+        "y": 393.32530784606934,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3563b5d.54f858",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 841.8333892822266,\r
+        "y": 434.00012969970703,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            [\r
+                "5cde8b39.a2f424"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5cde8b39.a2f424",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+        "comments": "",\r
+        "x": 1001.3331565856934,\r
+        "y": 437.0001287460327,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fbfde082.6174",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
+        "comments": "",\r
+        "x": 627.0065612792969,\r
+        "y": 442.010435461998,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c6ba194.447c2e8",\r
+        "type": "save",\r
+        "name": "update AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 669.0064239501953,\r
+        "y": 588.0105141401291,\r
+        "z": "655c6ddc.e1d044",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json
new file mode 100644 (file)
index 0000000..3d26891
--- /dev/null
@@ -0,0 +1,569 @@
+[\r
+    {\r
+        "id": "eafcb830.49a558",\r
+        "type": "method",\r
+        "name": "method vnf-topology-operation-vpn-site-resource-delete",\r
+        "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 207,\r
+        "y": 214,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "d02b15b4.dd4488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0a64a79.788248",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 151.57138061523438,\r
+        "y": 38,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "188a7052.71591"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "188a7052.71591",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 226.85708618164062,\r
+        "y": 78.23811149597168,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "eafcb830.49a558"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2640aa8.7edda8",\r
+        "type": "comment",\r
+        "name": "site-vnf-topology-operation-delete",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 600.9162979125977,\r
+        "y": 111.58639907836914,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d02b15b4.dd4488",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 228.23804473876953,\r
+        "y": 339.6666717529297,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "ac2e49a1.5e8568",\r
+                "4d83bd7.fa4f844",\r
+                "8cb0635e.d8e2c",\r
+                "faf06bed.cf0a38",\r
+                "c3cf9f4.9560f6",\r
+                "5c51b14f.3f60b",\r
+                "84b98584.0b5d68",\r
+                "64b20017.f4e26",\r
+                "c1ccb47b.c48ef8",\r
+                "dfa19665.762578",\r
+                "f3ab3fd1.f188e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "faf06bed.cf0a38",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 689.6660842895508,\r
+        "y": 273.26117038726807,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "7bb61b60.8ccfe4",\r
+                "6a78f7f6.d96ae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7bb61b60.8ccfe4",\r
+        "type": "other",\r
+        "name": "outcome Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 954.3883972167969,\r
+        "y": 255.81679248809814,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "ded5f144.4823a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ded5f144.4823a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1135.3882675170898,\r
+        "y": 250.81667041778564,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6a78f7f6.d96ae8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.8883972167969,\r
+        "y": 307.8167552947998,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "4b9e2f73.508cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b9e2f73.508cd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1111.8881034851074,\r
+        "y": 307.8167533874512,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "247799a9.6130f6",\r
+                "84b938cb.78bee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84b938cb.78bee8",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.nidx ",\r
+        "xml": "<switch test=\"`$tmp.nidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1286.8882751464844,\r
+        "y": 326.8166751861572,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "7a17688b.c98ab8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cb0635e.d8e2c",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 660.0550842285156,\r
+        "y": 347.70563411712646,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "6f0effe.88561",\r
+                "4d0008ab.c847c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f0effe.88561",\r
+        "type": "outcome",\r
+        "name": "outcome PendingDelete",\r
+        "xml": "<outcome value='PendingDelete'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 936.888427734375,\r
+        "y": 350.8167338371277,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "1d4d444b.bf117c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d0008ab.c847c8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897.8884124755859,\r
+        "y": 396.816782951355,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "640a50b6.3e86d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "640a50b6.3e86d",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+        "comments": "",\r
+        "x": 1046.388126373291,\r
+        "y": 395.81676292419434,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c3cf9f4.9560f6",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id",\r
+        "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 625.8884010314941,\r
+        "y": 228.81676387786865,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "6f94c17f.e94a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f94c17f.e94a6",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 823.8884658813477,\r
+        "y": 218.81677627563477,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "723f2fa7.6d1e3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "723f2fa7.6d1e3",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-request-input.vnf-input-parameters.name is a required input\" />\n",\r
+        "comments": "",\r
+        "x": 990.3883514404297,\r
+        "y": 215.81677055358887,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5c51b14f.3f60b",\r
+        "type": "execute",\r
+        "name": "execute requiredParameters",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 683.3884582519531,\r
+        "y": 168.81676292419434,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "247799a9.6130f6",\r
+        "type": "for",\r
+        "name": "for nidx..service-data.vnfs.vnf[]",\r
+        "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1347.3882789611816,\r
+        "y": 262.81667137145996,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "b01b8e2f.7dbb9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b01b8e2f.7dbb9",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1603.388298034668,\r
+        "y": 262.81667137145996,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "357169.84af7e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "357169.84af7e98",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1779.8883514404297,\r
+        "y": 265.81667137145996,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "38f16832.2c5d68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38f16832.2c5d68",\r
+        "type": "set",\r
+        "name": "set tmp.nidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",\r
+        "comments": "",\r
+        "x": 1946.8883666992188,\r
+        "y": 326.81667137145996,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fc674990.6f1398",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1592.3882904052734,\r
+        "y": 326.8166751861572,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7a17688b.c98ab8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1454.8882904052734,\r
+        "y": 326.8166751861572,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "fc674990.6f1398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac2e49a1.5e8568",\r
+        "type": "set",\r
+        "name": "set vnfId and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",\r
+        "comments": "",\r
+        "x": 646.9051055908203,\r
+        "y": 562.333676815033,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4d83bd7.fa4f844",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 603.0162582397461,\r
+        "y": 639.8892359733582,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1d4d444b.bf117c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1132.1947860717773,\r
+        "y": 358.141939163208,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "84b98584.0b5d68",\r
+        "type": "set",\r
+        "name": "set prop.vnfNewidx",\r
+        "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 629.0000762939453,\r
+        "y": 398.00006914138794,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "64b20017.f4e26",\r
+        "type": "for",\r
+        "name": "for lidx..service-data.vnfs.vnf[]",\r
+        "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653.0000610351562,\r
+        "y": 440.00006771087646,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "ac122a7c.345458"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac122a7c.345458",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 914.0001373291016,\r
+        "y": 444.000102519989,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "7381e65e.fc3b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7381e65e.fc3b68",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1106.0000839233398,\r
+        "y": 453.0001468658447,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "61719a57.800f34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "61719a57.800f34",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1292.000099182129,\r
+        "y": 437.0000333786011,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "9df0dc24.7346c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9df0dc24.7346c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1443.0000228881836,\r
+        "y": 438.0000696182251,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            [\r
+                "c661d6a.46dd528",\r
+                "142b6671.1e430a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c661d6a.46dd528",\r
+        "type": "set",\r
+        "name": "set  vnf data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",\r
+        "comments": "",\r
+        "x": 1610.0001907348633,\r
+        "y": 412.000253200531,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "142b6671.1e430a",\r
+        "type": "set",\r
+        "name": "set prop.vnfNewidx",\r
+        "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",\r
+        "comments": "",\r
+        "x": 1630.0001182556152,\r
+        "y": 469.00018882751465,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c1ccb47b.c48ef8",\r
+        "type": "set",\r
+        "name": "set new vnf length",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",\r
+        "comments": "",\r
+        "x": 621.1014747619629,\r
+        "y": 483.80442094802856,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfa19665.762578",\r
+        "type": "set",\r
+        "name": "Remove vnf from ServiceData",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",\r
+        "comments": "",\r
+        "x": 651.000244140625,\r
+        "y": 522.0002040863037,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3ab3fd1.f188e",\r
+        "type": "save",\r
+        "name": "delete AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 708.0066375732422,\r
+        "y": 599.0106163024902,\r
+        "z": "db08cdbb.446ef",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 6dbe24b..cabcce5 100644 (file)
                             <outcome value='ActivateSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='ActivateSDWANVpnInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ActivateSDWANSiteInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' ></call>\r
                             </outcome>\r
                             <outcome value='DeactivateSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='DeactivateSDWANVpnInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='DeactivateSDWANSiteInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' ></call>\r
                             </outcome>\r
                             <outcome value='CreateSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='CreateSDWANVpnInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='CreateSDWANSiteInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
                             <outcome value='DeleteSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='DeleteSDWANVpnInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='DeleteSDWANSiteInstance'>\r
+                                <block atomic="true">\r
+                                    <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' ></call>\r
+                                </block>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
             </return>\r
         </block>\r
     </method>\r
-</service-logic>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml
new file mode 100644 (file)
index 0000000..32fa9b2
--- /dev/null
@@ -0,0 +1,66 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>\r
+    <method rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value='0'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <block>\r
+                                <switch test="`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                                    <outcome value='true'>\r
+                                        <set>\r
+                                            <parameter name='tmp.vidx' value='`$vidx`' />\r
+                                            <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\r
+                                        </set>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </block>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
+                <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` " />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\r
+            </set>\r
+            <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $vnfId" >\r
+                <parameter name="orchestration-status" value="Active" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </update>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml
new file mode 100644 (file)
index 0000000..9fbcd8f
--- /dev/null
@@ -0,0 +1,86 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>\r
+    <method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value=''>\r
+                    <set>\r
+                        <parameter name='vnf-index' value='0' />\r
+                    </set>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\r
+                                <outcome value='true'>\r
+                                    <return status='failure'>\r
+                                        <parameter name='ack-final' value='Y'/>\r
+                                        <parameter name="error-code" value="500" />\r
+                                        <parameter name="error-message" value="`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\r
+      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                                    </return>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\r
+            </set>\r
+            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\r
+                <parameter name="ctx-destination" value="prop.vnf-index"/>\r
+            </execute>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$prop.vnf-index`' />\r
+                <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-index  + '/vnf-data/'` " />\r
+            </set>\r
+            <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $prop.vnf-index" >\r
+                <parameter name="orchestration-status" value="create" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </save>\r
+            <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \r
+      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \r
+      force="true" pfx="tmp.AnAI-data">\r
+                <parameter name="relationship-list.relationship[0].related-to" value="generic-vnf" />\r
+                <parameter name="relationship-list.relationship[0].related-link" value="`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="generic-vnf.vnf-id" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.vnf-index`" />\r
+                <!--save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \r
+      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \r
+      force="true" pfx="tmp.AnAI-data"><parameter name="relationship-list.relationship[0].related-to" value="vpn-resource" /><parameter name="relationship-list.relationship[0].related-link" value="`'/network/vpn-resources/vpn-resource/' + $prop.vnf-index`" /><parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="vpn-resource.vpn-resource-id" /><parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.vnf-index`" /-->\r
+            </save>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml
new file mode 100644 (file)
index 0000000..95c6707
--- /dev/null
@@ -0,0 +1,89 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>\r
+    <method rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value='0'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <block>\r
+                                <switch test="`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                                    <outcome value='true'>\r
+                                        <block atomic="true">\r
+                                            <set>\r
+                                                <parameter name='tmp.vidx' value='`$vidx`' />\r
+                                                <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </block>\r
+                        </for>\r
+                        <switch test="`$tmp.vidx`">\r
+                            <outcome value=''>\r
+                                <return status='failure'>\r
+                                    <parameter name='ack-final' value='Y'/>\r
+                                    <parameter name="error-code" value="500" />\r
+                                    <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                                </return>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\r
+                <outcome value='Active'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
+                <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` " />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\r
+            </set>\r
+            <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $vnfId" >\r
+                <parameter name="orchestration-status" value="PendingDelete" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </update>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml
new file mode 100644 (file)
index 0000000..41bab8f
--- /dev/null
@@ -0,0 +1,107 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>\r
+    <method rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync'>\r
+        <block atomic="true">\r
+            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\r
+                <parameter name="vnf-topology-operation-input.vnf-information.vnf-id" value="$vnf-topology-operation-input.vnf-information.vnf-id"/>\r
+            </execute>\r
+            <switch test="`$vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-request-input.vnf-input-parameters.name is a required input" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <switch test="`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                                <outcome value='true'>\r
+                                    <set>\r
+                                        <parameter name='tmp.nidx' value='`$nidx`' />\r
+                                        <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\r
+                                    </set>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                        <switch test="`$tmp.nidx`">\r
+                            <outcome value=''>\r
+                                <return status='failure'>\r
+                                    <parameter name='ack-final' value='Y'/>\r
+                                    <parameter name="error-code" value="500" />\r
+                                    <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                                </return>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\r
+                <outcome value='PendingDelete'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <parameter name='prop.vnfidxLen' value='`0`' />\r
+            </set>\r
+            <for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                <block atomic="true">\r
+                    <switch test="`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                        <outcome value='false'>\r
+                            <block atomic="true">\r
+                                <set>\r
+                                    <parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\r
+                                    <parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\r
+                                </set>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name="service-data.vnfs.vnf_length" value='`$prop.vnfidxLen`'/>\r
+            </set>\r
+            <set>\r
+                <parameter name="service-data.vnfs.vnf[$prop.vnfidxLen]." value=""/>\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
+                <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'\r
+ + $vnf-topology-operation-input.service-information.service-instance-id\r
+ + '/service-data/service-topology/'` " />\r
+            </set>\r
+            <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $vnfId" >\r
+                <parameter name="orchestration-status" value="PendingDelete" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </delete>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file