Add relationship between bbs resource and service
[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": "d59dffe3.1ebcb",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 175.03125,
8         "y": 203.0001277923584,
9         "z": "f135a623.0543d8",
10         "wires": [
11             [
12                 "ec08cd91.55039"
13             ]
14         ]
15     },
16     {
17         "id": "ec08cd91.55039",
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": 468.03065490722656,
26         "y": 203.00002765655518,
27         "z": "f135a623.0543d8",
28         "wires": [
29             [
30                 "513fbcd2.03e4e4"
31             ]
32         ]
33     },
34     {
35         "id": "513fbcd2.03e4e4",
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": 466.03065490722656,
42         "y": 399.00006771087646,
43         "z": "f135a623.0543d8",
44         "wires": [
45             [
46                 "5ffa3fc6.3a25d"
47             ]
48         ]
49     },
50     {
51         "id": "5ffa3fc6.3a25d",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 873.0308685302734,
59         "y": 400.00006771087646,
60         "z": "f135a623.0543d8",
61         "wires": [
62             [
63                 "d08319bc.bcb898",
64                 "3702f371.c0220c",
65                 "28397a59.582c76",
66                 "98ddfc72.d43d9",
67                 "a775f115.24069",
68                 "f893f8d3.d95988",
69                 "da212c99.cb2c6",
70                 "d0f6c86f.1dac08"
71             ]
72         ]
73     },
74     {
75         "id": "d08319bc.bcb898",
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": 1305.0310974121094,
82         "y": 294.1111869812012,
83         "z": "f135a623.0543d8",
84         "wires": [
85             []
86         ]
87     },
88     {
89         "id": "3702f371.c0220c",
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": 1386.031005859375,
96         "y": 76.99999809265137,
97         "z": "f135a623.0543d8",
98         "wires": [
99             []
100         ]
101     },
102     {
103         "id": "d0f6c86f.1dac08",
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": 1363.6820678710938,
110         "y": 849.9608364105225,
111         "z": "f135a623.0543d8",
112         "wires": [
113             [
114                 "fe656633.23f858",
115                 "6f1e2083.ac153"
116             ]
117         ]
118     },
119     {
120         "id": "fe656633.23f858",
121         "type": "outcome",
122         "name": "success",
123         "xml": "<outcome value='success'>\n",
124         "comments": "",
125         "outputs": 1,
126         "x": 1709.014835357666,
127         "y": 939.9607362747192,
128         "z": "f135a623.0543d8",
129         "wires": [
130             [
131                 "f4a3c0d8.430c"
132             ]
133         ]
134     },
135     {
136         "id": "6f1e2083.ac153",
137         "type": "outcome",
138         "name": "failure",
139         "xml": "<outcome value='failure'>\n",
140         "comments": "",
141         "outputs": 1,
142         "x": 1700.92431640625,
143         "y": 848.142599105835,
144         "z": "f135a623.0543d8",
145         "wires": [
146             [
147                 "c90fe181.73329"
148             ]
149         ]
150     },
151     {
152         "id": "f893f8d3.d95988",
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": 1299.2534484863281,
159         "y": 651.5558013916016,
160         "z": "f135a623.0543d8",
161         "wires": [
162             [
163                 "a70e4e47.132c9",
164                 "7cc0e9d7.1e3408"
165             ]
166         ]
167     },
168     {
169         "id": "7cc0e9d7.1e3408",
170         "type": "outcome",
171         "name": "success",
172         "xml": "<outcome value='success'>\n",
173         "comments": "",
174         "outputs": 1,
175         "x": 1587.1982421875,
176         "y": 651.2501983642578,
177         "z": "f135a623.0543d8",
178         "wires": [
179             [
180                 "42bd34dc.590d6c"
181             ]
182         ]
183     },
184     {
185         "id": "a70e4e47.132c9",
186         "type": "outcome",
187         "name": "failure",
188         "xml": "<outcome value='failure'>\n",
189         "comments": "",
190         "outputs": 1,
191         "x": 1585.4712524414062,
192         "y": 724.6138734817505,
193         "z": "f135a623.0543d8",
194         "wires": [
195             [
196                 "ede8d766.0fb378"
197             ]
198         ]
199     },
200     {
201         "id": "45c2f33c.d2afcc",
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": 2206.312057495117,
207         "y": 718.1595973968506,
208         "z": "f135a623.0543d8",
209         "wires": []
210     },
211     {
212         "id": "6ab23511.933ffc",
213         "type": "outcome",
214         "name": "NULL",
215         "xml": "<outcome value=''>\n",
216         "comments": "",
217         "outputs": 1,
218         "x": 1990.0314674377441,
219         "y": 720.0004091262817,
220         "z": "f135a623.0543d8",
221         "wires": [
222             [
223                 "45c2f33c.d2afcc"
224             ]
225         ]
226     },
227     {
228         "id": "42bd34dc.590d6c",
229         "type": "switchNode",
230         "name": "switch:token ",
231         "xml": "<switch test='`$token-result.accessSession`'>\n",
232         "comments": "",
233         "outputs": 1,
234         "x": 1801.0312995910645,
235         "y": 650.0001840591431,
236         "z": "f135a623.0543d8",
237         "wires": [
238             [
239                 "6ab23511.933ffc",
240                 "279d981f.fd7de8"
241             ]
242         ]
243     },
244     {
245         "id": "279d981f.fd7de8",
246         "type": "outcome",
247         "name": "Other",
248         "xml": "<outcome value='Other'>\n",
249         "comments": "",
250         "outputs": 1,
251         "x": 1988.031307220459,
252         "y": 649.0001811981201,
253         "z": "f135a623.0543d8",
254         "wires": [
255             [
256                 "23e4d28e.64b4ce"
257             ]
258         ]
259     },
260     {
261         "id": "23e4d28e.64b4ce",
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": 2198.5313148498535,
267         "y": 649.2501821517944,
268         "z": "f135a623.0543d8",
269         "wires": []
270     },
271     {
272         "id": "28397a59.582c76",
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": 1264.0316467285156,
278         "y": 189.0002555847168,
279         "z": "f135a623.0543d8",
280         "wires": []
281     },
282     {
283         "id": "1bcdb021.046c7",
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": 1254.0315246582031,
290         "y": 482.00019359588623,
291         "z": "f135a623.0543d8",
292         "wires": [
293             []
294         ]
295     },
296     {
297         "id": "8375eb61.7efbd8",
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": 2527.0312900543213,
304         "y": 1009.0003001093864,
305         "z": "f135a623.0543d8",
306         "wires": [
307             []
308         ]
309     },
310     {
311         "id": "f4a3c0d8.430c",
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": 1944.0309562683105,
318         "y": 939.0000314712524,
319         "z": "f135a623.0543d8",
320         "wires": [
321             [
322                 "2f011cb2.7f1894",
323                 "34a1e5de.d206ea"
324             ]
325         ]
326     },
327     {
328         "id": "2f011cb2.7f1894",
329         "type": "outcome",
330         "name": "Other",
331         "xml": "<outcome value='Other'>\n",
332         "comments": "",
333         "outputs": 1,
334         "x": 2165.031261444092,
335         "y": 861.0002145767212,
336         "z": "f135a623.0543d8",
337         "wires": [
338             [
339                 "bb6f25d3.83d998"
340             ]
341         ]
342     },
343     {
344         "id": "34a1e5de.d206ea",
345         "type": "outcome",
346         "name": "NULL",
347         "xml": "<outcome value=''>\n",
348         "comments": "",
349         "outputs": 1,
350         "x": 2166.0308837890625,
351         "y": 937.0000133514404,
352         "z": "f135a623.0543d8",
353         "wires": [
354             [
355                 "ca2d548e.082f68"
356             ]
357         ]
358     },
359     {
360         "id": "19b1bc05.08dfa4",
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": 2703.0312881469727,
367         "y": 899.000207901001,
368         "z": "f135a623.0543d8",
369         "wires": [
370             []
371         ]
372     },
373     {
374         "id": "a775f115.24069",
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": 1328.5313720703125,
381         "y": 392.00017070770264,
382         "z": "f135a623.0543d8",
383         "wires": [
384             [
385                 "7be7fd6e.b84cb4"
386             ]
387         ]
388     },
389     {
390         "id": "9e9f8c41.189ca",
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": 1869.5314979553223,
397         "y": 193.00022411346436,
398         "z": "f135a623.0543d8",
399         "wires": [
400             [
401                 "ce6f91ef.3d714"
402             ]
403         ]
404     },
405     {
406         "id": "ce6f91ef.3d714",
407         "type": "outcomeTrue",
408         "name": "true",
409         "xml": "<outcome value='true'>\n",
410         "comments": "",
411         "outputs": 1,
412         "x": 2072.5314178466797,
413         "y": 193.00019550323486,
414         "z": "f135a623.0543d8",
415         "wires": [
416             [
417                 "58a6c9b5.515018"
418             ]
419         ]
420     },
421     {
422         "id": "29210a5.c1b86f6",
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": 2790.5311737060547,
428         "y": 191.6002016067505,
429         "z": "f135a623.0543d8",
430         "wires": []
431     },
432     {
433         "id": "7be7fd6e.b84cb4",
434         "type": "block",
435         "name": "block",
436         "xml": "<block>\n",
437         "atomic": "false",
438         "comments": "",
439         "outputs": 1,
440         "x": 1583.5316696166992,
441         "y": 393.0002098083496,
442         "z": "f135a623.0543d8",
443         "wires": [
444             [
445                 "9e9f8c41.189ca",
446                 "496a4a60.f5cbc4",
447                 "f8848aaa.eca5f8",
448                 "6d2dca88.730874"
449             ]
450         ]
451     },
452     {
453         "id": "496a4a60.f5cbc4",
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": 1869.3832931518555,
460         "y": 254.000226020813,
461         "z": "f135a623.0543d8",
462         "wires": [
463             [
464                 "43a3f0e3.19198"
465             ]
466         ]
467     },
468     {
469         "id": "43a3f0e3.19198",
470         "type": "outcomeTrue",
471         "name": "true",
472         "xml": "<outcome value='true'>\n",
473         "comments": "",
474         "outputs": 1,
475         "x": 2071.383195877075,
476         "y": 254.0002899169922,
477         "z": "f135a623.0543d8",
478         "wires": [
479             [
480                 "41775fcc.20422"
481             ]
482         ]
483     },
484     {
485         "id": "ee55b9c9.49b6b8",
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": 2789.3834800720215,
491         "y": 253.600266456604,
492         "z": "f135a623.0543d8",
493         "wires": []
494     },
495     {
496         "id": "f8848aaa.eca5f8",
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": 1869.3833656311035,
503         "y": 314.00027561187744,
504         "z": "f135a623.0543d8",
505         "wires": [
506             [
507                 "b5f77746.96a768"
508             ]
509         ]
510     },
511     {
512         "id": "b5f77746.96a768",
513         "type": "outcomeTrue",
514         "name": "true",
515         "xml": "<outcome value='true'>\n",
516         "comments": "",
517         "outputs": 1,
518         "x": 2071.3832244873047,
519         "y": 314.00028705596924,
520         "z": "f135a623.0543d8",
521         "wires": [
522             [
523                 "b1f319ce.9914f8"
524             ]
525         ]
526     },
527     {
528         "id": "9b2ab1ad.17aaf",
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": 2787.3832244873047,
534         "y": 314.60026264190674,
535         "z": "f135a623.0543d8",
536         "wires": []
537     },
538     {
539         "id": "6d2dca88.730874",
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": 1866.383373260498,
546         "y": 390.22254276275635,
547         "z": "f135a623.0543d8",
548         "wires": [
549             [
550                 "cc5f4474.e42938"
551             ]
552         ]
553     },
554     {
555         "id": "cc5f4474.e42938",
556         "type": "outcomeTrue",
557         "name": "true",
558         "xml": "<outcome value='true'>\n",
559         "comments": "",
560         "outputs": 1,
561         "x": 2074.3832578659058,
562         "y": 389.2225408554077,
563         "z": "f135a623.0543d8",
564         "wires": [
565             [
566                 "b5f2e193.ef867"
567             ]
568         ]
569     },
570     {
571         "id": "4ead37e0.712608",
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": 2793.3832244873047,
577         "y": 388.82255268096924,
578         "z": "f135a623.0543d8",
579         "wires": []
580     },
581     {
582         "id": "58a6c9b5.515018",
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": 2317.5314178466797,
589         "y": 192.000226020813,
590         "z": "f135a623.0543d8",
591         "wires": [
592             [
593                 "e480f1f8.dda81",
594                 "404720ad.59648"
595             ]
596         ]
597     },
598     {
599         "id": "404720ad.59648",
600         "type": "outcome",
601         "name": "Other",
602         "xml": "<outcome value='Other'>\n",
603         "comments": "",
604         "outputs": 1,
605         "x": 2605.5314178466797,
606         "y": 191.000226020813,
607         "z": "f135a623.0543d8",
608         "wires": [
609             [
610                 "29210a5.c1b86f6"
611             ]
612         ]
613     },
614     {
615         "id": "e480f1f8.dda81",
616         "type": "outcome",
617         "name": "NULL",
618         "xml": "<outcome value=''>\n",
619         "comments": "",
620         "outputs": 1,
621         "x": 2603.531826019287,
622         "y": 122.00020503997803,
623         "z": "f135a623.0543d8",
624         "wires": [
625             [
626                 "e479132a.923ce"
627             ]
628         ]
629     },
630     {
631         "id": "41775fcc.20422",
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": 2317.5314178466797,
638         "y": 254.000226020813,
639         "z": "f135a623.0543d8",
640         "wires": [
641             [
642                 "e480f1f8.dda81",
643                 "17a1e965.948987"
644             ]
645         ]
646     },
647     {
648         "id": "17a1e965.948987",
649         "type": "outcome",
650         "name": "Other",
651         "xml": "<outcome value='Other'>\n",
652         "comments": "",
653         "outputs": 1,
654         "x": 2607.5314178466797,
655         "y": 254.000226020813,
656         "z": "f135a623.0543d8",
657         "wires": [
658             [
659                 "ee55b9c9.49b6b8"
660             ]
661         ]
662     },
663     {
664         "id": "b1f319ce.9914f8",
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": 2320.5314178466797,
671         "y": 315.000226020813,
672         "z": "f135a623.0543d8",
673         "wires": [
674             [
675                 "e480f1f8.dda81",
676                 "cdd37ad7.35df78"
677             ]
678         ]
679     },
680     {
681         "id": "cdd37ad7.35df78",
682         "type": "outcome",
683         "name": "Other",
684         "xml": "<outcome value='Other'>\n",
685         "comments": "",
686         "outputs": 1,
687         "x": 2608.5314178466797,
688         "y": 314.000226020813,
689         "z": "f135a623.0543d8",
690         "wires": [
691             [
692                 "9b2ab1ad.17aaf"
693             ]
694         ]
695     },
696     {
697         "id": "b5f2e193.ef867",
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": 2321.5314178466797,
704         "y": 389.000226020813,
705         "z": "f135a623.0543d8",
706         "wires": [
707             [
708                 "e480f1f8.dda81",
709                 "1419c0d9.5cb57f"
710             ]
711         ]
712     },
713     {
714         "id": "1419c0d9.5cb57f",
715         "type": "outcome",
716         "name": "Other",
717         "xml": "<outcome value='Other'>\n",
718         "comments": "",
719         "outputs": 1,
720         "x": 2611.5314178466797,
721         "y": 390.000226020813,
722         "z": "f135a623.0543d8",
723         "wires": [
724             [
725                 "4ead37e0.712608"
726             ]
727         ]
728     },
729     {
730         "id": "98ddfc72.d43d9",
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": 1237.0864562988281,
736         "y": 1433.7781085968018,
737         "z": "f135a623.0543d8",
738         "wires": []
739     },
740     {
741         "id": "ca2d548e.082f68",
742         "type": "block",
743         "name": "block",
744         "xml": "<block>\n",
745         "atomic": "false",
746         "comments": "",
747         "outputs": 1,
748         "x": 2324.1975135803223,
749         "y": 937.9999885559082,
750         "z": "f135a623.0543d8",
751         "wires": [
752             [
753                 "568e0d0f.176924"
754             ]
755         ]
756     },
757     {
758         "id": "bb6f25d3.83d998",
759         "type": "returnFailure",
760         "name": "return failure",
761         "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`\" />",
762         "comments": "",
763         "x": 2351.5309295654297,
764         "y": 861.0000514984131,
765         "z": "f135a623.0543d8",
766         "wires": []
767     },
768     {
769         "id": "e479132a.923ce",
770         "type": "returnFailure",
771         "name": "return failure",
772         "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",
773         "comments": "",
774         "x": 2786.5309143066406,
775         "y": 122.00002956390381,
776         "z": "f135a623.0543d8",
777         "wires": []
778     },
779     {
780         "id": "ede8d766.0fb378",
781         "type": "returnFailure",
782         "name": "return failure",
783         "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",
784         "comments": "",
785         "x": 1785.7867889404297,
786         "y": 725.0284938812256,
787         "z": "f135a623.0543d8",
788         "wires": []
789     },
790     {
791         "id": "c90fe181.73329",
792         "type": "returnFailure",
793         "name": "return failure",
794         "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",
795         "comments": "",
796         "x": 1915.4235076904297,
797         "y": 847.846700668335,
798         "z": "f135a623.0543d8",
799         "wires": []
800     },
801     {
802         "id": "45b79ec3.5bbd2",
803         "type": "save",
804         "name": "save:generic-vnf",
805         "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=  \"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`\"/>",
806         "comments": "",
807         "outputs": 1,
808         "x": 1560.5644626617432,
809         "y": 1289.0320949554443,
810         "z": "f135a623.0543d8",
811         "wires": [
812             [
813                 "9720d237.9ab5a",
814                 "ea7c0871.ebdfc8",
815                 "9a4cfbb2.d3a8d8"
816             ]
817         ]
818     },
819     {
820         "id": "9720d237.9ab5a",
821         "type": "failure",
822         "name": "failure",
823         "xml": "<outcome value='failure'>\n",
824         "comments": "",
825         "outputs": 1,
826         "x": 1796.7863178253174,
827         "y": 1160.9208526611328,
828         "z": "f135a623.0543d8",
829         "wires": [
830             [
831                 "bbf8d78d.8c6dd8"
832             ]
833         ]
834     },
835     {
836         "id": "ea7c0871.ebdfc8",
837         "type": "failure",
838         "name": "not-found",
839         "xml": "<outcome value='not-found'>\n",
840         "comments": "",
841         "outputs": 1,
842         "x": 1807.7621364593506,
843         "y": 1220.9367089271545,
844         "z": "f135a623.0543d8",
845         "wires": [
846             [
847                 "f882f752.137d88"
848             ]
849         ]
850     },
851     {
852         "id": "bbf8d78d.8c6dd8",
853         "type": "returnFailure",
854         "name": "return failure",
855         "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",
856         "comments": "",
857         "x": 2032.9288654327393,
858         "y": 1160.4923176765442,
859         "z": "f135a623.0543d8",
860         "wires": []
861     },
862     {
863         "id": "f882f752.137d88",
864         "type": "returnFailure",
865         "name": "return failure",
866         "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",
867         "comments": "",
868         "x": 2027.809663772583,
869         "y": 1221.4130234718323,
870         "z": "f135a623.0543d8",
871         "wires": []
872     },
873     {
874         "id": "9a4cfbb2.d3a8d8",
875         "type": "outcome",
876         "name": "success",
877         "xml": "<outcome value='success'>\n",
878         "comments": "",
879         "outputs": 1,
880         "x": 1801.3729419708252,
881         "y": 1286.0631890296936,
882         "z": "f135a623.0543d8",
883         "wires": [
884             []
885         ]
886     },
887     {
888         "id": "6292b001.56889",
889         "type": "record",
890         "name": "log file",
891         "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    ",
892         "comments": "",
893         "outputs": 1,
894         "x": 2009.3731956481934,
895         "y": 1284.0633182525635,
896         "z": "f135a623.0543d8",
897         "wires": [
898             []
899         ]
900     },
901     {
902         "id": "10ba27d1.b765f8",
903         "type": "save",
904         "name": "save:metadata",
905         "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`\" />",
906         "comments": "",
907         "outputs": 1,
908         "x": 1542.0637893676758,
909         "y": 1452.0319232940674,
910         "z": "f135a623.0543d8",
911         "wires": [
912             [
913                 "b441478d.1f9148",
914                 "17bb11c4.8fa90e",
915                 "ebf9ce7d.2261c"
916             ]
917         ]
918     },
919     {
920         "id": "b441478d.1f9148",
921         "type": "failure",
922         "name": "failure",
923         "xml": "<outcome value='failure'>\n",
924         "comments": "",
925         "outputs": 1,
926         "x": 1772.5392990112305,
927         "y": 1383.396526813507,
928         "z": "f135a623.0543d8",
929         "wires": [
930             [
931                 "e654ba85.7dfa08"
932             ]
933         ]
934     },
935     {
936         "id": "17bb11c4.8fa90e",
937         "type": "failure",
938         "name": "not-found",
939         "xml": "<outcome value='not-found'>\n",
940         "comments": "",
941         "outputs": 1,
942         "x": 1784.5154609680176,
943         "y": 1453.4124603271484,
944         "z": "f135a623.0543d8",
945         "wires": [
946             [
947                 "332a3386.5895dc"
948             ]
949         ]
950     },
951     {
952         "id": "e654ba85.7dfa08",
953         "type": "returnFailure",
954         "name": "return failure",
955         "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",
956         "comments": "",
957         "x": 2012.6820945739746,
958         "y": 1381.9680285453796,
959         "z": "f135a623.0543d8",
960         "wires": []
961     },
962     {
963         "id": "332a3386.5895dc",
964         "type": "returnFailure",
965         "name": "return failure",
966         "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",
967         "comments": "",
968         "x": 2009.562994003296,
969         "y": 1452.8886966705322,
970         "z": "f135a623.0543d8",
971         "wires": []
972     },
973     {
974         "id": "ebf9ce7d.2261c",
975         "type": "outcome",
976         "name": "success",
977         "xml": "<outcome value='success'>\n",
978         "comments": "",
979         "outputs": 1,
980         "x": 1779.1261711120605,
981         "y": 1523.538899898529,
982         "z": "f135a623.0543d8",
983         "wires": [
984             []
985         ]
986     },
987     {
988         "id": "7d0a0f4c.3633b",
989         "type": "record",
990         "name": "log file",
991         "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    ",
992         "comments": "",
993         "outputs": 1,
994         "x": 1990.1261711120605,
995         "y": 1523.538899898529,
996         "z": "f135a623.0543d8",
997         "wires": [
998             []
999         ]
1000     },
1001     {
1002         "id": "da212c99.cb2c6",
1003         "type": "block",
1004         "name": "block",
1005         "xml": "<block>\n",
1006         "atomic": "false",
1007         "comments": "",
1008         "outputs": 1,
1009         "x": 1255.6980628967285,
1010         "y": 1163.0006465911865,
1011         "z": "f135a623.0543d8",
1012         "wires": [
1013             [
1014                 "45b79ec3.5bbd2",
1015                 "10ba27d1.b765f8",
1016                 "662db182.a7563",
1017                 "3313131f.0c8d1c",
1018                 "bd6ec8f4.04e3a8"
1019             ]
1020         ]
1021     },
1022     {
1023         "id": "662db182.a7563",
1024         "type": "set",
1025         "name": "set:variables",
1026         "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",
1027         "comments": "",
1028         "x": 1544.6985321044922,
1029         "y": 1167.3336391448975,
1030         "z": "f135a623.0543d8",
1031         "wires": []
1032     },
1033     {
1034         "id": "3313131f.0c8d1c",
1035         "type": "execute",
1036         "name": "execute:generate",
1037         "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\">\n    <parameter name=\"ctx-destination\" value=\"prop.random-data\"/>",
1038         "comments": "",
1039         "outputs": 1,
1040         "x": 1563.0629119873047,
1041         "y": 1086.031545639038,
1042         "z": "f135a623.0543d8",
1043         "wires": [
1044             [
1045                 "61f3386a.396d88"
1046             ]
1047         ]
1048     },
1049     {
1050         "id": "61f3386a.396d88",
1051         "type": "success",
1052         "name": "success",
1053         "xml": "<outcome value='success'>\n",
1054         "comments": "",
1055         "outputs": 1,
1056         "x": 1801.062671661377,
1057         "y": 1087.0315761566162,
1058         "z": "f135a623.0543d8",
1059         "wires": [
1060             [
1061                 "1e9f0299.df61fd"
1062             ]
1063         ]
1064     },
1065     {
1066         "id": "1e9f0299.df61fd",
1067         "type": "execute",
1068         "name": "execute",
1069         "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",
1070         "comments": "",
1071         "outputs": 1,
1072         "x": 1988.0627269744873,
1073         "y": 1086.0314846038818,
1074         "z": "f135a623.0543d8",
1075         "wires": [
1076             [
1077                 "4fbc1b9e.fffd34"
1078             ]
1079         ]
1080     },
1081     {
1082         "id": "9e0485c3.32fc78",
1083         "type": "record",
1084         "name": "log file",
1085         "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    ",
1086         "comments": "",
1087         "outputs": 1,
1088         "x": 2320.062789916992,
1089         "y": 1084.031545639038,
1090         "z": "f135a623.0543d8",
1091         "wires": [
1092             []
1093         ]
1094     },
1095     {
1096         "id": "4fbc1b9e.fffd34",
1097         "type": "outcome",
1098         "name": "success",
1099         "xml": "<outcome value='success'>\n",
1100         "comments": "",
1101         "outputs": 1,
1102         "x": 2155.062665939331,
1103         "y": 1085.03151512146,
1104         "z": "f135a623.0543d8",
1105         "wires": [
1106             []
1107         ]
1108     },
1109     {
1110         "id": "568e0d0f.176924",
1111         "type": "set",
1112         "name": "set:variables",
1113         "xml": "<set>\n<parameter name='prop.bbs.serviceID' value=\"`$service-result.accessE2Eservice.serviceID`\"/>\n",
1114         "comments": "",
1115         "x": 2538.06254196167,
1116         "y": 937.0314273834229,
1117         "z": "f135a623.0543d8",
1118         "wires": []
1119     },
1120     {
1121         "id": "cfb87bad.450ae8",
1122         "type": "set",
1123         "name": "set:variables",
1124         "xml": "<set>\n<parameter name='prop.bbs.serviceID' value=\"HSI20190330\"/>\n\n",
1125         "comments": "",
1126         "x": 1234.3643798828125,
1127         "y": 926.3333797454834,
1128         "z": "f135a623.0543d8",
1129         "wires": []
1130     },
1131     {
1132         "id": "bd6ec8f4.04e3a8",
1133         "type": "save",
1134         "name": "save:relationship",
1135         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:relationship-list\" \n      key=\"service-instance.service-instance-id =  $network-topology-operation-input.service-information.service-id\n         AND customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id\n         AND service-subscription.service-type =  $network-topology-operation-input.service-information.subscription-service-type \n         AND service-instance.service-instance-id =  $network-topology-operation-input.service-information.service-instance-id\" force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-id`\" />\n ",
1136         "comments": "",
1137         "outputs": 1,
1138         "x": 1548.53125,
1139         "y": 1642.03125,
1140         "z": "f135a623.0543d8",
1141         "wires": [
1142             [
1143                 "1578cba7.023b84",
1144                 "40fbebd2.9a7d24",
1145                 "af6b94b5.5bf458"
1146             ]
1147         ]
1148     },
1149     {
1150         "id": "1578cba7.023b84",
1151         "type": "failure",
1152         "name": "failure",
1153         "xml": "<outcome value='failure'>\n",
1154         "comments": "",
1155         "outputs": 1,
1156         "x": 1799.53125,
1157         "y": 1595.03125,
1158         "z": "f135a623.0543d8",
1159         "wires": [
1160             [
1161                 "26c2f8e7.5d2188"
1162             ]
1163         ]
1164     },
1165     {
1166         "id": "40fbebd2.9a7d24",
1167         "type": "failure",
1168         "name": "not-found",
1169         "xml": "<outcome value='not-found'>\n",
1170         "comments": "",
1171         "outputs": 1,
1172         "x": 1811.507411956787,
1173         "y": 1665.0471835136414,
1174         "z": "f135a623.0543d8",
1175         "wires": [
1176             [
1177                 "d32cb96a.5805d8"
1178             ]
1179         ]
1180     },
1181     {
1182         "id": "26c2f8e7.5d2188",
1183         "type": "returnFailure",
1184         "name": "return failure",
1185         "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",
1186         "comments": "",
1187         "x": 2039.6740455627441,
1188         "y": 1593.6027517318726,
1189         "z": "f135a623.0543d8",
1190         "wires": []
1191     },
1192     {
1193         "id": "d32cb96a.5805d8",
1194         "type": "returnFailure",
1195         "name": "return failure",
1196         "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",
1197         "comments": "",
1198         "x": 2036.5549449920654,
1199         "y": 1664.5234198570251,
1200         "z": "f135a623.0543d8",
1201         "wires": []
1202     },
1203     {
1204         "id": "af6b94b5.5bf458",
1205         "type": "outcome",
1206         "name": "success",
1207         "xml": "<outcome value='success'>\n",
1208         "comments": "",
1209         "outputs": 1,
1210         "x": 1806.11812210083,
1211         "y": 1735.173623085022,
1212         "z": "f135a623.0543d8",
1213         "wires": [
1214             []
1215         ]
1216     }
1217 ]