aed528550535f410cecb3358ce4c6cf8355a5079
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-access-connectivity-network-topology-operation-create-huawei.json
1 [
2     {
3         "id": "69df8be4.4c3cb4",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 894.000244140625,
8         "y": 493.0001220703125,
9         "z": "b55dc3b9.0674e8",
10         "wires": [
11             [
12                 "96779afc.eefcf8"
13             ]
14         ]
15     },
16     {
17         "id": "96779afc.eefcf8",
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": 1186.9996490478516,
26         "y": 493.0000219345093,
27         "z": "b55dc3b9.0674e8",
28         "wires": [
29             [
30                 "22e6483c.f93448"
31             ]
32         ]
33     },
34     {
35         "id": "22e6483c.f93448",
36         "type": "method",
37         "name": "method:bbs-access-connectivity-network-topology-operation-create-huawei",
38         "xml": "<method rpc='bbs-access-connectivity-network-topology-operation-create-huawei' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 1184.9996490478516,
42         "y": 689.0000619888306,
43         "z": "b55dc3b9.0674e8",
44         "wires": [
45             [
46                 "cecb6fa.14b431"
47             ]
48         ]
49     },
50     {
51         "id": "cecb6fa.14b431",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 1591.9998626708984,
59         "y": 690.0000619888306,
60         "z": "b55dc3b9.0674e8",
61         "wires": [
62             [
63                 "ca1c14e4.4d339",
64                 "3b41cd0b.76074a",
65                 "1552bd19.8bb8f3",
66                 "f5dbdf79.0f05b8",
67                 "8cf2e6de.4d3138",
68                 "fe430565.3e4f9",
69                 "f837852c.dfc578",
70                 "ffa77aae.f154d"
71             ]
72         ]
73     },
74     {
75         "id": "ca1c14e4.4d339",
76         "type": "execute",
77         "name": "excute:readProperties",
78         "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\n",
79         "comments": "",
80         "outputs": 1,
81         "x": 2024.0000915527344,
82         "y": 584.1111812591553,
83         "z": "b55dc3b9.0674e8",
84         "wires": [
85             []
86         ]
87     },
88     {
89         "id": "3b41cd0b.76074a",
90         "type": "call",
91         "name": "call:validate-bbs-network-input-parameters",
92         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-bbs-network-input-parameters' mode='sync' >\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 2105,
96         "y": 366.99999237060547,
97         "z": "b55dc3b9.0674e8",
98         "wires": [
99             []
100         ]
101     },
102     {
103         "id": "ffa77aae.f154d",
104         "type": "execute",
105         "name": "execute:createAccessConnectivityService",
106         "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-access-connectivity-create.json'`\" />\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ws/rest/1002/FanOpenAPI/ActiveOnt'`\" />\n    <parameter name=\"contentType\" value=\"application/json\"/>\n    <parameter name=\"httpMethod\" value=\"post\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>\n    <parameter name=\"customHttpHeaders\" value=\"`'X-Auth-Token=' + $prop.sdncRestApi.token_id`\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
107         "comments": "",
108         "outputs": 1,
109         "x": 2082.6510620117188,
110         "y": 1139.9608306884766,
111         "z": "b55dc3b9.0674e8",
112         "wires": [
113             [
114                 "40de66ad.cee7a8",
115                 "694a1aa1.ee44dc"
116             ]
117         ]
118     },
119     {
120         "id": "40de66ad.cee7a8",
121         "type": "outcome",
122         "name": "success",
123         "xml": "<outcome value='success'>\n",
124         "comments": "",
125         "outputs": 1,
126         "x": 2427.983829498291,
127         "y": 1229.9607305526733,
128         "z": "b55dc3b9.0674e8",
129         "wires": [
130             [
131                 "7c823c35.187454"
132             ]
133         ]
134     },
135     {
136         "id": "694a1aa1.ee44dc",
137         "type": "outcome",
138         "name": "failure",
139         "xml": "<outcome value='failure'>\n",
140         "comments": "",
141         "outputs": 1,
142         "x": 2419.893310546875,
143         "y": 1138.142593383789,
144         "z": "b55dc3b9.0674e8",
145         "wires": [
146             [
147                 "69e343d2.09328c"
148             ]
149         ]
150     },
151     {
152         "id": "fe430565.3e4f9",
153         "type": "execute",
154         "name": "execute:querryTokenID",
155         "xml": " <execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-token-template.json'`\"/>\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url+'/rest/plat/smapp/v1/oauth/token'`\"/>\n    <parameter name=\"format\" value=\"json\"/>\n    <parameter name=\"httpMethod\" value=\"put\"/>\n    <parameter name=\"responsePrefix\" value=\"token-result\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n\n",
156         "comments": "",
157         "outputs": 1,
158         "x": 2018.2224426269531,
159         "y": 941.5557956695557,
160         "z": "b55dc3b9.0674e8",
161         "wires": [
162             [
163                 "985f7741.c62248",
164                 "4862a7fc.da72"
165             ]
166         ]
167     },
168     {
169         "id": "4862a7fc.da72",
170         "type": "outcome",
171         "name": "success",
172         "xml": "<outcome value='success'>\n",
173         "comments": "",
174         "outputs": 1,
175         "x": 2306.167236328125,
176         "y": 941.2501926422119,
177         "z": "b55dc3b9.0674e8",
178         "wires": [
179             [
180                 "43ef79ed.dece58"
181             ]
182         ]
183     },
184     {
185         "id": "985f7741.c62248",
186         "type": "outcome",
187         "name": "failure",
188         "xml": "<outcome value='failure'>\n",
189         "comments": "",
190         "outputs": 1,
191         "x": 2304.4402465820312,
192         "y": 1014.6138677597046,
193         "z": "b55dc3b9.0674e8",
194         "wires": [
195             [
196                 "464505a9.92b4fc"
197             ]
198         ]
199     },
200     {
201         "id": "52c062b7.adf254",
202         "type": "returnFailure",
203         "name": "return failure",
204         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing queryTokenID,vaule is null\" />\n",
205         "comments": "",
206         "x": 2925.281051635742,
207         "y": 1008.1595916748047,
208         "z": "b55dc3b9.0674e8",
209         "wires": []
210     },
211     {
212         "id": "da4c9472.fb8c58",
213         "type": "outcome",
214         "name": "NULL",
215         "xml": "<outcome value=''>\n",
216         "comments": "",
217         "outputs": 1,
218         "x": 2709.000461578369,
219         "y": 1010.0004034042358,
220         "z": "b55dc3b9.0674e8",
221         "wires": [
222             [
223                 "52c062b7.adf254"
224             ]
225         ]
226     },
227     {
228         "id": "43ef79ed.dece58",
229         "type": "switchNode",
230         "name": "switch:token ",
231         "xml": "<switch test='`$token-result.accessSession`'>\n",
232         "comments": "",
233         "outputs": 1,
234         "x": 2520.0002937316895,
235         "y": 940.0001783370972,
236         "z": "b55dc3b9.0674e8",
237         "wires": [
238             [
239                 "da4c9472.fb8c58",
240                 "30ae394a.e0a3b6"
241             ]
242         ]
243     },
244     {
245         "id": "30ae394a.e0a3b6",
246         "type": "outcome",
247         "name": "Other",
248         "xml": "<outcome value='Other'>\n",
249         "comments": "",
250         "outputs": 1,
251         "x": 2707.000301361084,
252         "y": 939.0001754760742,
253         "z": "b55dc3b9.0674e8",
254         "wires": [
255             [
256                 "969c3ea5.479ec"
257             ]
258         ]
259     },
260     {
261         "id": "969c3ea5.479ec",
262         "type": "set",
263         "name": "set:token-id",
264         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
265         "comments": "",
266         "x": 2917.5003089904785,
267         "y": 939.2501764297485,
268         "z": "b55dc3b9.0674e8",
269         "wires": []
270     },
271     {
272         "id": "1552bd19.8bb8f3",
273         "type": "set",
274         "name": "set:variables",
275         "xml": "<set>\n<parameter name='network-input-parameters.' value='`$network-topology-operation-input.network-request-input.network-input-parameters.`' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='https://172.30.0.55:26335' />\n<parameter name='prop.bbs.HsiPackage' value='50M' />\n<parameter name='prop.bbs.HsiType' value='IPoE' />\n",
276         "comments": "",
277         "x": 1983.0006408691406,
278         "y": 479.0002498626709,
279         "z": "b55dc3b9.0674e8",
280         "wires": []
281     },
282     {
283         "id": "1c40c39.920b2bc",
284         "type": "record",
285         "name": "log file",
286         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"`$prop.bbs.remote_id`\" />\n    <parameter name=\"field3\" value=\"`$prop.bbs.ONTSN`\" />\n    <parameter name=\"field4\" value=\"`$prop.bbs.CVLAN`\" />\n    <parameter name=\"field5\" value=\"`$prop.bbs.SVLAN`\" />\n    <parameter name=\"field6\" value=\"`$prop.bbs.HsiPackage`\" />\n    <parameter name=\"field7\" value=\"`$prop.bbs.HsiType`\" />",
287         "comments": "",
288         "outputs": 1,
289         "x": 1973.0005187988281,
290         "y": 772.0001878738403,
291         "z": "b55dc3b9.0674e8",
292         "wires": [
293             []
294         ]
295     },
296     {
297         "id": "5d75b0e5.89aa78",
298         "type": "record",
299         "name": "log file",
300         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"createAccessConnectivityService success!\" />\n    <parameter name=\"field2\" value=\"`$service-result.accessE2Eservice.serviceID`\" />\n    ",
301         "comments": "",
302         "outputs": 1,
303         "x": 3246.0002841949463,
304         "y": 1299.0002943873405,
305         "z": "b55dc3b9.0674e8",
306         "wires": [
307             []
308         ]
309     },
310     {
311         "id": "7c823c35.187454",
312         "type": "switchNode",
313         "name": "switch:service-result",
314         "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
315         "comments": "",
316         "outputs": 1,
317         "x": 2662.9999504089355,
318         "y": 1229.0000257492065,
319         "z": "b55dc3b9.0674e8",
320         "wires": [
321             [
322                 "a213720b.ac45d",
323                 "3e855bfc.b9a11c"
324             ]
325         ]
326     },
327     {
328         "id": "a213720b.ac45d",
329         "type": "outcome",
330         "name": "Other",
331         "xml": "<outcome value='Other'>\n",
332         "comments": "",
333         "outputs": 1,
334         "x": 2884.000255584717,
335         "y": 1151.0002088546753,
336         "z": "b55dc3b9.0674e8",
337         "wires": [
338             [
339                 "a83a86bf.d38c58"
340             ]
341         ]
342     },
343     {
344         "id": "3e855bfc.b9a11c",
345         "type": "outcome",
346         "name": "NULL",
347         "xml": "<outcome value=''>\n",
348         "comments": "",
349         "outputs": 1,
350         "x": 2884.9998779296875,
351         "y": 1227.0000076293945,
352         "z": "b55dc3b9.0674e8",
353         "wires": [
354             [
355                 "68a87be6.e042a4"
356             ]
357         ]
358     },
359     {
360         "id": "9642119f.73843",
361         "type": "record",
362         "name": "log error",
363         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"createAccessConnectivityService falied!\" />\n    <parameter name=\"field2\" value=\"`$service-result.errors.error[0].error-info.error-code`\" />\n    <parameter name=\"field3\" value=\"`$service-result.errors.error[0].error-message`\" />\n    <parameter name=\"field4\" value=\"`$service-result.errors.error[0].error-tag`\" />\n    ",
364         "comments": "",
365         "outputs": 1,
366         "x": 3422.0002822875977,
367         "y": 1189.000202178955,
368         "z": "b55dc3b9.0674e8",
369         "wires": [
370             []
371         ]
372     },
373     {
374         "id": "8cf2e6de.4d3138",
375         "type": "for",
376         "name": "for:network-input-paramters",
377         "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",
378         "comments": "",
379         "outputs": 1,
380         "x": 2047.5003662109375,
381         "y": 682.0001649856567,
382         "z": "b55dc3b9.0674e8",
383         "wires": [
384             [
385                 "98d94257.11223"
386             ]
387         ]
388     },
389     {
390         "id": "ab021836.64d55",
391         "type": "switchNode",
392         "name": "switch:remote_id",
393         "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'remote_id'`\">\n",
394         "comments": "",
395         "outputs": 1,
396         "x": 2588.5004920959473,
397         "y": 483.00021839141846,
398         "z": "b55dc3b9.0674e8",
399         "wires": [
400             [
401                 "97011d1b.729758"
402             ]
403         ]
404     },
405     {
406         "id": "97011d1b.729758",
407         "type": "outcomeTrue",
408         "name": "true",
409         "xml": "<outcome value='true'>\n",
410         "comments": "",
411         "outputs": 1,
412         "x": 2791.5004119873047,
413         "y": 483.00018978118896,
414         "z": "b55dc3b9.0674e8",
415         "wires": [
416             [
417                 "6416001f.b55fe8"
418             ]
419         ]
420     },
421     {
422         "id": "c399b374.94be5",
423         "type": "set",
424         "name": "set:remote_id",
425         "xml": "<set>\n<parameter name='prop.bbs.remote_id' value='`$network-input-parameters.param[$idx].value`' />\n",
426         "comments": "",
427         "x": 3509.5001678466797,
428         "y": 481.6001958847046,
429         "z": "b55dc3b9.0674e8",
430         "wires": []
431     },
432     {
433         "id": "98d94257.11223",
434         "type": "block",
435         "name": "block",
436         "xml": "<block>\n",
437         "atomic": "false",
438         "comments": "",
439         "outputs": 1,
440         "x": 2302.500663757324,
441         "y": 683.0002040863037,
442         "z": "b55dc3b9.0674e8",
443         "wires": [
444             [
445                 "ab021836.64d55",
446                 "ad1f45c9.ae1e",
447                 "2107c7fb.ef7398",
448                 "bd0fc4cf.4ad23"
449             ]
450         ]
451     },
452     {
453         "id": "ad1f45c9.ae1e",
454         "type": "switchNode",
455         "name": "switch:ONTSN",
456         "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'ONTSN'`\">\n",
457         "comments": "",
458         "outputs": 1,
459         "x": 2588.3522872924805,
460         "y": 544.0002202987671,
461         "z": "b55dc3b9.0674e8",
462         "wires": [
463             [
464                 "2e18f3ad.687b94"
465             ]
466         ]
467     },
468     {
469         "id": "2e18f3ad.687b94",
470         "type": "outcomeTrue",
471         "name": "true",
472         "xml": "<outcome value='true'>\n",
473         "comments": "",
474         "outputs": 1,
475         "x": 2790.3521900177,
476         "y": 544.0002841949463,
477         "z": "b55dc3b9.0674e8",
478         "wires": [
479             [
480                 "96c33b24.ac61b8"
481             ]
482         ]
483     },
484     {
485         "id": "56ad068a.96a788",
486         "type": "set",
487         "name": "set:ONTSN",
488         "xml": "<set>\n<parameter name='prop.bbs.ONTSN' value='`$network-input-parameters.param[$idx].value`' />\n",
489         "comments": "",
490         "x": 3508.3524742126465,
491         "y": 543.6002607345581,
492         "z": "b55dc3b9.0674e8",
493         "wires": []
494     },
495     {
496         "id": "2107c7fb.ef7398",
497         "type": "switchNode",
498         "name": "switch:CVLAN",
499         "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'CVLAN'`\">\n",
500         "comments": "",
501         "outputs": 1,
502         "x": 2588.3523597717285,
503         "y": 604.0002698898315,
504         "z": "b55dc3b9.0674e8",
505         "wires": [
506             [
507                 "92e83b0.845cd48"
508             ]
509         ]
510     },
511     {
512         "id": "92e83b0.845cd48",
513         "type": "outcomeTrue",
514         "name": "true",
515         "xml": "<outcome value='true'>\n",
516         "comments": "",
517         "outputs": 1,
518         "x": 2790.3522186279297,
519         "y": 604.0002813339233,
520         "z": "b55dc3b9.0674e8",
521         "wires": [
522             [
523                 "fd2b5da0.8a0b98"
524             ]
525         ]
526     },
527     {
528         "id": "dd448b5e.614c78",
529         "type": "set",
530         "name": "set:CVLAN",
531         "xml": "<set>\n<parameter name='prop.bbs.CVLAN' value='`$network-input-parameters.param[$idx].value`' />\n",
532         "comments": "",
533         "x": 3506.3522186279297,
534         "y": 604.6002569198608,
535         "z": "b55dc3b9.0674e8",
536         "wires": []
537     },
538     {
539         "id": "bd0fc4cf.4ad23",
540         "type": "switchNode",
541         "name": "switch:SVLAN",
542         "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'SVLAN'`\">\n",
543         "comments": "",
544         "outputs": 1,
545         "x": 2585.352367401123,
546         "y": 680.2225370407104,
547         "z": "b55dc3b9.0674e8",
548         "wires": [
549             [
550                 "b390ab14.2876"
551             ]
552         ]
553     },
554     {
555         "id": "b390ab14.2876",
556         "type": "outcomeTrue",
557         "name": "true",
558         "xml": "<outcome value='true'>\n",
559         "comments": "",
560         "outputs": 1,
561         "x": 2793.3522520065308,
562         "y": 679.2225351333618,
563         "z": "b55dc3b9.0674e8",
564         "wires": [
565             [
566                 "6efee915.b74488"
567             ]
568         ]
569     },
570     {
571         "id": "8e8664b6.96a008",
572         "type": "set",
573         "name": "set:SVLAN",
574         "xml": "<set>\n<parameter name='prop.bbs.SVLAN' value='`$network-input-parameters.param[$idx].value`' />\n",
575         "comments": "",
576         "x": 3512.3522186279297,
577         "y": 678.8225469589233,
578         "z": "b55dc3b9.0674e8",
579         "wires": []
580     },
581     {
582         "id": "6416001f.b55fe8",
583         "type": "switchNode",
584         "name": "switch:remote_id value",
585         "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
586         "comments": "",
587         "outputs": 1,
588         "x": 3036.5004119873047,
589         "y": 482.0002202987671,
590         "z": "b55dc3b9.0674e8",
591         "wires": [
592             [
593                 "8f779a47.45116",
594                 "ffdee3f4.53697"
595             ]
596         ]
597     },
598     {
599         "id": "ffdee3f4.53697",
600         "type": "outcome",
601         "name": "Other",
602         "xml": "<outcome value='Other'>\n",
603         "comments": "",
604         "outputs": 1,
605         "x": 3324.5004119873047,
606         "y": 481.0002202987671,
607         "z": "b55dc3b9.0674e8",
608         "wires": [
609             [
610                 "c399b374.94be5"
611             ]
612         ]
613     },
614     {
615         "id": "8f779a47.45116",
616         "type": "outcome",
617         "name": "NULL",
618         "xml": "<outcome value=''>\n",
619         "comments": "",
620         "outputs": 1,
621         "x": 3322.500820159912,
622         "y": 412.00019931793213,
623         "z": "b55dc3b9.0674e8",
624         "wires": [
625             [
626                 "2d4312f0.72e22e"
627             ]
628         ]
629     },
630     {
631         "id": "96c33b24.ac61b8",
632         "type": "switchNode",
633         "name": "switch:ONTSN value",
634         "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
635         "comments": "",
636         "outputs": 1,
637         "x": 3036.5004119873047,
638         "y": 544.0002202987671,
639         "z": "b55dc3b9.0674e8",
640         "wires": [
641             [
642                 "8f779a47.45116",
643                 "226a5e32.f325da"
644             ]
645         ]
646     },
647     {
648         "id": "226a5e32.f325da",
649         "type": "outcome",
650         "name": "Other",
651         "xml": "<outcome value='Other'>\n",
652         "comments": "",
653         "outputs": 1,
654         "x": 3326.5004119873047,
655         "y": 544.0002202987671,
656         "z": "b55dc3b9.0674e8",
657         "wires": [
658             [
659                 "56ad068a.96a788"
660             ]
661         ]
662     },
663     {
664         "id": "fd2b5da0.8a0b98",
665         "type": "switchNode",
666         "name": "switch:CVLAN value",
667         "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
668         "comments": "",
669         "outputs": 1,
670         "x": 3039.5004119873047,
671         "y": 605.0002202987671,
672         "z": "b55dc3b9.0674e8",
673         "wires": [
674             [
675                 "8f779a47.45116",
676                 "c05bd1ad.17646"
677             ]
678         ]
679     },
680     {
681         "id": "c05bd1ad.17646",
682         "type": "outcome",
683         "name": "Other",
684         "xml": "<outcome value='Other'>\n",
685         "comments": "",
686         "outputs": 1,
687         "x": 3327.5004119873047,
688         "y": 604.0002202987671,
689         "z": "b55dc3b9.0674e8",
690         "wires": [
691             [
692                 "dd448b5e.614c78"
693             ]
694         ]
695     },
696     {
697         "id": "6efee915.b74488",
698         "type": "switchNode",
699         "name": "switch:SVLAN value",
700         "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
701         "comments": "",
702         "outputs": 1,
703         "x": 3040.5004119873047,
704         "y": 679.0002202987671,
705         "z": "b55dc3b9.0674e8",
706         "wires": [
707             [
708                 "8f779a47.45116",
709                 "f6e1110f.5f2e3"
710             ]
711         ]
712     },
713     {
714         "id": "f6e1110f.5f2e3",
715         "type": "outcome",
716         "name": "Other",
717         "xml": "<outcome value='Other'>\n",
718         "comments": "",
719         "outputs": 1,
720         "x": 3330.5004119873047,
721         "y": 680.0002202987671,
722         "z": "b55dc3b9.0674e8",
723         "wires": [
724             [
725                 "8e8664b6.96a008"
726             ]
727         ]
728     },
729     {
730         "id": "f5dbdf79.0f05b8",
731         "type": "returnSuccess",
732         "name": "return success",
733         "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`\" />",
734         "comments": "",
735         "x": 1956.0554504394531,
736         "y": 1723.7781028747559,
737         "z": "b55dc3b9.0674e8",
738         "wires": []
739     },
740     {
741         "id": "68a87be6.e042a4",
742         "type": "block",
743         "name": "block",
744         "xml": "<block>\n",
745         "atomic": "false",
746         "comments": "",
747         "outputs": 1,
748         "x": 3043.1665077209473,
749         "y": 1227.9999828338623,
750         "z": "b55dc3b9.0674e8",
751         "wires": [
752             [
753                 "5d75b0e5.89aa78",
754                 "95ed41fa.e44ec"
755             ]
756         ]
757     },
758     {
759         "id": "a83a86bf.d38c58",
760         "type": "returnFailure",
761         "name": "return failure",
762         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error createAccessConnectivityService return: '+$service-result.errors.error[0].error-message`\" />",
763         "comments": "",
764         "x": 3070.4999237060547,
765         "y": 1151.0000457763672,
766         "z": "b55dc3b9.0674e8",
767         "wires": []
768     },
769     {
770         "id": "2d4312f0.72e22e",
771         "type": "returnFailure",
772         "name": "return failure",
773         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`$network-input-parameters.param[$idx].name  +' value is null, please check it.'`\" />\n",
774         "comments": "",
775         "x": 3505.4999084472656,
776         "y": 412.0000238418579,
777         "z": "b55dc3b9.0674e8",
778         "wires": []
779     },
780     {
781         "id": "464505a9.92b4fc",
782         "type": "returnFailure",
783         "name": "return failure",
784         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call queryTokenID\" />\n",
785         "comments": "",
786         "x": 2504.7557830810547,
787         "y": 1015.0284881591797,
788         "z": "b55dc3b9.0674e8",
789         "wires": []
790     },
791     {
792         "id": "69e343d2.09328c",
793         "type": "returnFailure",
794         "name": "return failure",
795         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call  createAccessConnectivityService\" />\n",
796         "comments": "",
797         "x": 2634.3925018310547,
798         "y": 1137.846694946289,
799         "z": "b55dc3b9.0674e8",
800         "wires": []
801     },
802     {
803         "id": "97d94787.251f08",
804         "type": "save",
805         "name": "save:generic-vnf",
806         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $vnf-id\" >\n<parameter name= \"vnf-id\" value = \"`$vnf-id`\"/>\n<parameter name=  \"vnf-name\" value = \"`$vnf-name`\"/>\n<parameter name=  \"vnf-type\" value = \"AccessConnectivity\"/>\n<parameter name=  \"service-id\" value = \"`$network-topology-operation-input.service-information.service-id`\"/>\n<parameter name=  \"prov-status\" value = \"ACTIVE\"/>\n<parameter name=  \"orchestration-status\" value = \"Active\"/>\n<parameter name=  \"ipv4-oam-address\" value = \"169.254.236.13\"/>\n<parameter name=  \"in-maint\" value = \"false\" />\n<parameter name=  \"is-closed-loop-disabled\" value = \"false\" />\n<parameter name=  \"model-invariant-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name=  \"model-version-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-uuid`\"/>\n<parameter name=  \"model-customization-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\"/>",
807         "comments": "",
808         "outputs": 1,
809         "x": 2279.533456802368,
810         "y": 1579.0320892333984,
811         "z": "b55dc3b9.0674e8",
812         "wires": [
813             [
814                 "a3497f20.d7ea3",
815                 "9efe9955.3e7888",
816                 "58b775d1.206ccc"
817             ]
818         ]
819     },
820     {
821         "id": "a3497f20.d7ea3",
822         "type": "failure",
823         "name": "failure",
824         "xml": "<outcome value='failure'>\n",
825         "comments": "",
826         "outputs": 1,
827         "x": 2515.7553119659424,
828         "y": 1450.920846939087,
829         "z": "b55dc3b9.0674e8",
830         "wires": [
831             [
832                 "bebc769c.0837e8"
833             ]
834         ]
835     },
836     {
837         "id": "9efe9955.3e7888",
838         "type": "failure",
839         "name": "not-found",
840         "xml": "<outcome value='not-found'>\n",
841         "comments": "",
842         "outputs": 1,
843         "x": 2526.7311305999756,
844         "y": 1510.9367032051086,
845         "z": "b55dc3b9.0674e8",
846         "wires": [
847             [
848                 "e37c929.c92107"
849             ]
850         ]
851     },
852     {
853         "id": "bebc769c.0837e8",
854         "type": "returnFailure",
855         "name": "return failure",
856         "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=\"Failure calling AAI to save generic-vnf\" />\n",
857         "comments": "",
858         "x": 2751.8978595733643,
859         "y": 1450.4923119544983,
860         "z": "b55dc3b9.0674e8",
861         "wires": []
862     },
863     {
864         "id": "e37c929.c92107",
865         "type": "returnFailure",
866         "name": "return failure",
867         "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=\"generic-vnf instance does not exist in AAI\" />\n",
868         "comments": "",
869         "x": 2746.778657913208,
870         "y": 1511.4130177497864,
871         "z": "b55dc3b9.0674e8",
872         "wires": []
873     },
874     {
875         "id": "58b775d1.206ccc",
876         "type": "outcome",
877         "name": "success",
878         "xml": "<outcome value='success'>\n",
879         "comments": "",
880         "outputs": 1,
881         "x": 2520.34193611145,
882         "y": 1576.0631833076477,
883         "z": "b55dc3b9.0674e8",
884         "wires": [
885             [
886                 "23816cea.e07514"
887             ]
888         ]
889     },
890     {
891         "id": "23816cea.e07514",
892         "type": "record",
893         "name": "log file",
894         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"save generic-vnf success!\" />\n    ",
895         "comments": "",
896         "outputs": 1,
897         "x": 2728.3421897888184,
898         "y": 1574.0633125305176,
899         "z": "b55dc3b9.0674e8",
900         "wires": [
901             []
902         ]
903     },
904     {
905         "id": "116359fa.597806",
906         "type": "save",
907         "name": "save:metadata",
908         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:metadata\"\n key=\"service-instance.service-instance-id = $network-topology-operation-input.service-information.service-id  \n\tAND customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id\n\t  AND service-subscription.service-type = $network-topology-operation-input.service-information.subscription-service-type\n\t  AND service-instance.service-instance-id =  $network-topology-operation-input.service-information.service-instance-id\"  force=\"true\" pfx=\"tmp.AnAI-data\"\n    >\n    <parameter name=\"metadata.metadatum[0].metaname\" value=\"remote-id\" />\n    <parameter name=\"metadata.metadatum[0].metaval\" value=\"`$prop.bbs.remote_id`\" />\n    <parameter name=\"metadata.metadatum[1].metaname\" value=\"controller-service-id\" />\n    <parameter name=\"metadata.metadatum[1].metaval\" value=\"`$prop.bbs.serviceID`\" />",
909         "comments": "",
910         "outputs": 1,
911         "x": 2261.032783508301,
912         "y": 1742.0319175720215,
913         "z": "b55dc3b9.0674e8",
914         "wires": [
915             [
916                 "835155a5.b67df8",
917                 "c341fca3.24318",
918                 "eea59fae.70bf9"
919             ]
920         ]
921     },
922     {
923         "id": "835155a5.b67df8",
924         "type": "failure",
925         "name": "failure",
926         "xml": "<outcome value='failure'>\n",
927         "comments": "",
928         "outputs": 1,
929         "x": 2491.5082931518555,
930         "y": 1673.3965210914612,
931         "z": "b55dc3b9.0674e8",
932         "wires": [
933             [
934                 "ce09f6b.b604008"
935             ]
936         ]
937     },
938     {
939         "id": "c341fca3.24318",
940         "type": "failure",
941         "name": "not-found",
942         "xml": "<outcome value='not-found'>\n",
943         "comments": "",
944         "outputs": 1,
945         "x": 2503.4844551086426,
946         "y": 1743.4124546051025,
947         "z": "b55dc3b9.0674e8",
948         "wires": [
949             [
950                 "356aae98.7445f2"
951             ]
952         ]
953     },
954     {
955         "id": "ce09f6b.b604008",
956         "type": "returnFailure",
957         "name": "return failure",
958         "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=\"Failure calling AAI to save metadatum\" />\n",
959         "comments": "",
960         "x": 2731.6510887145996,
961         "y": 1671.9680228233337,
962         "z": "b55dc3b9.0674e8",
963         "wires": []
964     },
965     {
966         "id": "356aae98.7445f2",
967         "type": "returnFailure",
968         "name": "return failure",
969         "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=\"metadatum instance does not exist in AAI\" />\n",
970         "comments": "",
971         "x": 2728.531988143921,
972         "y": 1742.8886909484863,
973         "z": "b55dc3b9.0674e8",
974         "wires": []
975     },
976     {
977         "id": "eea59fae.70bf9",
978         "type": "outcome",
979         "name": "success",
980         "xml": "<outcome value='success'>\n",
981         "comments": "",
982         "outputs": 1,
983         "x": 2498.0951652526855,
984         "y": 1813.5388941764832,
985         "z": "b55dc3b9.0674e8",
986         "wires": [
987             [
988                 "8a223ca4.509e4"
989             ]
990         ]
991     },
992     {
993         "id": "8a223ca4.509e4",
994         "type": "record",
995         "name": "log file",
996         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"save metadatum success!\" />\n    ",
997         "comments": "",
998         "outputs": 1,
999         "x": 2709.0951652526855,
1000         "y": 1813.5388941764832,
1001         "z": "b55dc3b9.0674e8",
1002         "wires": [
1003             []
1004         ]
1005     },
1006     {
1007         "id": "f837852c.dfc578",
1008         "type": "block",
1009         "name": "block",
1010         "xml": "<block>\n",
1011         "atomic": "false",
1012         "comments": "",
1013         "outputs": 1,
1014         "x": 1974.6670570373535,
1015         "y": 1453.0006408691406,
1016         "z": "b55dc3b9.0674e8",
1017         "wires": [
1018             [
1019                 "97d94787.251f08",
1020                 "116359fa.597806",
1021                 "306a1b6e.90a264",
1022                 "53d01937.c7f688"
1023             ]
1024         ]
1025     },
1026     {
1027         "id": "306a1b6e.90a264",
1028         "type": "set",
1029         "name": "set:variables",
1030         "xml": "<set>\n<parameter name='vnf-id' value=\"`$prop.random-data-list[3]`\"/>\n<parameter name='vnf-name' value=\"`'vnf-'+$prop.random-data-list[4]`\"/>\n",
1031         "comments": "",
1032         "x": 2263.667526245117,
1033         "y": 1457.3336334228516,
1034         "z": "b55dc3b9.0674e8",
1035         "wires": []
1036     },
1037     {
1038         "id": "53d01937.c7f688",
1039         "type": "execute",
1040         "name": "execute:generate",
1041         "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\">\n    <parameter name=\"ctx-destination\" value=\"prop.random-data\"/>",
1042         "comments": "",
1043         "outputs": 1,
1044         "x": 2282.0319061279297,
1045         "y": 1376.0315399169922,
1046         "z": "b55dc3b9.0674e8",
1047         "wires": [
1048             [
1049                 "d511316d.80f4c"
1050             ]
1051         ]
1052     },
1053     {
1054         "id": "d511316d.80f4c",
1055         "type": "success",
1056         "name": "success",
1057         "xml": "<outcome value='success'>\n",
1058         "comments": "",
1059         "outputs": 1,
1060         "x": 2520.031665802002,
1061         "y": 1377.0315704345703,
1062         "z": "b55dc3b9.0674e8",
1063         "wires": [
1064             [
1065                 "350eef68.69f9e"
1066             ]
1067         ]
1068     },
1069     {
1070         "id": "350eef68.69f9e",
1071         "type": "execute",
1072         "name": "execute",
1073         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n    <parameter name=\"ctx_memory_result_key\" value=\"prop.random-data-list\"/>\n    <parameter name=\"original_string\" value=\"`$prop.random-data`\"/>\n    <parameter name=\"regex\" value=\"-\"/>\n",
1074         "comments": "",
1075         "outputs": 1,
1076         "x": 2707.0317211151123,
1077         "y": 1376.031478881836,
1078         "z": "b55dc3b9.0674e8",
1079         "wires": [
1080             [
1081                 "abdff798.71d8c8"
1082             ]
1083         ]
1084     },
1085     {
1086         "id": "52dff766.2dd2d8",
1087         "type": "record",
1088         "name": "log file",
1089         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"`$prop.random-data`\" />\n    ",
1090         "comments": "",
1091         "outputs": 1,
1092         "x": 3039.031784057617,
1093         "y": 1374.0315399169922,
1094         "z": "b55dc3b9.0674e8",
1095         "wires": [
1096             []
1097         ]
1098     },
1099     {
1100         "id": "abdff798.71d8c8",
1101         "type": "outcome",
1102         "name": "success",
1103         "xml": "<outcome value='success'>\n",
1104         "comments": "",
1105         "outputs": 1,
1106         "x": 2874.031660079956,
1107         "y": 1375.031509399414,
1108         "z": "b55dc3b9.0674e8",
1109         "wires": [
1110             [
1111                 "52dff766.2dd2d8"
1112             ]
1113         ]
1114     },
1115     {
1116         "id": "95ed41fa.e44ec",
1117         "type": "set",
1118         "name": "set:variables",
1119         "xml": "<set>\n<parameter name='prop.bbs.serviceID' value=\"`$service-result.accessE2Eservice.serviceID`\"/>\n",
1120         "comments": "",
1121         "x": 3257.031536102295,
1122         "y": 1227.031421661377,
1123         "z": "b55dc3b9.0674e8",
1124         "wires": []
1125     },
1126     {
1127         "id": "fa43c07a.448fc",
1128         "type": "set",
1129         "name": "set:variables",
1130         "xml": "<set>\n<parameter name='prop.bbs.serviceID' value=\"HSI20190330\"/>\n\n",
1131         "comments": "",
1132         "x": 1953.3333740234375,
1133         "y": 1216.3333740234375,
1134         "z": "b55dc3b9.0674e8",
1135         "wires": []
1136     }
1137 ]