Refactored SOTN and SDWAN DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "fd56c256.6611d",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 102,
8     "y": 37,
9     "z": "88e745dd.c19a68",
10     "wires": [
11       [
12         "e8a2c571.7151d8"
13       ]
14     ]
15   },
16   {
17     "id": "e8a2c571.7151d8",
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": 264.00000381469727,
26     "y": 109.00001621246338,
27     "z": "88e745dd.c19a68",
28     "wires": [
29       [
30         "501691b7.b8579"
31       ]
32     ]
33   },
34   {
35     "id": "501691b7.b8579",
36     "type": "method",
37     "name": "method sdwan-network-topology-operation-deactivate",
38     "xml": "<method rpc='sdwan-network-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 252.0001220703125,
42     "y": 196.99999904632568,
43     "z": "88e745dd.c19a68",
44     "wires": [
45       [
46         "f268dab.9a2e128"
47       ]
48     ]
49   },
50   {
51     "id": "f268dab.9a2e128",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 426.00001525878906,
59     "y": 305.0000581741333,
60     "z": "88e745dd.c19a68",
61     "wires": [
62       [
63         "b31f4e4c.0f578",
64         "34c8ec0.c180514",
65         "613a4de8.024144",
66         "5f55a204.78493c",
67         "b7c0b37c.27c35",
68         "f96046b8.ac5b48",
69         "f78b989e.79da48",
70         "76b3c50a.02876c",
71         "ad00b85d.5bef68",
72         "b370ae59.4bce9",
73         "2ec15.4c1aa3ebc",
74         "988eea5f.5a0298",
75         "2cf3fcb4.da9384",
76         "9a8305f1.e08cb8"
77       ]
78     ]
79   },
80   {
81     "id": "b31f4e4c.0f578",
82     "type": "call",
83     "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
84     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
85     "comments": "",
86     "outputs": 1,
87     "x": 884.3889007568359,
88     "y": 53.999999046325684,
89     "z": "88e745dd.c19a68",
90     "wires": [
91       []
92     ]
93   },
94   {
95     "id": "34c8ec0.c180514",
96     "type": "record",
97     "name": "record",
98     "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-deactivate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Deactivate\"/>\n",
99     "comments": "",
100     "outputs": 1,
101     "x": 684.5555992126465,
102     "y": 107.77785205841064,
103     "z": "88e745dd.c19a68",
104     "wires": [
105       []
106     ]
107   },
108   {
109     "id": "613a4de8.024144",
110     "type": "set",
111     "name": "set networkId and network-object-path",
112     "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/'` \" />",
113     "comments": "",
114     "x": 786.5558738708496,
115     "y": 849.3134832382202,
116     "z": "88e745dd.c19a68",
117     "wires": []
118   },
119   {
120     "id": "5f55a204.78493c",
121     "type": "returnSuccess",
122     "name": "return success",
123     "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",
124     "comments": "",
125     "x": 708.3336753845215,
126     "y": 1038.8689031600952,
127     "z": "88e745dd.c19a68",
128     "wires": []
129   },
130   {
131     "id": "b7c0b37c.27c35",
132     "type": "set",
133     "name": "set network-level-oper-status",
134     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />\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`' />",
135     "comments": "",
136     "x": 753.4447898864746,
137     "y": 910.5356578826904,
138     "z": "88e745dd.c19a68",
139     "wires": []
140   },
141   {
142     "id": "f96046b8.ac5b48",
143     "type": "execute",
144     "name": "execute Properties",
145     "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",
146     "comments": "",
147     "outputs": 1,
148     "x": 716.8577041625977,
149     "y": 160.77788829803467,
150     "z": "88e745dd.c19a68",
151     "wires": [
152       []
153     ]
154   },
155   {
156     "id": "f78b989e.79da48",
157     "type": "set",
158     "name": "set network in service-data",
159     "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.`' />",
160     "comments": "",
161     "x": 747.0004043579102,
162     "y": 796.0913171768188,
163     "z": "88e745dd.c19a68",
164     "wires": []
165   },
166   {
167     "id": "76b3c50a.02876c",
168     "type": "for",
169     "name": "for each network-input-parameters",
170     "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
171     "comments": "",
172     "outputs": 1,
173     "x": 769,
174     "y": 231.00390657782555,
175     "z": "88e745dd.c19a68",
176     "wires": [
177       [
178         "1c6b88c6.f49ce7"
179       ]
180     ]
181   },
182   {
183     "id": "1c6b88c6.f49ce7",
184     "type": "block",
185     "name": "block",
186     "xml": "<block>\n",
187     "atomic": "false",
188     "comments": "",
189     "outputs": 1,
190     "x": 1025.8334312438965,
191     "y": 165.33725771307945,
192     "z": "88e745dd.c19a68",
193     "wires": [
194       [
195         "903569b7.4e2578",
196         "653d2c3c.262b14",
197         "c5910d9a.730a3",
198         "5b432d19.74fce4"
199       ]
200     ]
201   },
202   {
203     "id": "903569b7.4e2578",
204     "type": "switchNode",
205     "name": "switch name",
206     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 1247.833511352539,
210     "y": 55.33729267120361,
211     "z": "88e745dd.c19a68",
212     "wires": [
213       [
214         "138e36c7.964e29"
215       ]
216     ]
217   },
218   {
219     "id": "138e36c7.964e29",
220     "type": "outcomeTrue",
221     "name": "true",
222     "xml": "<outcome value='true'>\n",
223     "comments": "",
224     "outputs": 1,
225     "x": 1421.8336372375488,
226     "y": 55.33729648590088,
227     "z": "88e745dd.c19a68",
228     "wires": [
229       [
230         "cd7bebad.986118"
231       ]
232     ]
233   },
234   {
235     "id": "cd7bebad.986118",
236     "type": "set",
237     "name": "set name",
238     "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
239     "comments": "",
240     "x": 1584.8335227966309,
241     "y": 54.93729114532471,
242     "z": "88e745dd.c19a68",
243     "wires": []
244   },
245   {
246     "id": "ad00b85d.5bef68",
247     "type": "get-resource",
248     "name": "get-resource esr-thirdparty-sdnc",
249     "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",
250     "comments": "",
251     "outputs": 1,
252     "x": 763,
253     "y": 340.00390657782555,
254     "z": "88e745dd.c19a68",
255     "wires": [
256       [
257         "2b0c648a.f8433c",
258         "f2e86cdd.3128a",
259         "918162b5.31748"
260       ]
261     ]
262   },
263   {
264     "id": "2b0c648a.f8433c",
265     "type": "success",
266     "name": "success",
267     "xml": "<outcome value='success'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1008,
271     "y": 286.00390657782555,
272     "z": "88e745dd.c19a68",
273     "wires": [
274       [
275         "a06faa05.f76618"
276       ]
277     ]
278   },
279   {
280     "id": "f2e86cdd.3128a",
281     "type": "not-found",
282     "name": "not-found",
283     "xml": "<outcome value='not-found'>\n",
284     "comments": "",
285     "outputs": 1,
286     "x": 1011.490966796875,
287     "y": 333.5779422223568,
288     "z": "88e745dd.c19a68",
289     "wires": [
290       [
291         "37a1f73b.b96e68"
292       ]
293     ]
294   },
295   {
296     "id": "918162b5.31748",
297     "type": "other",
298     "name": "other",
299     "xml": "<outcome value='Other'>\n",
300     "comments": "",
301     "outputs": 1,
302     "x": 1006.823974609375,
303     "y": 374.91125521063805,
304     "z": "88e745dd.c19a68",
305     "wires": [
306       [
307         "4f66c6a.4583438"
308       ]
309     ]
310   },
311   {
312     "id": "a06faa05.f76618",
313     "type": "set",
314     "name": "set controller data",
315     "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",
316     "comments": "",
317     "x": 1205.5000610351562,
318     "y": 274.00390657782555,
319     "z": "88e745dd.c19a68",
320     "wires": []
321   },
322   {
323     "id": "37a1f73b.b96e68",
324     "type": "returnFailure",
325     "name": "return failure",
326     "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",
327     "comments": "",
328     "x": 1188.0623779296875,
329     "y": 321.86367830634117,
330     "z": "88e745dd.c19a68",
331     "wires": []
332   },
333   {
334     "id": "4f66c6a.4583438",
335     "type": "returnFailure",
336     "name": "return failure",
337     "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",
338     "comments": "",
339     "x": 1194.5965309143066,
340     "y": 370.35044798254967,
341     "z": "88e745dd.c19a68",
342     "wires": []
343   },
344   {
345     "id": "b370ae59.4bce9",
346     "type": "execute",
347     "name": "execute RestApiCallNode Get token",
348     "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.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\"/>",
349     "comments": "",
350     "outputs": 1,
351     "x": 771,
352     "y": 451.00390657782555,
353     "z": "88e745dd.c19a68",
354     "wires": [
355       [
356         "61a5287d.5d14f8",
357         "99df3ba8.a50248"
358       ]
359     ]
360   },
361   {
362     "id": "61a5287d.5d14f8",
363     "type": "success",
364     "name": "success",
365     "xml": "<outcome value='success'>\n",
366     "comments": "",
367     "outputs": 1,
368     "x": 1006,
369     "y": 429.00390657782555,
370     "z": "88e745dd.c19a68",
371     "wires": [
372       [
373         "951e43bb.f165"
374       ]
375     ]
376   },
377   {
378     "id": "99df3ba8.a50248",
379     "type": "failure",
380     "name": "failure",
381     "xml": "<outcome value='failure'>\n",
382     "comments": "",
383     "outputs": 1,
384     "x": 998.25,
385     "y": 482.6467898786068,
386     "z": "88e745dd.c19a68",
387     "wires": [
388       [
389         "f26ec62f.ef46a8"
390       ]
391     ]
392   },
393   {
394     "id": "951e43bb.f165",
395     "type": "set",
396     "name": "set token-id",
397     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
398     "comments": "",
399     "x": 1160,
400     "y": 430.00390657782555,
401     "z": "88e745dd.c19a68",
402     "wires": []
403   },
404   {
405     "id": "f26ec62f.ef46a8",
406     "type": "returnFailure",
407     "name": "return failure",
408     "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",
409     "comments": "",
410     "x": 1151,
411     "y": 482.39685091376305,
412     "z": "88e745dd.c19a68",
413     "wires": []
414   },
415   {
416     "id": "653d2c3c.262b14",
417     "type": "switchNode",
418     "name": "switch topology",
419     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 1253.249984741211,
423     "y": 98.00390696525574,
424     "z": "88e745dd.c19a68",
425     "wires": [
426       [
427         "42e996e4.f57c78"
428       ]
429     ]
430   },
431   {
432     "id": "42e996e4.f57c78",
433     "type": "outcomeTrue",
434     "name": "true",
435     "xml": "<outcome value='true'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 1427.2501106262207,
439     "y": 98.003910779953,
440     "z": "88e745dd.c19a68",
441     "wires": [
442       [
443         "36533d51.327db2"
444       ]
445     ]
446   },
447   {
448     "id": "36533d51.327db2",
449     "type": "set",
450     "name": "set topology",
451     "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
452     "comments": "",
453     "x": 1590.2499961853027,
454     "y": 97.60390543937683,
455     "z": "88e745dd.c19a68",
456     "wires": []
457   },
458   {
459     "id": "2ec15.4c1aa3ebc",
460     "type": "execute",
461     "name": "execute RestApiCallNode delete vpn",
462     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-delete.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn/action/batch-delete'`\" />\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.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
463     "comments": "",
464     "outputs": 1,
465     "x": 779.7501068115234,
466     "y": 733.0041427612305,
467     "z": "88e745dd.c19a68",
468     "wires": [
469       []
470     ]
471   },
472   {
473     "id": "988eea5f.5a0298",
474     "type": "execute",
475     "name": "execute RestApiCallNode delete vpn topology",
476     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
477     "comments": "",
478     "outputs": 1,
479     "x": 809.2501220703125,
480     "y": 666.0040273666382,
481     "z": "88e745dd.c19a68",
482     "wires": [
483       []
484     ]
485   },
486   {
487     "id": "c5910d9a.730a3",
488     "type": "switchNode",
489     "name": "switch vpn-id",
490     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'vpn-id'`\">\n",
491     "comments": "",
492     "outputs": 1,
493     "x": 1247.5000629425049,
494     "y": 181.00000095367432,
495     "z": "88e745dd.c19a68",
496     "wires": [
497       [
498         "648a246c.73b5ec"
499       ]
500     ]
501   },
502   {
503     "id": "648a246c.73b5ec",
504     "type": "outcomeTrue",
505     "name": "true",
506     "xml": "<outcome value='true'>\n",
507     "comments": "",
508     "outputs": 1,
509     "x": 1429.5000953674316,
510     "y": 180.99999976158142,
511     "z": "88e745dd.c19a68",
512     "wires": [
513       [
514         "701a4c1a.83d604"
515       ]
516     ]
517   },
518   {
519     "id": "701a4c1a.83d604",
520     "type": "set",
521     "name": "set prop.vpn-id",
522     "xml": "<set>\n<parameter name='prop.vpn-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
523     "comments": "",
524     "x": 1592.4999809265137,
525     "y": 180.59999442100525,
526     "z": "88e745dd.c19a68",
527     "wires": []
528   },
529   {
530     "id": "5b432d19.74fce4",
531     "type": "switchNode",
532     "name": "switch tenant-id",
533     "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'tenant-id'`\">\n",
534     "comments": "",
535     "outputs": 1,
536     "x": 1253.25,
537     "y": 223.99999904632568,
538     "z": "88e745dd.c19a68",
539     "wires": [
540       [
541         "f053b806.9e46f8"
542       ]
543     ]
544   },
545   {
546     "id": "f053b806.9e46f8",
547     "type": "outcomeTrue",
548     "name": "true",
549     "xml": "<outcome value='true'>\n",
550     "comments": "",
551     "outputs": 1,
552     "x": 1427.2501258850098,
553     "y": 224.00000286102295,
554     "z": "88e745dd.c19a68",
555     "wires": [
556       [
557         "7fc67227.287a4c"
558       ]
559     ]
560   },
561   {
562     "id": "7fc67227.287a4c",
563     "type": "set",
564     "name": "set prop.tenant-id",
565     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
566     "comments": "",
567     "x": 1590.2500114440918,
568     "y": 223.59999752044678,
569     "z": "88e745dd.c19a68",
570     "wires": []
571   },
572   {
573     "id": "2cf3fcb4.da9384",
574     "type": "update",
575     "name": "update SDWAN VPN status to AAI",
576     "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='PendingDelete' />",
577     "comments": "",
578     "outputs": 1,
579     "x": 767.0000686645508,
580     "y": 977.5001134872437,
581     "z": "88e745dd.c19a68",
582     "wires": [
583       []
584     ]
585   },
586   {
587     "id": "9a8305f1.e08cb8",
588     "type": "get-resource",
589     "name": "get-resource service-subscription",
590     "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",
591     "comments": "",
592     "outputs": 1,
593     "x": 758.0038909912109,
594     "y": 533.0038976669312,
595     "z": "88e745dd.c19a68",
596     "wires": [
597       [
598         "6497125a.d4efec",
599         "61153347.107bfc"
600       ]
601     ]
602   },
603   {
604     "id": "61153347.107bfc",
605     "type": "failure",
606     "name": "failure",
607     "xml": "<outcome value='failure'>\n",
608     "comments": "",
609     "outputs": 1,
610     "x": 973.1824684143066,
611     "y": 584.9642953872681,
612     "z": "88e745dd.c19a68",
613     "wires": [
614       [
615         "2a04bd37.e27582"
616       ]
617     ]
618   },
619   {
620     "id": "6497125a.d4efec",
621     "type": "success",
622     "name": "success",
623     "xml": "<outcome value='success'>\n",
624     "comments": "",
625     "outputs": 1,
626     "x": 979.5038795471191,
627     "y": 532.7499837875366,
628     "z": "88e745dd.c19a68",
629     "wires": [
630       [
631         "954bff66.85de8"
632       ]
633     ]
634   },
635   {
636     "id": "2a04bd37.e27582",
637     "type": "returnFailure",
638     "name": "return failure",
639     "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",
640     "comments": "",
641     "x": 1125.9324684143066,
642     "y": 584.7143564224243,
643     "z": "88e745dd.c19a68",
644     "wires": []
645   },
646   {
647     "id": "954bff66.85de8",
648     "type": "switchNode",
649     "name": "switch temp-ub-sub-account-id",
650     "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
651     "comments": "",
652     "outputs": 1,
653     "x": 1181.004108428955,
654     "y": 524.7540063858032,
655     "z": "88e745dd.c19a68",
656     "wires": [
657       [
658         "81f571ba.fc753"
659       ]
660     ]
661   },
662   {
663     "id": "81f571ba.fc753",
664     "type": "other",
665     "name": "Other",
666     "xml": "<outcome value='Other'>",
667     "comments": "",
668     "outputs": 1,
669     "x": 1374.0041236877441,
670     "y": 553.7540102005005,
671     "z": "88e745dd.c19a68",
672     "wires": [
673       [
674         "d50c5253.93df5"
675       ]
676     ]
677   },
678   {
679     "id": "d50c5253.93df5",
680     "type": "block",
681     "name": "block : atomic",
682     "xml": "<block atomic=\"true\">\n",
683     "atomic": "false",
684     "comments": "",
685     "outputs": 1,
686     "x": 1432.6548805236816,
687     "y": 636.9010019302368,
688     "z": "88e745dd.c19a68",
689     "wires": [
690       [
691         "5e8c6620.18c828",
692         "29548e46.007002"
693       ]
694     ]
695   },
696   {
697     "id": "5e8c6620.18c828",
698     "type": "set",
699     "name": "set prop.tenant-id",
700     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
701     "comments": "",
702     "x": 1621.432716369629,
703     "y": 638.8968105316162,
704     "z": "88e745dd.c19a68",
705     "wires": []
706   },
707   {
708     "id": "29548e46.007002",
709     "type": "execute",
710     "name": "execute RestApiCallNode Create tenant auth",
711     "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/tenants/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.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
712     "comments": "",
713     "outputs": 1,
714     "x": 1704.0834770202637,
715     "y": 685.4724044799805,
716     "z": "88e745dd.c19a68",
717     "wires": [
718       []
719     ]
720   }
721 ]