9f672c121d4af728241b59b5e0094cc7dad65e32
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
1 [
2   {
3     "id": "674547d2.8e25c8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 102.5039176940918,
8     "y": 36.00000238418579,
9     "z": "5630a65a.9ec898",
10     "wires": [
11       [
12         "e5902308.c1c82"
13       ]
14     ]
15   },
16   {
17     "id": "e5902308.c1c82",
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": 288.50392150878906,
26     "y": 108.00001955032349,
27     "z": "5630a65a.9ec898",
28     "wires": [
29       [
30         "790713af.f45e7c"
31       ]
32     ]
33   },
34   {
35     "id": "790713af.f45e7c",
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": 276.5040397644043,
42     "y": 196.0000023841858,
43     "z": "5630a65a.9ec898",
44     "wires": [
45       [
46         "e083889a.f74828"
47       ]
48     ]
49   },
50   {
51     "id": "e083889a.f74828",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 450.50393295288086,
59     "y": 304.0000615119934,
60     "z": "5630a65a.9ec898",
61     "wires": [
62       [
63         "6158cb8c.f46db4",
64         "81410bf9.e64458",
65         "781fc34d.70c51c",
66         "7be4b307.5359ec",
67         "2905e598.65892a",
68         "68901172.3a726",
69         "a0fba53c.970e38",
70         "944018c7.5a14b8",
71         "5e8274ed.a57dbc",
72         "f220bde6.61096",
73         "1ebcf5b8.ee7c3a",
74         "95959ba8.d84698",
75         "cf1e1603.5d6118",
76         "f18b4542.7d2158",
77         "581db18a.df70a"
78       ]
79     ]
80   },
81   {
82     "id": "6158cb8c.f46db4",
83     "type": "call",
84     "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
85     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
86     "comments": "",
87     "outputs": 1,
88     "x": 908.8928184509277,
89     "y": 53.00000238418579,
90     "z": "5630a65a.9ec898",
91     "wires": [
92       []
93     ]
94   },
95   {
96     "id": "81410bf9.e64458",
97     "type": "record",
98     "name": "record",
99     "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",
100     "comments": "",
101     "outputs": 1,
102     "x": 709.0595169067383,
103     "y": 106.77785539627075,
104     "z": "5630a65a.9ec898",
105     "wires": [
106       []
107     ]
108   },
109   {
110     "id": "781fc34d.70c51c",
111     "type": "set",
112     "name": "set networkId and network-object-path",
113     "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/'` \" />",
114     "comments": "",
115     "x": 796.0597953796387,
116     "y": 1029.3134715557098,
117     "z": "5630a65a.9ec898",
118     "wires": []
119   },
120   {
121     "id": "7be4b307.5359ec",
122     "type": "returnSuccess",
123     "name": "return success",
124     "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",
125     "comments": "",
126     "x": 717.8375968933105,
127     "y": 1218.8688914775848,
128     "z": "5630a65a.9ec898",
129     "wires": []
130   },
131   {
132     "id": "2905e598.65892a",
133     "type": "set",
134     "name": "set network-level-oper-status",
135     "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`' />",
136     "comments": "",
137     "x": 762.9487113952637,
138     "y": 1090.53564620018,
139     "z": "5630a65a.9ec898",
140     "wires": []
141   },
142   {
143     "id": "68901172.3a726",
144     "type": "execute",
145     "name": "execute Properties",
146     "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",
147     "comments": "",
148     "outputs": 1,
149     "x": 741.3616218566895,
150     "y": 159.77789163589478,
151     "z": "5630a65a.9ec898",
152     "wires": [
153       []
154     ]
155   },
156   {
157     "id": "a0fba53c.970e38",
158     "type": "update",
159     "name": "update SDWAN VPN status to AAI",
160     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n      key='sdwan-vpn.id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanatId' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
161     "comments": "",
162     "outputs": 1,
163     "x": 780.1674270629883,
164     "y": 1153.2388577461243,
165     "z": "5630a65a.9ec898",
166     "wires": [
167       []
168     ]
169   },
170   {
171     "id": "944018c7.5a14b8",
172     "type": "set",
173     "name": "set network in service-data",
174     "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.`' />",
175     "comments": "",
176     "x": 756.5043258666992,
177     "y": 976.0913054943085,
178     "z": "5630a65a.9ec898",
179     "wires": []
180   },
181   {
182     "id": "5e8274ed.a57dbc",
183     "type": "for",
184     "name": "for each network-input-parameters",
185     "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
186     "comments": "",
187     "outputs": 1,
188     "x": 793.5039176940918,
189     "y": 230.00390991568565,
190     "z": "5630a65a.9ec898",
191     "wires": [
192       [
193         "aff4cb70.f51d18"
194       ]
195     ]
196   },
197   {
198     "id": "aff4cb70.f51d18",
199     "type": "block",
200     "name": "block",
201     "xml": "<block>\n",
202     "atomic": "false",
203     "comments": "",
204     "outputs": 1,
205     "x": 1050.3373489379883,
206     "y": 164.33726105093956,
207     "z": "5630a65a.9ec898",
208     "wires": [
209       [
210         "55124a0e.ecead4",
211         "b20e40a7.db9f2"
212       ]
213     ]
214   },
215   {
216     "id": "55124a0e.ecead4",
217     "type": "switchNode",
218     "name": "switch name",
219     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 1241.3374099731445,
223     "y": 160.33729347586632,
224     "z": "5630a65a.9ec898",
225     "wires": [
226       [
227         "c7d7c03b.f2fa6"
228       ]
229     ]
230   },
231   {
232     "id": "c7d7c03b.f2fa6",
233     "type": "outcomeTrue",
234     "name": "true",
235     "xml": "<outcome value='true'>\n",
236     "comments": "",
237     "outputs": 1,
238     "x": 1415.3375358581543,
239     "y": 160.33729729056358,
240     "z": "5630a65a.9ec898",
241     "wires": [
242       [
243         "af327670.c19a78"
244       ]
245     ]
246   },
247   {
248     "id": "af327670.c19a78",
249     "type": "set",
250     "name": "set name",
251     "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
252     "comments": "",
253     "x": 1578.3374214172363,
254     "y": 159.9372919499874,
255     "z": "5630a65a.9ec898",
256     "wires": []
257   },
258   {
259     "id": "f220bde6.61096",
260     "type": "get-resource",
261     "name": "get-resource esr-thirdparty-sdnc",
262     "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 = 'SDWAN-Controller' AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
263     "comments": "",
264     "outputs": 1,
265     "x": 787.5039176940918,
266     "y": 339.00390991568565,
267     "z": "5630a65a.9ec898",
268     "wires": [
269       [
270         "9390ab8d.339038",
271         "422112c5.89ee3c",
272         "b2fc220b.c981"
273       ]
274     ]
275   },
276   {
277     "id": "9390ab8d.339038",
278     "type": "success",
279     "name": "success",
280     "xml": "<outcome value='success'>\n",
281     "comments": "",
282     "outputs": 1,
283     "x": 1032.5039176940918,
284     "y": 285.00390991568565,
285     "z": "5630a65a.9ec898",
286     "wires": [
287       [
288         "b9e9d09e.1a521"
289       ]
290     ]
291   },
292   {
293     "id": "422112c5.89ee3c",
294     "type": "not-found",
295     "name": "not-found",
296     "xml": "<outcome value='not-found'>\n",
297     "comments": "",
298     "outputs": 1,
299     "x": 1035.9948844909668,
300     "y": 332.5779455602169,
301     "z": "5630a65a.9ec898",
302     "wires": [
303       [
304         "fc9a3019.525c8"
305       ]
306     ]
307   },
308   {
309     "id": "b2fc220b.c981",
310     "type": "other",
311     "name": "other",
312     "xml": "<outcome value='Other'>\n",
313     "comments": "",
314     "outputs": 1,
315     "x": 1031.3278923034668,
316     "y": 373.91125854849815,
317     "z": "5630a65a.9ec898",
318     "wires": [
319       [
320         "9d79278.15d3ed8"
321       ]
322     ]
323   },
324   {
325     "id": "b9e9d09e.1a521",
326     "type": "set",
327     "name": "set controller data",
328     "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",
329     "comments": "",
330     "x": 1230.003978729248,
331     "y": 273.00390991568565,
332     "z": "5630a65a.9ec898",
333     "wires": []
334   },
335   {
336     "id": "fc9a3019.525c8",
337     "type": "returnFailure",
338     "name": "return failure",
339     "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",
340     "comments": "",
341     "x": 1212.5662956237793,
342     "y": 320.8636816442013,
343     "z": "5630a65a.9ec898",
344     "wires": []
345   },
346   {
347     "id": "9d79278.15d3ed8",
348     "type": "returnFailure",
349     "name": "return failure",
350     "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",
351     "comments": "",
352     "x": 1219.1004486083984,
353     "y": 369.3504513204098,
354     "z": "5630a65a.9ec898",
355     "wires": []
356   },
357   {
358     "id": "1ebcf5b8.ee7c3a",
359     "type": "execute",
360     "name": "execute RestApiCallNode Get token",
361     "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\"/>",
362     "comments": "",
363     "outputs": 1,
364     "x": 795.5039176940918,
365     "y": 450.00390991568565,
366     "z": "5630a65a.9ec898",
367     "wires": [
368       [
369         "fd9ecfb8.dcb2c",
370         "2aa6377a.1dbc88"
371       ]
372     ]
373   },
374   {
375     "id": "fd9ecfb8.dcb2c",
376     "type": "success",
377     "name": "success",
378     "xml": "<outcome value='success'>\n",
379     "comments": "",
380     "outputs": 1,
381     "x": 1030.5039176940918,
382     "y": 428.00390991568565,
383     "z": "5630a65a.9ec898",
384     "wires": [
385       [
386         "ff15f3bd.bf298"
387       ]
388     ]
389   },
390   {
391     "id": "2aa6377a.1dbc88",
392     "type": "failure",
393     "name": "failure",
394     "xml": "<outcome value='failure'>\n",
395     "comments": "",
396     "outputs": 1,
397     "x": 1022.7539176940918,
398     "y": 481.6467932164669,
399     "z": "5630a65a.9ec898",
400     "wires": [
401       [
402         "95badc84.277a8"
403       ]
404     ]
405   },
406   {
407     "id": "ff15f3bd.bf298",
408     "type": "set",
409     "name": "set token-id",
410     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
411     "comments": "",
412     "x": 1184.5039176940918,
413     "y": 429.00390991568565,
414     "z": "5630a65a.9ec898",
415     "wires": []
416   },
417   {
418     "id": "95badc84.277a8",
419     "type": "returnFailure",
420     "name": "return failure",
421     "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",
422     "comments": "",
423     "x": 1175.5039176940918,
424     "y": 481.39685425162315,
425     "z": "5630a65a.9ec898",
426     "wires": []
427   },
428   {
429     "id": "b20e40a7.db9f2",
430     "type": "switchNode",
431     "name": "switch topology",
432     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
433     "comments": "",
434     "outputs": 1,
435     "x": 1239.7539176940918,
436     "y": 213.00390991568565,
437     "z": "5630a65a.9ec898",
438     "wires": [
439       [
440         "968633ac.1886b"
441       ]
442     ]
443   },
444   {
445     "id": "968633ac.1886b",
446     "type": "outcomeTrue",
447     "name": "true",
448     "xml": "<outcome value='true'>\n",
449     "comments": "",
450     "outputs": 1,
451     "x": 1413.7540435791016,
452     "y": 213.00391373038292,
453     "z": "5630a65a.9ec898",
454     "wires": [
455       [
456         "28e1e286.2c199e"
457       ]
458     ]
459   },
460   {
461     "id": "28e1e286.2c199e",
462     "type": "set",
463     "name": "set topology",
464     "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
465     "comments": "",
466     "x": 1576.7539291381836,
467     "y": 212.60390838980675,
468     "z": "5630a65a.9ec898",
469     "wires": []
470   },
471   {
472     "id": "95959ba8.d84698",
473     "type": "block",
474     "name": "block : atomic",
475     "xml": "<block atomic=\"true\">\n",
476     "atomic": "false",
477     "comments": "",
478     "outputs": 1,
479     "x": 722.2539329528809,
480     "y": 650.0039599835873,
481     "z": "5630a65a.9ec898",
482     "wires": [
483       [
484         "c37fc252.ca32b"
485       ]
486     ]
487   },
488   {
489     "id": "c37fc252.ca32b",
490     "type": "execute",
491     "name": "execute RestApiCallNode Create network orchestration",
492     "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`\" />",
493     "comments": "",
494     "outputs": 1,
495     "x": 1044.7539825439453,
496     "y": 653.0040616989136,
497     "z": "5630a65a.9ec898",
498     "wires": [
499       []
500     ]
501   },
502   {
503     "id": "cf1e1603.5d6118",
504     "type": "block",
505     "name": "block : atomic",
506     "xml": "<block atomic=\"true\">\n",
507     "atomic": "false",
508     "comments": "",
509     "outputs": 1,
510     "x": 719.7539329528809,
511     "y": 758.0039599835873,
512     "z": "5630a65a.9ec898",
513     "wires": [
514       [
515         "e379ec58.8ceb2",
516         "3e353248.8e09fe",
517         "6943d9d8.2f1f68"
518       ]
519     ]
520   },
521   {
522     "id": "e379ec58.8ceb2",
523     "type": "execute",
524     "name": "execute RestApiCallNode Create vpn",
525     "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`\" />",
526     "comments": "",
527     "outputs": 1,
528     "x": 991.253978729248,
529     "y": 748.0040839612484,
530     "z": "5630a65a.9ec898",
531     "wires": [
532       []
533     ]
534   },
535   {
536     "id": "3e353248.8e09fe",
537     "type": "set",
538     "name": "set prop.vpn-id and prop.vpn1Id",
539     "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.id`' />\n",
540     "comments": "",
541     "x": 975.2541313171387,
542     "y": 800.004145950079,
543     "z": "5630a65a.9ec898",
544     "wires": []
545   },
546   {
547     "id": "6943d9d8.2f1f68",
548     "type": "execute",
549     "name": "execute RestApiCallNode Create vpn topology",
550     "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`\" />",
551     "comments": "",
552     "outputs": 1,
553     "x": 1018.7539825439453,
554     "y": 852.0039582252502,
555     "z": "5630a65a.9ec898",
556     "wires": [
557       []
558     ]
559   },
560   {
561     "id": "f18b4542.7d2158",
562     "type": "set",
563     "name": "set tenant-id and vpn-id to service-data",
564     "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[$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1].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 + 1].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 + 2`' />",
565     "comments": "",
566     "x": 798.7539215087891,
567     "y": 921.7539792060852,
568     "z": "5630a65a.9ec898",
569     "wires": []
570   },
571   {
572     "id": "581db18a.df70a",
573     "type": "get-resource",
574     "name": "get-resource service-subscription",
575     "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",
576     "comments": "",
577     "outputs": 1,
578     "x": 786.0039520263672,
579     "y": 547.2539210319519,
580     "z": "5630a65a.9ec898",
581     "wires": [
582       [
583         "fcef5013.081b8"
584       ]
585     ]
586   },
587   {
588     "id": "fcef5013.081b8",
589     "type": "switchNode",
590     "name": "switch temp-ub-sub-account-id",
591     "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
592     "comments": "",
593     "outputs": 1,
594     "x": 1078.003993988037,
595     "y": 539.0039348602295,
596     "z": "5630a65a.9ec898",
597     "wires": [
598       [
599         "a4ce55d.f40f1a8",
600         "90c8ccd1.35a13"
601       ]
602     ]
603   },
604   {
605     "id": "a4ce55d.f40f1a8",
606     "type": "outcome",
607     "name": "NULL",
608     "xml": "<outcome value=''>",
609     "comments": "",
610     "outputs": 1,
611     "x": 1299.7182807922363,
612     "y": 540.0039367675781,
613     "z": "5630a65a.9ec898",
614     "wires": [
615       [
616         "d1e6018.8be3d"
617       ]
618     ]
619   },
620   {
621     "id": "90c8ccd1.35a13",
622     "type": "other",
623     "name": "Other",
624     "xml": "<outcome value='Other'>",
625     "comments": "",
626     "outputs": 1,
627     "x": 1301.00390625,
628     "y": 594.00390625,
629     "z": "5630a65a.9ec898",
630     "wires": [
631       [
632         "3ebb744f.dbc61c"
633       ]
634     ]
635   },
636   {
637     "id": "3ebb744f.dbc61c",
638     "type": "set",
639     "name": "set prop.tenant-id",
640     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
641     "comments": "",
642     "x": 1487.0041427612305,
643     "y": 594.0039291381836,
644     "z": "5630a65a.9ec898",
645     "wires": []
646   },
647   {
648     "id": "d1e6018.8be3d",
649     "type": "block",
650     "name": "block : atomic",
651     "xml": "<block atomic=\"true\">\n",
652     "atomic": "false",
653     "comments": "",
654     "outputs": 1,
655     "x": 1515.75390625,
656     "y": 539.75390625,
657     "z": "5630a65a.9ec898",
658     "wires": [
659       [
660         "3f91e970.83e3f6",
661         "df20c5db.1ec7f8",
662         "8a6f7c34.568fe",
663         "f54989e1.a4a098",
664         "eb872c81.f35e"
665       ]
666     ]
667   },
668   {
669     "id": "f54989e1.a4a098",
670     "type": "set",
671     "name": "set prop.customer-id",
672     "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
673     "comments": "",
674     "x": 1728.2540321350098,
675     "y": 492.75404182076454,
676     "z": "5630a65a.9ec898",
677     "wires": []
678   },
679   {
680     "id": "3f91e970.83e3f6",
681     "type": "execute",
682     "name": "execute RestApiCallNode Create tenant",
683     "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`\" />",
684     "comments": "",
685     "outputs": 1,
686     "x": 1789.2539176940918,
687     "y": 553.7539159357548,
688     "z": "5630a65a.9ec898",
689     "wires": [
690       []
691     ]
692   },
693   {
694     "id": "df20c5db.1ec7f8",
695     "type": "set",
696     "name": "set prop.tenant-id",
697     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
698     "comments": "",
699     "x": 1722.253963470459,
700     "y": 582.7538844645023,
701     "z": "5630a65a.9ec898",
702     "wires": []
703   },
704   {
705     "id": "8a6f7c34.568fe",
706     "type": "execute",
707     "name": "execute RestApiCallNode Create tenant auth",
708     "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`\" />",
709     "comments": "",
710     "outputs": 1,
711     "x": 1803.7538719177246,
712     "y": 613.5038854181767,
713     "z": "5630a65a.9ec898",
714     "wires": [
715       []
716     ]
717   },
718   {
719     "id": "eb872c81.f35e",
720     "type": "get-resource",
721     "name": "save-resource customer-id in service-subscription",
722     "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",
723     "comments": "",
724     "outputs": 1,
725     "x": 1819.253963470459,
726     "y": 524.7540208399296,
727     "z": "5630a65a.9ec898",
728     "wires": [
729       []
730     ]
731   }
732 ]