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