Allow sub directories for graphs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
1 [
2   {
3     "id": "bb559316.43abe",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 169,
8     "y": 76,
9     "z": "fd297d2b.31cb1",
10     "wires": [
11       [
12         "842a594e.4731d8"
13       ]
14     ]
15   },
16   {
17     "id": "842a594e.4731d8",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "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}'>",
24     "outputs": 1,
25     "x": 355.00000381469727,
26     "y": 148.0000171661377,
27     "z": "fd297d2b.31cb1",
28     "wires": [
29       [
30         "f5dc7555.cee5a8"
31       ]
32     ]
33   },
34   {
35     "id": "f5dc7555.cee5a8",
36     "type": "method",
37     "name": "method sotn-network-topology-operation-activate",
38     "xml": "<method rpc='sotn-network-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 343.0001220703125,
42     "y": 236,
43     "z": "fd297d2b.31cb1",
44     "wires": [
45       [
46         "48dc382f.96bcc8"
47       ]
48     ]
49   },
50   {
51     "id": "48dc382f.96bcc8",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 517.0000152587891,
59     "y": 344.0000591278076,
60     "z": "fd297d2b.31cb1",
61     "wires": [
62       [
63         "40528bdc.5b5f94",
64         "6d718115.bc2bd",
65         "fba83ea2.6feb9",
66         "5f3aca59.c0fbb4",
67         "1643498b.4256a6",
68         "afd35eb.c4071a",
69         "f6449001.6bbfb",
70         "77ac16a7.2846a8"
71       ]
72     ]
73   },
74   {
75     "id": "40528bdc.5b5f94",
76     "type": "call",
77     "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
78     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
79     "comments": "",
80     "outputs": 1,
81     "x": 975.3889007568359,
82     "y": 93,
83     "z": "fd297d2b.31cb1",
84     "wires": [
85       []
86     ]
87   },
88   {
89     "id": "6d718115.bc2bd",
90     "type": "record",
91     "name": "record",
92     "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",
93     "comments": "",
94     "outputs": 1,
95     "x": 775.5555992126465,
96     "y": 146.77785301208496,
97     "z": "fd297d2b.31cb1",
98     "wires": [
99       []
100     ]
101   },
102   {
103     "id": "fba83ea2.6feb9",
104     "type": "set",
105     "name": "set networkId and network-object-path",
106     "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/'` \" />",
107     "comments": "",
108     "x": 866.5556488037109,
109     "y": 335.31329441070557,
110     "z": "fd297d2b.31cb1",
111     "wires": []
112   },
113   {
114     "id": "5f3aca59.c0fbb4",
115     "type": "returnSuccess",
116     "name": "return success",
117     "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",
118     "comments": "",
119     "x": 788.3334503173828,
120     "y": 524.8687143325806,
121     "z": "fd297d2b.31cb1",
122     "wires": []
123   },
124   {
125     "id": "1643498b.4256a6",
126     "type": "set",
127     "name": "set network-level-oper-status",
128     "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`' />",
129     "comments": "",
130     "x": 833.4445648193359,
131     "y": 396.5354690551758,
132     "z": "fd297d2b.31cb1",
133     "wires": []
134   },
135   {
136     "id": "afd35eb.c4071a",
137     "type": "execute",
138     "name": "execute Properties",
139     "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",
140     "comments": "",
141     "outputs": 1,
142     "x": 807.8577041625977,
143     "y": 199.77788925170898,
144     "z": "fd297d2b.31cb1",
145     "wires": [
146       []
147     ]
148   },
149   {
150     "id": "f6449001.6bbfb",
151     "type": "update",
152     "name": "update SOTN Connectivity status to AAI",
153     "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' />",
154     "comments": "",
155     "outputs": 1,
156     "x": 867.6631469726562,
157     "y": 456.238657951355,
158     "z": "fd297d2b.31cb1",
159     "wires": [
160       []
161     ]
162   },
163   {
164     "id": "77ac16a7.2846a8",
165     "type": "set",
166     "name": "set network in service-data",
167     "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.`' />",
168     "comments": "",
169     "x": 830.0001220703125,
170     "y": 267.0910539627075,
171     "z": "fd297d2b.31cb1",
172     "wires": []
173   },
174   {
175     "id": "96de6db0.b05dc",
176     "type": "comment",
177     "name": "TODO MP2MP",
178     "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
179     "comments": "",
180     "x": 1055.03125,
181     "y": 190.03128051757812,
182     "z": "fd297d2b.31cb1",
183     "wires": []
184   }
185 ]