aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.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-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json185
1 files changed, 185 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
new file mode 100644
index 00000000..0dac5d39
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
@@ -0,0 +1,185 @@
+[
+ {
+ "id": "bb559316.43abe",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 169,
+ "y": 76,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "842a594e.4731d8"
+ ]
+ ]
+ },
+ {
+ "id": "842a594e.4731d8",
+ "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": 355.00000381469727,
+ "y": 148.0000171661377,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "f5dc7555.cee5a8"
+ ]
+ ]
+ },
+ {
+ "id": "f5dc7555.cee5a8",
+ "type": "method",
+ "name": "method sotn-network-topology-operation-activate",
+ "xml": "<method rpc='sotn-network-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 343.0001220703125,
+ "y": 236,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "48dc382f.96bcc8"
+ ]
+ ]
+ },
+ {
+ "id": "48dc382f.96bcc8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 517.0000152587891,
+ "y": 344.0000591278076,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "40528bdc.5b5f94",
+ "6d718115.bc2bd",
+ "fba83ea2.6feb9",
+ "5f3aca59.c0fbb4",
+ "1643498b.4256a6",
+ "afd35eb.c4071a",
+ "f6449001.6bbfb",
+ "77ac16a7.2846a8"
+ ]
+ ]
+ },
+ {
+ "id": "40528bdc.5b5f94",
+ "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": 975.3889007568359,
+ "y": 93,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6d718115.bc2bd",
+ "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-activate\"/>\n<parameter name=\"field3\" value=\"SOTN-Activate\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 775.5555992126465,
+ "y": 146.77785301208496,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fba83ea2.6feb9",
+ "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=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "x": 866.5556488037109,
+ "y": 335.31329441070557,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "5f3aca59.c0fbb4",
+ "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": 788.3334503173828,
+ "y": 524.8687143325806,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "1643498b.4256a6",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 833.4445648193359,
+ "y": 396.5354690551758,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "afd35eb.c4071a",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.8577041625977,
+ "y": 199.77788925170898,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6449001.6bbfb",
+ "type": "update",
+ "name": "update SOTN Connectivity status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='connectivity-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 867.6631469726562,
+ "y": 456.238657951355,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77ac16a7.2846a8",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
+ "comments": "",
+ "x": 830.0001220703125,
+ "y": 267.0910539627075,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "96de6db0.b05dc",
+ "type": "comment",
+ "name": "TODO MP2MP",
+ "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
+ "comments": "",
+ "x": 1055.03125,
+ "y": 190.03128051757812,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ }
+]