SDWAN sdnc DGs aai resource changes
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
1 [
2   {
3     "id": "65a8b91d.24abd8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 151.00390625,
8     "y": 84.99999904632568,
9     "z": "8dba42d4.2fc58",
10     "wires": [
11       [
12         "84123a61.191508"
13       ]
14     ]
15   },
16   {
17     "id": "84123a61.191508",
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": 337.00391006469727,
26     "y": 157.00001621246338,
27     "z": "8dba42d4.2fc58",
28     "wires": [
29       [
30         "8bfdb728.fd5fb8"
31       ]
32     ]
33   },
34   {
35     "id": "8bfdb728.fd5fb8",
36     "type": "method",
37     "name": "method sdwan-network-topology-operation-activate",
38     "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 325.0040283203125,
42     "y": 244.99999904632568,
43     "z": "8dba42d4.2fc58",
44     "wires": [
45       [
46         "61fe5ec.24b3ea"
47       ]
48     ]
49   },
50   {
51     "id": "61fe5ec.24b3ea",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 499.00392150878906,
59     "y": 353.0000581741333,
60     "z": "8dba42d4.2fc58",
61     "wires": [
62       [
63         "1c31cf0.eb62931",
64         "3d6bcf7d.5c2b4",
65         "55b053ca.9c8fec",
66         "efb367a9.777348",
67         "faa41b3d.6507b8",
68         "25d677c3.3e42d8",
69         "eb7cc280.f6366",
70         "178920a9.13ec3f",
71         "546fc3e9.7052dc",
72         "dc4c0558.42daa8",
73         "f31fc51b.0a7188",
74         "2ab6006d.5b2cc",
75         "1a43627f.6e263e",
76         "204db58e.69892a",
77         "634732f9.1dcf5c",
78         "d5289859.e9ecf8"
79       ]
80     ]
81   },
82   {
83     "id": "1c31cf0.eb62931",
84     "type": "call",
85     "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
86     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
87     "comments": "",
88     "outputs": 1,
89     "x": 957.3928070068359,
90     "y": 101.99999904632568,
91     "z": "8dba42d4.2fc58",
92     "wires": [
93       []
94     ]
95   },
96   {
97     "id": "3d6bcf7d.5c2b4",
98     "type": "record",
99     "name": "record",
100     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
101     "comments": "",
102     "outputs": 1,
103     "x": 757.5595054626465,
104     "y": 155.77785205841064,
105     "z": "8dba42d4.2fc58",
106     "wires": [
107       []
108     ]
109   },
110   {
111     "id": "55b053ca.9c8fec",
112     "type": "set",
113     "name": "set networkId and network-object-path",
114     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $network-topology-operation-input.network-information.network-id  + '/network-data/'` \" />",
115     "comments": "",
116     "x": 844.5597839355469,
117     "y": 1078.3134682178497,
118     "z": "8dba42d4.2fc58",
119     "wires": []
120   },
121   {
122     "id": "efb367a9.777348",
123     "type": "returnSuccess",
124     "name": "return success",
125     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
126     "comments": "",
127     "x": 766.3375854492188,
128     "y": 1267.8688881397247,
129     "z": "8dba42d4.2fc58",
130     "wires": []
131   },
132   {
133     "id": "faa41b3d.6507b8",
134     "type": "set",
135     "name": "set network-level-oper-status",
136     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
137     "comments": "",
138     "x": 811.4486999511719,
139     "y": 1139.53564286232,
140     "z": "8dba42d4.2fc58",
141     "wires": []
142   },
143   {
144     "id": "25d677c3.3e42d8",
145     "type": "execute",
146     "name": "execute Properties",
147     "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",
148     "comments": "",
149     "outputs": 1,
150     "x": 789.8616104125977,
151     "y": 208.77788829803467,
152     "z": "8dba42d4.2fc58",
153     "wires": [
154       []
155     ]
156   },
157   {
158     "id": "eb7cc280.f6366",
159     "type": "update",
160     "name": "update SDWAN VPN status to AAI",
161     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n      key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
162     "comments": "",
163     "outputs": 1,
164     "x": 828.6674156188965,
165     "y": 1202.2388544082642,
166     "z": "8dba42d4.2fc58",
167     "wires": [
168       []
169     ]
170   },
171   {
172     "id": "178920a9.13ec3f",
173     "type": "set",
174     "name": "set network in service-data",
175     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
176     "comments": "",
177     "x": 805.0043144226074,
178     "y": 1025.0913021564484,
179     "z": "8dba42d4.2fc58",
180     "wires": []
181   },
182   {
183     "id": "546fc3e9.7052dc",
184     "type": "for",
185     "name": "for each network-input-parameters",
186     "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
187     "comments": "",
188     "outputs": 1,
189     "x": 842.00390625,
190     "y": 279.00390657782555,
191     "z": "8dba42d4.2fc58",
192     "wires": [
193       [
194         "7343f9f8.91aa58"
195       ]
196     ]
197   },
198   {
199     "id": "7343f9f8.91aa58",
200     "type": "block",
201     "name": "block",
202     "xml": "<block>\n",
203     "atomic": "false",
204     "comments": "",
205     "outputs": 1,
206     "x": 1098.8373374938965,
207     "y": 213.33725771307945,
208     "z": "8dba42d4.2fc58",
209     "wires": [
210       [
211         "8d49b6eb.aacfa8",
212         "75ed8e31.a1e03"
213       ]
214     ]
215   },
216   {
217     "id": "8d49b6eb.aacfa8",
218     "type": "switchNode",
219     "name": "switch name",
220     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
221     "comments": "",
222     "outputs": 1,
223     "x": 1289.8373985290527,
224     "y": 209.3372901380062,
225     "z": "8dba42d4.2fc58",
226     "wires": [
227       [
228         "9aed38f3.ef1268"
229       ]
230     ]
231   },
232   {
233     "id": "9aed38f3.ef1268",
234     "type": "outcomeTrue",
235     "name": "true",
236     "xml": "<outcome value='true'>\n",
237     "comments": "",
238     "outputs": 1,
239     "x": 1463.8375244140625,
240     "y": 209.33729395270348,
241     "z": "8dba42d4.2fc58",
242     "wires": [
243       [
244         "f86c1bb0.83c838"
245       ]
246     ]
247   },
248   {
249     "id": "f86c1bb0.83c838",
250     "type": "set",
251     "name": "set name",
252     "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
253     "comments": "",
254     "x": 1626.8374099731445,
255     "y": 208.9372886121273,
256     "z": "8dba42d4.2fc58",
257     "wires": []
258   },
259   {
260     "id": "1a43627f.6e263e",
261     "type": "get-resource",
262     "name": "get-resource esr-thirdparty-sdnc",
263     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
264     "comments": "",
265     "outputs": 1,
266     "x": 836.00390625,
267     "y": 388.00390657782555,
268     "z": "8dba42d4.2fc58",
269     "wires": [
270       [
271         "1feb8ff6.c06a9",
272         "a8710737.3b8c28",
273         "e42763ba.ed5ab"
274       ]
275     ]
276   },
277   {
278     "id": "1feb8ff6.c06a9",
279     "type": "success",
280     "name": "success",
281     "xml": "<outcome value='success'>\n",
282     "comments": "",
283     "outputs": 1,
284     "x": 1081.00390625,
285     "y": 334.00390657782555,
286     "z": "8dba42d4.2fc58",
287     "wires": [
288       [
289         "4a6a181d.584358"
290       ]
291     ]
292   },
293   {
294     "id": "a8710737.3b8c28",
295     "type": "not-found",
296     "name": "not-found",
297     "xml": "<outcome value='not-found'>\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 1084.494873046875,
301     "y": 381.5779422223568,
302     "z": "8dba42d4.2fc58",
303     "wires": [
304       [
305         "e9aab137.64b04"
306       ]
307     ]
308   },
309   {
310     "id": "e42763ba.ed5ab",
311     "type": "other",
312     "name": "other",
313     "xml": "<outcome value='Other'>\n",
314     "comments": "",
315     "outputs": 1,
316     "x": 1079.827880859375,
317     "y": 422.91125521063805,
318     "z": "8dba42d4.2fc58",
319     "wires": [
320       [
321         "4b35376e.7e4788"
322       ]
323     ]
324   },
325   {
326     "id": "4a6a181d.584358",
327     "type": "set",
328     "name": "set controller data",
329     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
330     "comments": "",
331     "x": 1278.5039672851562,
332     "y": 322.00390657782555,
333     "z": "8dba42d4.2fc58",
334     "wires": []
335   },
336   {
337     "id": "e9aab137.64b04",
338     "type": "returnFailure",
339     "name": "return failure",
340     "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
341     "comments": "",
342     "x": 1261.0662841796875,
343     "y": 369.86367830634117,
344     "z": "8dba42d4.2fc58",
345     "wires": []
346   },
347   {
348     "id": "4b35376e.7e4788",
349     "type": "returnFailure",
350     "name": "return failure",
351     "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
352     "comments": "",
353     "x": 1267.6004371643066,
354     "y": 418.35044798254967,
355     "z": "8dba42d4.2fc58",
356     "wires": []
357   },
358   {
359     "id": "204db58e.69892a",
360     "type": "execute",
361     "name": "execute RestApiCallNode Get token",
362     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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\"/>",
363     "comments": "",
364     "outputs": 1,
365     "x": 844.00390625,
366     "y": 499.00390657782555,
367     "z": "8dba42d4.2fc58",
368     "wires": [
369       [
370         "ced0b203.a391b",
371         "184980af.bcb96f"
372       ]
373     ]
374   },
375   {
376     "id": "ced0b203.a391b",
377     "type": "success",
378     "name": "success",
379     "xml": "<outcome value='success'>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 1083.003978729248,
383     "y": 477.0039367675781,
384     "z": "8dba42d4.2fc58",
385     "wires": [
386       [
387         "17cfd49c.8c98fb"
388       ]
389     ]
390   },
391   {
392     "id": "184980af.bcb96f",
393     "type": "failure",
394     "name": "failure",
395     "xml": "<outcome value='failure'>\n",
396     "comments": "",
397     "outputs": 1,
398     "x": 1075.253978729248,
399     "y": 530.6468200683594,
400     "z": "8dba42d4.2fc58",
401     "wires": [
402       [
403         "2ec37152.e84eee"
404       ]
405     ]
406   },
407   {
408     "id": "17cfd49c.8c98fb",
409     "type": "set",
410     "name": "set token-id",
411     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
412     "comments": "",
413     "x": 1233.00390625,
414     "y": 478.00390657782555,
415     "z": "8dba42d4.2fc58",
416     "wires": []
417   },
418   {
419     "id": "2ec37152.e84eee",
420     "type": "returnFailure",
421     "name": "return failure",
422     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
423     "comments": "",
424     "x": 1228.003978729248,
425     "y": 530.3968811035156,
426     "z": "8dba42d4.2fc58",
427     "wires": []
428   },
429   {
430     "id": "75ed8e31.a1e03",
431     "type": "switchNode",
432     "name": "switch topology",
433     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
434     "comments": "",
435     "outputs": 1,
436     "x": 1288.25390625,
437     "y": 262.00390657782555,
438     "z": "8dba42d4.2fc58",
439     "wires": [
440       [
441         "6c4b55cb.0408ec"
442       ]
443     ]
444   },
445   {
446     "id": "6c4b55cb.0408ec",
447     "type": "outcomeTrue",
448     "name": "true",
449     "xml": "<outcome value='true'>\n",
450     "comments": "",
451     "outputs": 1,
452     "x": 1462.2540321350098,
453     "y": 262.0039103925228,
454     "z": "8dba42d4.2fc58",
455     "wires": [
456       [
457         "6d553f1a.6f2d"
458       ]
459     ]
460   },
461   {
462     "id": "6d553f1a.6f2d",
463     "type": "set",
464     "name": "set topology",
465     "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
466     "comments": "",
467     "x": 1625.2539176940918,
468     "y": 261.60390505194664,
469     "z": "8dba42d4.2fc58",
470     "wires": []
471   },
472   {
473     "id": "634732f9.1dcf5c",
474     "type": "block",
475     "name": "block : atomic",
476     "xml": "<block atomic=\"true\">\n",
477     "atomic": "false",
478     "comments": "",
479     "outputs": 1,
480     "x": 765.7539520263672,
481     "y": 745.0040283203125,
482     "z": "8dba42d4.2fc58",
483     "wires": [
484       [
485         "f913ba01.d721f8"
486       ]
487     ]
488   },
489   {
490     "id": "f913ba01.d721f8",
491     "type": "execute",
492     "name": "execute RestApiCallNode Create network orchestration",
493     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
494     "comments": "",
495     "outputs": 1,
496     "x": 1086.2540588378906,
497     "y": 734.004111289978,
498     "z": "8dba42d4.2fc58",
499     "wires": [
500       []
501     ]
502   },
503   {
504     "id": "dc4c0558.42daa8",
505     "type": "block",
506     "name": "block : atomic",
507     "xml": "<block atomic=\"true\">\n",
508     "atomic": "false",
509     "comments": "",
510     "outputs": 1,
511     "x": 768.2539215087891,
512     "y": 807.0039566457272,
513     "z": "8dba42d4.2fc58",
514     "wires": [
515       [
516         "fb537bd1.22fa68",
517         "e996dfd6.0f7c",
518         "81b5cd25.b683d"
519       ]
520     ]
521   },
522   {
523     "id": "e996dfd6.0f7c",
524     "type": "execute",
525     "name": "execute RestApiCallNode Create vpn",
526     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
527     "comments": "",
528     "outputs": 1,
529     "x": 1039.7539672851562,
530     "y": 797.0040806233883,
531     "z": "8dba42d4.2fc58",
532     "wires": [
533       []
534     ]
535   },
536   {
537     "id": "fb537bd1.22fa68",
538     "type": "set",
539     "name": "set prop.vpn-id and prop.vpn1Id",
540     "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n",
541     "comments": "",
542     "x": 1035.7541236877441,
543     "y": 849.0041799545288,
544     "z": "8dba42d4.2fc58",
545     "wires": []
546   },
547   {
548     "id": "81b5cd25.b683d",
549     "type": "execute",
550     "name": "execute RestApiCallNode Create vpn topology",
551     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
552     "comments": "",
553     "outputs": 1,
554     "x": 1067.2539710998535,
555     "y": 901.0039548873901,
556     "z": "8dba42d4.2fc58",
557     "wires": [
558       []
559     ]
560   },
561   {
562     "id": "f31fc51b.0a7188",
563     "type": "set",
564     "name": "set tenant-id to service-data",
565     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
566     "comments": "",
567     "x": 803.2540588378906,
568     "y": 942.7540893554688,
569     "z": "8dba42d4.2fc58",
570     "wires": []
571   },
572   {
573     "id": "2ab6006d.5b2cc",
574     "type": "get-resource",
575     "name": "get-resource service-subscription",
576     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n        key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n        AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n      force=\"true\" pfx=\"tmp.AnAI-data\">\n      \n",
577     "comments": "",
578     "outputs": 1,
579     "x": 821.5040435791016,
580     "y": 648.2539405822754,
581     "z": "8dba42d4.2fc58",
582     "wires": [
583       [
584         "7a3e9a9e.b5ebe4",
585         "beceadfe.18cd7"
586       ]
587     ]
588   },
589   {
590     "id": "1272bfc5.9264a",
591     "type": "switchNode",
592     "name": "switch temp-ub-sub-account-id",
593     "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
594     "comments": "",
595     "outputs": 1,
596     "x": 1233.504135131836,
597     "y": 613.0040216445923,
598     "z": "8dba42d4.2fc58",
599     "wires": [
600       [
601         "89f0974b.4d94b8",
602         "b024d53.775b128"
603       ]
604     ]
605   },
606   {
607     "id": "89f0974b.4d94b8",
608     "type": "outcome",
609     "name": "NULL",
610     "xml": "<outcome value=''>",
611     "comments": "",
612     "outputs": 1,
613     "x": 1426.2185859680176,
614     "y": 587.0040626525879,
615     "z": "8dba42d4.2fc58",
616     "wires": [
617       [
618         "13ebb7af.038dc8"
619       ]
620     ]
621   },
622   {
623     "id": "b024d53.775b128",
624     "type": "other",
625     "name": "Other",
626     "xml": "<outcome value='Other'>",
627     "comments": "",
628     "outputs": 1,
629     "x": 1426.504150390625,
630     "y": 642.0040254592896,
631     "z": "8dba42d4.2fc58",
632     "wires": [
633       [
634         "fbfaef01.8c56a"
635       ]
636     ]
637   },
638   {
639     "id": "fbfaef01.8c56a",
640     "type": "set",
641     "name": "set prop.tenant-id",
642     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
643     "comments": "",
644     "x": 1582.5043258666992,
645     "y": 700.0039434432983,
646     "z": "8dba42d4.2fc58",
647     "wires": []
648   },
649   {
650     "id": "13ebb7af.038dc8",
651     "type": "block",
652     "name": "block : atomic",
653     "xml": "<block atomic=\"true\">\n",
654     "atomic": "false",
655     "comments": "",
656     "outputs": 1,
657     "x": 1564.2538948059082,
658     "y": 588.7539029121399,
659     "z": "8dba42d4.2fc58",
660     "wires": [
661       [
662         "4e788339.2d713c",
663         "a323c09d.a8718",
664         "93da7d77.20b82",
665         "fa0331db.90ed7",
666         "b9f4426f.77ac"
667       ]
668     ]
669   },
670   {
671     "id": "fa0331db.90ed7",
672     "type": "set",
673     "name": "set prop.customer-id",
674     "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
675     "comments": "",
676     "x": 1776.7542114257812,
677     "y": 525.7540578842163,
678     "z": "8dba42d4.2fc58",
679     "wires": []
680   },
681   {
682     "id": "4e788339.2d713c",
683     "type": "execute",
684     "name": "execute RestApiCallNode Create tenant",
685     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenanats'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
686     "comments": "",
687     "outputs": 1,
688     "x": 1837.75390625,
689     "y": 602.7539125978947,
690     "z": "8dba42d4.2fc58",
691     "wires": [
692       []
693     ]
694   },
695   {
696     "id": "a323c09d.a8718",
697     "type": "set",
698     "name": "set prop.tenant-id",
699     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
700     "comments": "",
701     "x": 1787.7541389465332,
702     "y": 654.7539834976196,
703     "z": "8dba42d4.2fc58",
704     "wires": []
705   },
706   {
707     "id": "93da7d77.20b82",
708     "type": "execute",
709     "name": "execute RestApiCallNode Create tenant auth",
710     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenanats/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
711     "comments": "",
712     "outputs": 1,
713     "x": 1855.254135131836,
714     "y": 690.5039834976196,
715     "z": "8dba42d4.2fc58",
716     "wires": [
717       []
718     ]
719   },
720   {
721     "id": "b9f4426f.77ac",
722     "type": "get-resource",
723     "name": "save-resource customer-id in service-subscription",
724     "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n        key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n        AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' />\n\n",
725     "comments": "",
726     "outputs": 1,
727     "x": 1857.7540130615234,
728     "y": 563.7540616989136,
729     "z": "8dba42d4.2fc58",
730     "wires": [
731       []
732     ]
733   },
734   {
735     "id": "7a3e9a9e.b5ebe4",
736     "type": "success",
737     "name": "success",
738     "xml": "<outcome value='success'>\n",
739     "comments": "",
740     "outputs": 1,
741     "x": 1032.00390625,
742     "y": 620.9999990463257,
743     "z": "8dba42d4.2fc58",
744     "wires": [
745       [
746         "1272bfc5.9264a"
747       ]
748     ]
749   },
750   {
751     "id": "beceadfe.18cd7",
752     "type": "failure",
753     "name": "failure",
754     "xml": "<outcome value='failure'>\n",
755     "comments": "",
756     "outputs": 1,
757     "x": 1024.25390625,
758     "y": 674.6428823471069,
759     "z": "8dba42d4.2fc58",
760     "wires": [
761       [
762         "e7f65c34.ba5cc"
763       ]
764     ]
765   },
766   {
767     "id": "e7f65c34.ba5cc",
768     "type": "returnFailure",
769     "name": "return failure",
770     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
771     "comments": "",
772     "x": 1177.00390625,
773     "y": 674.3929433822632,
774     "z": "8dba42d4.2fc58",
775     "wires": []
776   },
777   {
778     "id": "d5289859.e9ecf8",
779     "type": "set",
780     "name": "set  vpn-id to service-data",
781     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
782     "comments": "",
783     "x": 801.5039825439453,
784     "y": 980.5039672851562,
785     "z": "8dba42d4.2fc58",
786     "wires": []
787   }
788 ]