125dbc936728be42339967f79c1ae553b75eb37b
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
1 [
2   {
3     "id": "92bde18b.90f51",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 106.00390625,
8     "y": 51.00390625,
9     "z": "54170a80.42c614",
10     "wires": [
11       [
12         "9686f296.2c8dd"
13       ]
14     ]
15   },
16   {
17     "id": "9686f296.2c8dd",
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": 292.00391006469727,
26     "y": 123.0039234161377,
27     "z": "54170a80.42c614",
28     "wires": [
29       [
30         "5c1e48b9.633c88"
31       ]
32     ]
33   },
34   {
35     "id": "5c1e48b9.633c88",
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": 280.0040283203125,
42     "y": 211.00390625,
43     "z": "54170a80.42c614",
44     "wires": [
45       [
46         "ccaf1419.198158"
47       ]
48     ]
49   },
50   {
51     "id": "ccaf1419.198158",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 454.00392150878906,
59     "y": 319.0039653778076,
60     "z": "54170a80.42c614",
61     "wires": [
62       [
63         "70aaa20a.67efcc",
64         "b5a2c023.8548a",
65         "d1073f16.8ed91",
66         "78851dc5.db0384",
67         "4ca1d850.ac9f28",
68         "d2a509fb.abaf98",
69         "e789c0c0.571e6",
70         "7c9d2cd5.85be04"
71       ]
72     ]
73   },
74   {
75     "id": "70aaa20a.67efcc",
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": 912.3928070068359,
82     "y": 68.00390625,
83     "z": "54170a80.42c614",
84     "wires": [
85       [
86         
87       ]
88     ]
89   },
90   {
91     "id": "b5a2c023.8548a",
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": 712.5595054626465,
98     "y": 121.78175926208496,
99     "z": "54170a80.42c614",
100     "wires": [
101       [
102         
103       ]
104     ]
105   },
106   {
107     "id": "d1073f16.8ed91",
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": 803.5595550537109,
113     "y": 310.31720066070557,
114     "z": "54170a80.42c614",
115     "wires": [
116       
117     ]
118   },
119   {
120     "id": "78851dc5.db0384",
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": 725.3373565673828,
126     "y": 499.87262058258057,
127     "z": "54170a80.42c614",
128     "wires": [
129       
130     ]
131   },
132   {
133     "id": "4ca1d850.ac9f28",
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": 770.4484710693359,
139     "y": 371.5393753051758,
140     "z": "54170a80.42c614",
141     "wires": [
142       
143     ]
144   },
145   {
146     "id": "d2a509fb.abaf98",
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": 744.8616104125977,
153     "y": 174.78179550170898,
154     "z": "54170a80.42c614",
155     "wires": [
156       [
157         
158       ]
159     ]
160   },
161   {
162     "id": "e789c0c0.571e6",
163     "type": "update",
164     "name": "update SOTN Connectivity status to AAI",
165     "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' />",
166     "comments": "",
167     "outputs": 1,
168     "x": 804.6670532226562,
169     "y": 431.242564201355,
170     "z": "54170a80.42c614",
171     "wires": [
172       [
173         
174       ]
175     ]
176   },
177   {
178     "id": "7c9d2cd5.85be04",
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": 767.0040283203125,
184     "y": 242.09496021270752,
185     "z": "54170a80.42c614",
186     "wires": [
187       
188     ]
189   },
190   {
191     "id": "ccc44411.171148",
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": 992.03515625,
197     "y": 165.03518676757812,
198     "z": "54170a80.42c614",
199     "wires": [
200       
201     ]
202   }
203 ]