Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_security-zone-topology-operation-create.json
1 [
2     {
3         "id": "b6f76cf0.bed9d",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 295,
8         "y": 190,
9         "z": "1afa105.0a3f0f",
10         "wires": [
11             [
12                 "ff3a2e96.20279"
13             ]
14         ]
15     },
16     {
17         "id": "ff3a2e96.20279",
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": 391.2380790710449,
26         "y": 250.95239067077637,
27         "z": "1afa105.0a3f0f",
28         "wires": [
29             [
30                 "b753df27.1ee1e"
31             ]
32         ]
33     },
34     {
35         "id": "b753df27.1ee1e",
36         "type": "method",
37         "name": "security-zone-topology-operation-create",
38         "xml": "<method rpc='security-zone-topology-operation-create' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 437.15485763549805,
42         "y": 286.1904458999634,
43         "z": "1afa105.0a3f0f",
44         "wires": [
45             [
46                 "3d5f9815.bb72d8"
47             ]
48         ]
49     },
50     {
51         "id": "3d5f9815.bb72d8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 345.47619247436523,
59         "y": 429.5237879753113,
60         "z": "1afa105.0a3f0f",
61         "wires": [
62             [
63                 "bd924d4b.6ac3d",
64                 "58426f57.d9671",
65                 "87dd9628.4b8e08",
66                 "24e1c2bf.f38e3e",
67                 "56c65e21.0c536",
68                 "42ea3bdc.05eb14",
69                 "ad98be46.853ca",
70                 "9549d5d.4d0ae28",
71                 "7db0224a.ddf40c",
72                 "c1426d52.6c3f3",
73                 "8fad2375.b2e97"
74             ]
75         ]
76     },
77     {
78         "id": "58426f57.d9671",
79         "type": "returnSuccess",
80         "name": "return success",
81         "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",
82         "comments": "",
83         "x": 612.0001106262207,
84         "y": 1099.2145080566406,
85         "z": "1afa105.0a3f0f",
86         "wires": []
87     },
88     {
89         "id": "bd924d4b.6ac3d",
90         "type": "set",
91         "name": "set output to api handler",
92         "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
93         "comments": "",
94         "x": 640.7540245056152,
95         "y": 1063.3370542526245,
96         "z": "1afa105.0a3f0f",
97         "wires": []
98     },
99     {
100         "id": "c1426d52.6c3f3",
101         "type": "set",
102         "name": "set allotted-resource-oper-status",
103         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$security-zone-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
104         "comments": "",
105         "x": 651.7542190551758,
106         "y": 810.0514001846313,
107         "z": "1afa105.0a3f0f",
108         "wires": []
109     },
110     {
111         "id": "24e1c2bf.f38e3e",
112         "type": "set",
113         "name": "set tmp.ar.self-link",
114         "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n",
115         "comments": "",
116         "x": 607.7380638122559,
117         "y": 403.33332538604736,
118         "z": "1afa105.0a3f0f",
119         "wires": []
120     },
121     {
122         "id": "87dd9628.4b8e08",
123         "type": "set",
124         "name": "set tmp.ar.allotted-resource-id,etc",
125         "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
126         "comments": "",
127         "x": 654.9973258972168,
128         "y": 369.59259128570557,
129         "z": "1afa105.0a3f0f",
130         "wires": []
131     },
132     {
133         "id": "56c65e21.0c536",
134         "type": "execute",
135         "name": "execute Properties",
136         "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",
137         "comments": "",
138         "outputs": 1,
139         "x": 613.9934196472168,
140         "y": 439.23152446746826,
141         "z": "1afa105.0a3f0f",
142         "wires": [
143             []
144         ]
145     },
146     {
147         "id": "ad98be46.853ca",
148         "type": "execute",
149         "name": "execute RestApiCallNode - Get AR by id",
150         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
151         "comments": "",
152         "outputs": 1,
153         "x": 676.5187530517578,
154         "y": 600.4594917297363,
155         "z": "1afa105.0a3f0f",
156         "wires": [
157             [
158                 "26a7a122.8ca35e",
159                 "eef0e4d0.faeba8"
160             ]
161         ]
162     },
163     {
164         "id": "42ea3bdc.05eb14",
165         "type": "execute",
166         "name": "generate allotted-resource url",
167         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.sz-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
168         "comments": "",
169         "outputs": 1,
170         "x": 642.0648536682129,
171         "y": 499.0172290802002,
172         "z": "1afa105.0a3f0f",
173         "wires": [
174             []
175         ]
176     },
177     {
178         "id": "26a7a122.8ca35e",
179         "type": "success",
180         "name": "success",
181         "xml": "<outcome value='success'>\n",
182         "comments": "",
183         "outputs": 1,
184         "x": 933.8148918151855,
185         "y": 599.2672522068024,
186         "z": "1afa105.0a3f0f",
187         "wires": [
188             [
189                 "ba2d298f.ee9da8"
190             ]
191         ]
192     },
193     {
194         "id": "9549d5d.4d0ae28",
195         "type": "execute",
196         "name": "execute RestApiCallNode - PUT AR by id",
197         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sz.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
198         "comments": "",
199         "outputs": 1,
200         "x": 684.5293121337891,
201         "y": 953.4341316223145,
202         "z": "1afa105.0a3f0f",
203         "wires": [
204             [
205                 "c81ee454.030d28",
206                 "6308f6ba.6c5ee8",
207                 "f6e148d1.5bbbc8"
208             ]
209         ]
210     },
211     {
212         "id": "c81ee454.030d28",
213         "type": "not-found",
214         "name": "not-found",
215         "xml": "<outcome value='not-found'>\n",
216         "comments": "",
217         "outputs": 1,
218         "x": 954.837329864502,
219         "y": 1006.432332418859,
220         "z": "1afa105.0a3f0f",
221         "wires": [
222             [
223                 "a2f954df.7d6a08"
224             ]
225         ]
226     },
227     {
228         "id": "6308f6ba.6c5ee8",
229         "type": "failure",
230         "name": "failure",
231         "xml": "<outcome value='failure'>\n",
232         "comments": "",
233         "outputs": 1,
234         "x": 945.8373794555664,
235         "y": 974.9323581680655,
236         "z": "1afa105.0a3f0f",
237         "wires": [
238             [
239                 "a2f954df.7d6a08"
240             ]
241         ]
242     },
243     {
244         "id": "f6e148d1.5bbbc8",
245         "type": "success",
246         "name": "success",
247         "xml": "<outcome value='success'>\n",
248         "comments": "",
249         "outputs": 1,
250         "x": 949.5874176025391,
251         "y": 945.2894630432129,
252         "z": "1afa105.0a3f0f",
253         "wires": [
254             [
255                 "956bdde7.54a34"
256             ]
257         ]
258     },
259     {
260         "id": "a2f954df.7d6a08",
261         "type": "returnFailure",
262         "name": "return failure",
263         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for security-zone-allotted-resource\" />\n",
264         "comments": "",
265         "x": 1115.587417602539,
266         "y": 975.6823820099235,
267         "z": "1afa105.0a3f0f",
268         "wires": []
269     },
270     {
271         "id": "ba2d298f.ee9da8",
272         "type": "block",
273         "name": "block: atomic",
274         "xml": "<block atomic=\"true\">\n",
275         "atomic": "false",
276         "comments": "",
277         "outputs": 1,
278         "x": 1114.8148460388184,
279         "y": 599.7672016620636,
280         "z": "1afa105.0a3f0f",
281         "wires": [
282             [
283                 "f6b8a443.ce37c8",
284                 "7f9a9607.9deb78"
285             ]
286         ]
287     },
288     {
289         "id": "f6b8a443.ce37c8",
290         "type": "switchNode",
291         "name": "switch sz length",
292         "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
293         "comments": "",
294         "outputs": 1,
295         "x": 1360.6720924377441,
296         "y": 634.052964925766,
297         "z": "1afa105.0a3f0f",
298         "wires": [
299             [
300                 "c19598d2.19bd88"
301             ]
302         ]
303     },
304     {
305         "id": "c19598d2.19bd88",
306         "type": "other",
307         "name": "outcome 1",
308         "xml": "<outcome value='1'>\n",
309         "comments": "",
310         "outputs": 1,
311         "x": 1551.6720962524414,
312         "y": 634.0529625415802,
313         "z": "1afa105.0a3f0f",
314         "wires": [
315             [
316                 "852776b8.720618"
317             ]
318         ]
319     },
320     {
321         "id": "20c1fba5.738554",
322         "type": "set",
323         "name": "set sz-ar from get",
324         "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
325         "comments": "",
326         "x": 1951.5292320251465,
327         "y": 634.6243867874146,
328         "z": "1afa105.0a3f0f",
329         "wires": []
330     },
331     {
332         "id": "852776b8.720618",
333         "type": "block",
334         "name": "block: atomic",
335         "xml": "<block atomic='true'>\n",
336         "atomic": "false",
337         "comments": "",
338         "outputs": 1,
339         "x": 1722.5290794372559,
340         "y": 634.6244316101074,
341         "z": "1afa105.0a3f0f",
342         "wires": [
343             [
344                 "20c1fba5.738554",
345                 "37c4ecf.ab37e14",
346                 "b8ed9202.62a45"
347             ]
348         ]
349     },
350     {
351         "id": "37c4ecf.ab37e14",
352         "type": "set",
353         "name": "set oper-status",
354         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
355         "comments": "",
356         "x": 1949.5294761657715,
357         "y": 702.0529508590698,
358         "z": "1afa105.0a3f0f",
359         "wires": []
360     },
361     {
362         "id": "a2659467.3372c8",
363         "type": "comment",
364         "name": "GET security-zone-allotted-resource from mdsal",
365         "info": "",
366         "comments": "",
367         "x": 701.8148155212402,
368         "y": 563.7671926021576,
369         "z": "1afa105.0a3f0f",
370         "wires": []
371     },
372     {
373         "id": "b8ed9202.62a45",
374         "type": "switchNode",
375         "name": "switch order-status",
376         "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
377         "comments": "",
378         "outputs": 1,
379         "x": 1959.52925491333,
380         "y": 667.6243848800659,
381         "z": "1afa105.0a3f0f",
382         "wires": [
383             [
384                 "994a7d02.f776",
385                 "c6432d89.74604"
386             ]
387         ]
388     },
389     {
390         "id": "994a7d02.f776",
391         "type": "outcome",
392         "name": "outcome PendingCreate",
393         "xml": "<outcome value='PendingCreate'>\n",
394         "comments": "",
395         "outputs": 1,
396         "x": 2171.1292114257812,
397         "y": 628.6243848800659,
398         "z": "1afa105.0a3f0f",
399         "wires": [
400             [
401                 "edf3836c.7ac5a"
402             ]
403         ]
404     },
405     {
406         "id": "c6432d89.74604",
407         "type": "outcome",
408         "name": "outcome Other",
409         "xml": "<outcome value='Other'>\n",
410         "comments": "",
411         "outputs": 1,
412         "x": 2196.8435859680176,
413         "y": 664.052975654602,
414         "z": "1afa105.0a3f0f",
415         "wires": [
416             [
417                 "edf3836c.7ac5a"
418             ]
419         ]
420     },
421     {
422         "id": "242cf515.aebfea",
423         "type": "comment",
424         "name": "Set allotted-resource-identifiers",
425         "info": "",
426         "comments": "",
427         "x": 657.3386383056641,
428         "y": 654.3386459350586,
429         "z": "1afa105.0a3f0f",
430         "wires": []
431     },
432     {
433         "id": "7f9a9607.9deb78",
434         "type": "set",
435         "name": "save backup copy of mdsal-ar for rollback",
436         "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
437         "comments": "",
438         "x": 1440.3864250183105,
439         "y": 599.7672936916351,
440         "z": "1afa105.0a3f0f",
441         "wires": []
442     },
443     {
444         "id": "1ab1e0dc.601f6f",
445         "type": "comment",
446         "name": "Create urls for restapi",
447         "info": "",
448         "comments": "",
449         "x": 612.9576606750488,
450         "y": 468.6243562698364,
451         "z": "1afa105.0a3f0f",
452         "wires": []
453     },
454     {
455         "id": "956bdde7.54a34",
456         "type": "block",
457         "name": "block",
458         "xml": "<block>\n",
459         "atomic": "false",
460         "comments": "",
461         "outputs": 1,
462         "x": 1091.2433853149414,
463         "y": 941.481632232666,
464         "z": "1afa105.0a3f0f",
465         "wires": [
466             []
467         ]
468     },
469     {
470         "id": "2ad43a51.cbb826",
471         "type": "comment",
472         "name": "TO DO: vnf/put parent",
473         "info": "",
474         "comments": "",
475         "x": 625.2433776855468,
476         "y": 875.4815540313718,
477         "z": "1afa105.0a3f0f",
478         "wires": []
479     },
480     {
481         "id": "7db0224a.ddf40c",
482         "type": "execute",
483         "name": "execute getTime",
484         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
485         "comments": "",
486         "outputs": 1,
487         "x": 599.2433815002441,
488         "y": 771.4815549850464,
489         "z": "1afa105.0a3f0f",
490         "wires": [
491             []
492         ]
493     },
494     {
495         "id": "eef0e4d0.faeba8",
496         "type": "other",
497         "name": "other",
498         "xml": "<outcome value='Other'>\n",
499         "comments": "",
500         "outputs": 1,
501         "x": 933.5766868591309,
502         "y": 635.4814250469208,
503         "z": "1afa105.0a3f0f",
504         "wires": [
505             [
506                 "c1d6759.acebc88"
507             ]
508         ]
509     },
510     {
511         "id": "c1d6759.acebc88",
512         "type": "block",
513         "name": "block: atomic",
514         "xml": "<block atomic=\"true\">\n",
515         "atomic": "false",
516         "comments": "",
517         "outputs": 1,
518         "x": 1113.5766372680664,
519         "y": 636.1479756832123,
520         "z": "1afa105.0a3f0f",
521         "wires": [
522             []
523         ]
524     },
525     {
526         "id": "8fad2375.b2e97",
527         "type": "set",
528         "name": "set id",
529         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$security-zone-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"security-zone-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$security-zone-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$security-zone-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$security-zone-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$security-zone-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$security-zone-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.' value=\"`$security-zone-topology-operation-input.security-zone-request-input.` \" />",
530         "comments": "",
531         "x": 582.2434234619141,
532         "y": 691.1481666564941,
533         "z": "1afa105.0a3f0f",
534         "wires": []
535     },
536     {
537         "id": "edf3836c.7ac5a",
538         "type": "block",
539         "name": "block",
540         "xml": "<block>\n",
541         "atomic": "false",
542         "comments": "",
543         "outputs": 1,
544         "x": 2385.5997276306152,
545         "y": 630.0000190734863,
546         "z": "1afa105.0a3f0f",
547         "wires": [
548             []
549         ]
550     }
551 ]