Merge "Testing changes for Refactor UEB Listener"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
1 [
2   {
3     "id": "c91e9b10.259838",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 96,
8     "y": 42.99996852874756,
9     "z": "ea913b4d.eb8638",
10     "wires": [
11       [
12         "38533cf9.2a1214"
13       ]
14     ]
15   },
16   {
17     "id": "38533cf9.2a1214",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API 1.2.1-SNAPSHOT",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "1.2.1-SNAPSHOT",
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='1.2.1-SNAPSHOT'>",
24     "outputs": 1,
25     "x": 282.00000381469727,
26     "y": 114.99998569488525,
27     "z": "ea913b4d.eb8638",
28     "wires": [
29       [
30         "39d16e55.9c1d22"
31       ]
32     ]
33   },
34   {
35     "id": "39d16e55.9c1d22",
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": 270.0001220703125,
42     "y": 202.99996852874756,
43     "z": "ea913b4d.eb8638",
44     "wires": [
45       [
46         "4519115b.490c9"
47       ]
48     ]
49   },
50   {
51     "id": "4519115b.490c9",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 444.00001525878906,
59     "y": 311.0000276565552,
60     "z": "ea913b4d.eb8638",
61     "wires": [
62       [
63         "dfb7f2ca.a1635",
64         "d89e17e8.bd1698",
65         "d5e8e338.ac641",
66         "604990bf.defe7",
67         "b18a2025.dcb34",
68         "9bb8612f.5c571",
69         "c3e1900f.1a37e",
70         "18e80a8f.69f565"
71       ]
72     ]
73   },
74   {
75     "id": "dfb7f2ca.a1635",
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": 902.3889007568359,
82     "y": 59.99996852874756,
83     "z": "ea913b4d.eb8638",
84     "wires": [
85       [
86         
87       ]
88     ]
89   },
90   {
91     "id": "d89e17e8.bd1698",
92     "type": "record",
93     "name": "record",
94     "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",
95     "comments": "",
96     "outputs": 1,
97     "x": 702.5555992126465,
98     "y": 113.77782154083252,
99     "z": "ea913b4d.eb8638",
100     "wires": [
101       [
102         
103       ]
104     ]
105   },
106   {
107     "id": "d5e8e338.ac641",
108     "type": "set",
109     "name": "set networkId and network-object-path",
110     "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/'` \" />",
111     "comments": "",
112     "x": 793.5556488037109,
113     "y": 302.3132629394531,
114     "z": "ea913b4d.eb8638",
115     "wires": [
116       
117     ]
118   },
119   {
120     "id": "604990bf.defe7",
121     "type": "returnSuccess",
122     "name": "return success",
123     "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",
124     "comments": "",
125     "x": 715.3334503173828,
126     "y": 491.8686828613281,
127     "z": "ea913b4d.eb8638",
128     "wires": [
129       
130     ]
131   },
132   {
133     "id": "b18a2025.dcb34",
134     "type": "set",
135     "name": "set network-level-oper-status",
136     "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$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[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
137     "comments": "",
138     "x": 760.4445648193359,
139     "y": 363.53543758392334,
140     "z": "ea913b4d.eb8638",
141     "wires": [
142       
143     ]
144   },
145   {
146     "id": "9bb8612f.5c571",
147     "type": "execute",
148     "name": "execute Properties",
149     "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",
150     "comments": "",
151     "outputs": 1,
152     "x": 734.8577041625977,
153     "y": 166.77785778045654,
154     "z": "ea913b4d.eb8638",
155     "wires": [
156       [
157         
158       ]
159     ]
160   },
161   {
162     "id": "c3e1900f.1a37e",
163     "type": "update",
164     "name": "update SOTN Connectivity status to AAI",
165     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n      key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='configuration-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />",
166     "comments": "",
167     "outputs": 1,
168     "x": 794.6631469726562,
169     "y": 423.23862648010254,
170     "z": "ea913b4d.eb8638",
171     "wires": [
172       [
173         
174       ]
175     ]
176   },
177   {
178     "id": "18e80a8f.69f565",
179     "type": "set",
180     "name": "set network in service-data",
181     "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
182     "comments": "",
183     "x": 757.0001220703125,
184     "y": 234.09102249145508,
185     "z": "ea913b4d.eb8638",
186     "wires": [
187       
188     ]
189   },
190   {
191     "id": "bd8b5b43.6b8768",
192     "type": "comment",
193     "name": "TODO MP2MP",
194     "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
195     "comments": "",
196     "x": 982.03125,
197     "y": 157.03124904632568,
198     "z": "ea913b4d.eb8638",
199     "wires": [
200       
201     ]
202   }
203 ]