aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json173
1 files changed, 173 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
new file mode 100644
index 00000000..2f29f7da
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
@@ -0,0 +1,173 @@
+[
+ {
+ "id": "e2842db5.a9071",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.00390625,
+ "y": 70.00390625,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "d0423637.689c18"
+ ]
+ ]
+ },
+ {
+ "id": "d0423637.689c18",
+ "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": 319.00391006469727,
+ "y": 142.0039234161377,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "8964c247.35272"
+ ]
+ ]
+ },
+ {
+ "id": "8964c247.35272",
+ "type": "method",
+ "name": "method sotn-network-topology-operation-delete",
+ "xml": "<method rpc='sotn-network-topology-operation-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 307.0040283203125,
+ "y": 230.00390625,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "7ece957c.81e36c"
+ ]
+ ]
+ },
+ {
+ "id": "7ece957c.81e36c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 477.44836044311523,
+ "y": 292.44836235046387,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "1ccc938f.2f224c",
+ "a9d1874f.281198",
+ "bebcb7e3.f95d48",
+ "f957f73b.5f1c98",
+ "77e06509.a268cc",
+ "ed0dab58.6e6938",
+ "53d6d08a.6aeb8"
+ ]
+ ]
+ },
+ {
+ "id": "1ccc938f.2f224c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.3928070068359,
+ "y": 87.00390625,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+
+ ]
+ ]
+ },
+ {
+ "id": "a9d1874f.281198",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sotn-network-topology-operation-delete\"/>\n<parameter name=\"field3\" value=\"SOTN-Delete\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 752.7816314697266,
+ "y": 153.33727836608887,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+
+ ]
+ ]
+ },
+ {
+ "id": "bebcb7e3.f95d48",
+ "type": "set",
+ "name": "set networkId and network-object-path",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+ "comments": "",
+ "x": 837.448314666748,
+ "y": 401.4281978607178,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "f957f73b.5f1c98",
+ "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": 766.5595626831055,
+ "y": 464.9835858345032,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "ed0dab58.6e6938",
+ "type": "set",
+ "name": "set new network length",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
+ "comments": "",
+ "x": 796.0809860229492,
+ "y": 278.89910793304443,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "77e06509.a268cc",
+ "type": "set",
+ "name": "Remove networks from ServiceData",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 836.7051429748535,
+ "y": 326.8670496940613,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "53d6d08a.6aeb8",
+ "type": "delete",
+ "name": "delete SOTN VPNInstance connectivity in AAI",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='connectivity' \n key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 874.6364860534668,
+ "y": 220.01019191741943,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+
+ ]
+ ]
+ }
+]