f9cf0bea5d1a95789b4cc8fe401aa69ded170591
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.json
1 [
2   {
3     "id":"5d8427a4.b9ce18",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":289.9999694824219,
8     "y":176.66666221618652,
9     "z":"1213c43c.2b234c",
10     "wires":[
11       [
12         "2a707879.08ed58"
13       ]
14     ]
15   },
16   {
17     "id":"2a707879.08ed58",
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":386.2380485534668,
26     "y":237.6190528869629,
27     "z":"1213c43c.2b234c",
28     "wires":[
29       [
30         "f18a9dbb.977df"
31       ]
32     ]
33   },
34   {
35     "id":"f18a9dbb.977df",
36     "type":"method",
37     "name":"tunnelxconn-topology-operation-create",
38     "xml":"<method rpc='tunnelxconn-topology-operation-create' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":432.1548271179199,
42     "y":272.8571081161499,
43     "z":"1213c43c.2b234c",
44     "wires":[
45       [
46         "7f262885.6d59b8"
47       ]
48     ]
49   },
50   {
51     "id":"7f262885.6d59b8",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":340.4761619567871,
59     "y":416.1904501914978,
60     "z":"1213c43c.2b234c",
61     "wires":[
62       [
63         "9a047ca3.43842",
64         "89ae09fa.b55dc8",
65         "d311ed47.69e1d",
66         "55ae20df.fc8b9",
67         "1acbd514.a1254b",
68         "8c2cd18b.e8d76",
69         "ddfe771b.c87dd8",
70         "83a795f7.2396f8",
71         "ba77d55a.14d7b8",
72         "60d77360.0d0b1c",
73         "4aacb3a2.ee73cc",
74         "f2d67a4f.b5fbd8",
75         "3ddd0b30.9a33e4",
76         "9e5a94b9.112208",
77         "6c7d53f3.fcddcc",
78         "5ed77e12.ca895",
79         "58a8145.b4b65ec",
80         "5dffc587.4020dc",
81         "be1a85fd.d9b228",
82         "b5d6eac2.9b2138",
83         "b3164bc6.a02478",
84         "8ddeb7ba.6380c8",
85         "d69c7a00.1f6db8",
86         "5964855c.5ef3ac",
87         "aac1998d.738588"
88       ]
89     ]
90   },
91   {
92     "id":"89ae09fa.b55dc8",
93     "type":"returnSuccess",
94     "name":"return success",
95     "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",
96     "comments":"",
97     "x":587.6669006347656,
98     "y":2225.2146220207214,
99     "z":"1213c43c.2b234c",
100     "wires":[
101
102     ]
103   },
104   {
105     "id":"9a047ca3.43842",
106     "type":"set",
107     "name":"set output to api handler",
108     "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
109     "comments":"",
110     "x":616.4208145141602,
111     "y":2189.3371682167053,
112     "z":"1213c43c.2b234c",
113     "wires":[
114
115     ]
116   },
117   {
118     "id":"60d77360.0d0b1c",
119     "type":"set",
120     "name":"set allotted-resource-oper-status",
121     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
122     "comments":"",
123     "x":646.7541885375977,
124     "y":796.7180624008179,
125     "z":"1213c43c.2b234c",
126     "wires":[
127
128     ]
129   },
130   {
131     "id":"55ae20df.fc8b9",
132     "type":"set",
133     "name":"set tmp.ar.self-link",
134     "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n",
135     "comments":"",
136     "x":602.7380332946777,
137     "y":389.9999876022339,
138     "z":"1213c43c.2b234c",
139     "wires":[
140
141     ]
142   },
143   {
144     "id":"d311ed47.69e1d",
145     "type":"set",
146     "name":"set tmp.ar.allotted-resource-id,etc",
147     "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
148     "comments":"",
149     "x":649.9972953796387,
150     "y":356.2592535018921,
151     "z":"1213c43c.2b234c",
152     "wires":[
153
154     ]
155   },
156   {
157     "id":"1acbd514.a1254b",
158     "type":"execute",
159     "name":"execute Properties",
160     "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",
161     "comments":"",
162     "outputs":1,
163     "x":608.9933891296387,
164     "y":425.8981866836548,
165     "z":"1213c43c.2b234c",
166     "wires":[
167       [
168
169       ]
170     ]
171   },
172   {
173     "id":"ddfe771b.c87dd8",
174     "type":"execute",
175     "name":"execute RestApiCallNode - Get AR by id",
176     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
177     "comments":"",
178     "outputs":1,
179     "x":671.5187225341797,
180     "y":587.1261539459229,
181     "z":"1213c43c.2b234c",
182     "wires":[
183       [
184         "ec9853b.e3a8bb",
185         "58aa3152.ce73e"
186       ]
187     ]
188   },
189   {
190     "id":"8c2cd18b.e8d76",
191     "type":"execute",
192     "name":"generate allotted-resource url",
193     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
194     "comments":"",
195     "outputs":1,
196     "x":637.0648231506348,
197     "y":485.6838912963867,
198     "z":"1213c43c.2b234c",
199     "wires":[
200       [
201
202       ]
203     ]
204   },
205   {
206     "id":"ec9853b.e3a8bb",
207     "type":"success",
208     "name":"success",
209     "xml":"<outcome value='success'>\n",
210     "comments":"",
211     "outputs":1,
212     "x":928.8148612976074,
213     "y":585.9339144229889,
214     "z":"1213c43c.2b234c",
215     "wires":[
216       [
217         "c2add8c3.e31ee8"
218       ]
219     ]
220   },
221   {
222     "id":"83a795f7.2396f8",
223     "type":"execute",
224     "name":"execute RestApiCallNode - PUT AR by id",
225     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
226     "comments":"",
227     "outputs":1,
228     "x":679.5292816162109,
229     "y":940.100793838501,
230     "z":"1213c43c.2b234c",
231     "wires":[
232       [
233         "d53ba2b2.4949a",
234         "c75a2aee.7c7e38",
235         "cfb46e43.3d1c1"
236       ]
237     ]
238   },
239   {
240     "id":"d53ba2b2.4949a",
241     "type":"not-found",
242     "name":"not-found",
243     "xml":"<outcome value='not-found'>\n",
244     "comments":"",
245     "outputs":1,
246     "x":947.8373222351074,
247     "y":1001.0991134643555,
248     "z":"1213c43c.2b234c",
249     "wires":[
250       [
251         "3676f0e6.efdff"
252       ]
253     ]
254   },
255   {
256     "id":"c75a2aee.7c7e38",
257     "type":"failure",
258     "name":"failure",
259     "xml":"<outcome value='failure'>\n",
260     "comments":"",
261     "outputs":1,
262     "x":940.8373489379883,
263     "y":961.5990203842521,
264     "z":"1213c43c.2b234c",
265     "wires":[
266       [
267         "3676f0e6.efdff"
268       ]
269     ]
270   },
271   {
272     "id":"cfb46e43.3d1c1",
273     "type":"success",
274     "name":"success",
275     "xml":"<outcome value='success'>\n",
276     "comments":"",
277     "outputs":1,
278     "x":944.5873870849609,
279     "y":931.9561252593994,
280     "z":"1213c43c.2b234c",
281     "wires":[
282       [
283         "24baad99.05ac02"
284       ]
285     ]
286   },
287   {
288     "id":"3676f0e6.efdff",
289     "type":"returnFailure",
290     "name":"return failure",
291     "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 updating md-sal for tunnelxconn-allotted-resource\" />\n",
292     "comments":"",
293     "x":1110.587387084961,
294     "y":962.34904422611,
295     "z":"1213c43c.2b234c",
296     "wires":[
297
298     ]
299   },
300   {
301     "id":"c2add8c3.e31ee8",
302     "type":"block",
303     "name":"block: atomic",
304     "xml":"<block atomic=\"true\">\n",
305     "atomic":"false",
306     "comments":"",
307     "outputs":1,
308     "x":1109.8148155212402,
309     "y":586.4338638782501,
310     "z":"1213c43c.2b234c",
311     "wires":[
312       [
313         "6281b16a.56ebc",
314         "9fdaaaf9.7e4e18"
315       ]
316     ]
317   },
318   {
319     "id":"6281b16a.56ebc",
320     "type":"switchNode",
321     "name":"switch tx length",
322     "xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n",
323     "comments":"",
324     "outputs":1,
325     "x":1355.672061920166,
326     "y":620.7196271419525,
327     "z":"1213c43c.2b234c",
328     "wires":[
329       [
330         "3c62713c.75fd9e"
331       ]
332     ]
333   },
334   {
335     "id":"3c62713c.75fd9e",
336     "type":"other",
337     "name":"outcome 1",
338     "xml":"<outcome value='1'>\n",
339     "comments":"",
340     "outputs":1,
341     "x":1546.6720657348633,
342     "y":620.7196247577667,
343     "z":"1213c43c.2b234c",
344     "wires":[
345       [
346         "43730d98.9d5c24"
347       ]
348     ]
349   },
350   {
351     "id":"ad911155.ba691",
352     "type":"set",
353     "name":"set tx-ar from get",
354     "xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n",
355     "comments":"",
356     "x":1946.5292015075684,
357     "y":621.2910490036011,
358     "z":"1213c43c.2b234c",
359     "wires":[
360
361     ]
362   },
363   {
364     "id":"43730d98.9d5c24",
365     "type":"block",
366     "name":"block: atomic",
367     "xml":"<block atomic='true'>\n",
368     "atomic":"false",
369     "comments":"",
370     "outputs":1,
371     "x":1717.5290489196777,
372     "y":621.291093826294,
373     "z":"1213c43c.2b234c",
374     "wires":[
375       [
376         "ad911155.ba691",
377         "a06440e2.caca5",
378         "3d53634b.24490c"
379       ]
380     ]
381   },
382   {
383     "id":"a06440e2.caca5",
384     "type":"set",
385     "name":"set oper-status",
386     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
387     "comments":"",
388     "x":1944.5294456481934,
389     "y":688.7196130752563,
390     "z":"1213c43c.2b234c",
391     "wires":[
392
393     ]
394   },
395   {
396     "id":"7e8f0846.a53858",
397     "type":"comment",
398     "name":"GET tunnelxconn-allotted-resource from mdsal",
399     "info":"",
400     "comments":"",
401     "x":696.8147850036621,
402     "y":550.4338548183441,
403     "z":"1213c43c.2b234c",
404     "wires":[
405
406     ]
407   },
408   {
409     "id":"3d53634b.24490c",
410     "type":"switchNode",
411     "name":"switch order-status",
412     "xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
413     "comments":"",
414     "outputs":1,
415     "x":1954.529224395752,
416     "y":654.2910470962524,
417     "z":"1213c43c.2b234c",
418     "wires":[
419       [
420         "5c815fc3.bd0b5",
421         "d3694d17.ea994"
422       ]
423     ]
424   },
425   {
426     "id":"5c815fc3.bd0b5",
427     "type":"outcome",
428     "name":"outcome PendingCreate",
429     "xml":"<outcome value='PendingCreate'>\n",
430     "comments":"",
431     "outputs":1,
432     "x":2166.129180908203,
433     "y":615.2910470962524,
434     "z":"1213c43c.2b234c",
435     "wires":[
436       [
437         "bda3fa8a.d4fd18"
438       ]
439     ]
440   },
441   {
442     "id":"d3694d17.ea994",
443     "type":"outcome",
444     "name":"outcome Other",
445     "xml":"<outcome value='Other'>\n",
446     "comments":"",
447     "outputs":1,
448     "x":2191.8435554504395,
449     "y":650.7196378707886,
450     "z":"1213c43c.2b234c",
451     "wires":[
452       [
453         "bda3fa8a.d4fd18"
454       ]
455     ]
456   },
457   {
458     "id":"f64004fd.6126d8",
459     "type":"comment",
460     "name":"Set allotted-resource-identifiers",
461     "info":"",
462     "comments":"",
463     "x":652.3386077880859,
464     "y":641.0053081512451,
465     "z":"1213c43c.2b234c",
466     "wires":[
467
468     ]
469   },
470   {
471     "id":"9fdaaaf9.7e4e18",
472     "type":"set",
473     "name":"save backup copy of mdsal-ar for rollback",
474     "xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n",
475     "comments":"",
476     "x":1435.3863945007324,
477     "y":586.4339559078217,
478     "z":"1213c43c.2b234c",
479     "wires":[
480
481     ]
482   },
483   {
484     "id":"7dd5966e.d350a8",
485     "type":"comment",
486     "name":"Create urls for restapi",
487     "info":"",
488     "comments":"",
489     "x":607.9576301574707,
490     "y":455.29101848602295,
491     "z":"1213c43c.2b234c",
492     "wires":[
493
494     ]
495   },
496   {
497     "id":"24baad99.05ac02",
498     "type":"block",
499     "name":"block",
500     "xml":"<block>\n",
501     "atomic":"false",
502     "comments":"",
503     "outputs":1,
504     "x":1086.2433547973633,
505     "y":928.1482944488525,
506     "z":"1213c43c.2b234c",
507     "wires":[
508       [
509
510       ]
511     ]
512   },
513   {
514     "id":"8d8b45bf.b1aca8",
515     "type":"comment",
516     "name":"TO DO: vnf/put parent",
517     "info":"",
518     "comments":"",
519     "x":620.2433471679688,
520     "y":862.1482162475584,
521     "z":"1213c43c.2b234c",
522     "wires":[
523
524     ]
525   },
526   {
527     "id":"ba77d55a.14d7b8",
528     "type":"execute",
529     "name":"execute getTime",
530     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
531     "comments":"",
532     "outputs":1,
533     "x":594.243350982666,
534     "y":758.1482172012329,
535     "z":"1213c43c.2b234c",
536     "wires":[
537       [
538
539       ]
540     ]
541   },
542   {
543     "id":"58aa3152.ce73e",
544     "type":"other",
545     "name":"other",
546     "xml":"<outcome value='Other'>\n",
547     "comments":"",
548     "outputs":1,
549     "x":928.5766563415527,
550     "y":622.1480872631073,
551     "z":"1213c43c.2b234c",
552     "wires":[
553       [
554         "d1a0b9e4.751918"
555       ]
556     ]
557   },
558   {
559     "id":"d1a0b9e4.751918",
560     "type":"block",
561     "name":"block: atomic",
562     "xml":"<block atomic=\"true\">\n",
563     "atomic":"false",
564     "comments":"",
565     "outputs":1,
566     "x":1108.5766067504883,
567     "y":622.8146378993988,
568     "z":"1213c43c.2b234c",
569     "wires":[
570       [
571
572       ]
573     ]
574   },
575   {
576     "id":"4aacb3a2.ee73cc",
577     "type":"set",
578     "name":"set id",
579     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />",
580     "comments":"",
581     "x":577.2433929443359,
582     "y":677.8148288726807,
583     "z":"1213c43c.2b234c",
584     "wires":[
585
586     ]
587   },
588   {
589     "id":"bda3fa8a.d4fd18",
590     "type":"block",
591     "name":"block",
592     "xml":"<block>\n",
593     "atomic":"false",
594     "comments":"",
595     "outputs":1,
596     "x":2380.599697113037,
597     "y":616.6666812896729,
598     "z":"1213c43c.2b234c",
599     "wires":[
600       [
601
602       ]
603     ]
604   },
605   {
606     "id":"6c7d53f3.fcddcc",
607     "type":"execute",
608     "name":"execute RestApiCallNode - setup vgMUX-vG vxlan tunnel port",
609     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\n    <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
610     "comments":"",
611     "outputs":1,
612     "x":726.8331298828125,
613     "y":1378.1186933517456,
614     "z":"1213c43c.2b234c",
615     "wires":[
616       [
617         "50e484ba.b86eec",
618         "5ed00d06.0d5ea4",
619         "83b3850c.d649c8"
620       ]
621     ]
622   },
623   {
624     "id":"50e484ba.b86eec",
625     "type":"not-found",
626     "name":"not-found",
627     "xml":"<outcome value='not-found'>\n",
628     "comments":"",
629     "outputs":1,
630     "x":1091.1412506103516,
631     "y":1420.4503320679069,
632     "z":"1213c43c.2b234c",
633     "wires":[
634       [
635         "e150607d.ca938"
636       ]
637     ]
638   },
639   {
640     "id":"5ed00d06.0d5ea4",
641     "type":"failure",
642     "name":"failure",
643     "xml":"<outcome value='failure'>\n",
644     "comments":"",
645     "outputs":1,
646     "x":1082.141300201416,
647     "y":1388.9503578171134,
648     "z":"1213c43c.2b234c",
649     "wires":[
650       [
651         "e150607d.ca938"
652       ]
653     ]
654   },
655   {
656     "id":"83b3850c.d649c8",
657     "type":"success",
658     "name":"success",
659     "xml":"<outcome value='success'>\n",
660     "comments":"",
661     "outputs":1,
662     "x":1085.8913383483887,
663     "y":1359.3074626922607,
664     "z":"1213c43c.2b234c",
665     "wires":[
666       [
667         "3b236fc1.ae6cc"
668       ]
669     ]
670   },
671   {
672     "id":"e150607d.ca938",
673     "type":"returnFailure",
674     "name":"return failure",
675     "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 updating md-sal for tunnelxconn-allotted-resource\" />\n",
676     "comments":"",
677     "x":1251.8913383483887,
678     "y":1389.7003816589713,
679     "z":"1213c43c.2b234c",
680     "wires":[
681
682     ]
683   },
684   {
685     "id":"3b236fc1.ae6cc",
686     "type":"block",
687     "name":"block",
688     "xml":"<block>\n",
689     "atomic":"false",
690     "comments":"",
691     "outputs":1,
692     "x":1227.547306060791,
693     "y":1355.4996318817139,
694     "z":"1213c43c.2b234c",
695     "wires":[
696       [
697
698       ]
699     ]
700   },
701   {
702     "id":"3ddd0b30.9a33e4",
703     "type":"set",
704     "name":"set vgMUX-vG VXLAN Tunnel Port Props",
705     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`$tmp.tunnel-vgMUX-vG-name` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni` \" />",
706     "comments":"",
707     "x":671.9443054199219,
708     "y":1222.1191806793213,
709     "z":"1213c43c.2b234c",
710     "wires":[
711
712     ]
713   },
714   {
715     "id":"9e5a94b9.112208",
716     "type":"execute",
717     "name":"generate full vgMUX-vG vpp-honeycomb url",
718     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n    <parameter name=\"target\" value=\"{tunnel-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n",
719     "comments":"",
720     "outputs":1,
721     "x":675.9443054199219,
722     "y":1288.785394668579,
723     "z":"1213c43c.2b234c",
724     "wires":[
725       [
726
727       ]
728     ]
729   },
730   {
731     "id":"f2d67a4f.b5fbd8",
732     "type":"execute",
733     "name":"generate honeycomb-url to vgMUX",
734     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.honeycomb.url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.honeycomb.url\"/>\n    <parameter name=\"target\" value=\"{honeycomb-instance-ip}\"/>\n    <parameter name=\"replacement\" value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip`\"/>\n",
735     "comments":"",
736     "outputs":1,
737     "x":655.2776031494141,
738     "y":1160.4521827697754,
739     "z":"1213c43c.2b234c",
740     "wires":[
741       [
742
743       ]
744     ]
745   },
746   {
747     "id":"5ed77e12.ca895",
748     "type":"execute",
749     "name":"execute RestApiCallNode - setup vgMUX-vBRG vxlan tunnel xconnect",
750     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.xconnect.templatefile`\" />\n    <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
751     "comments":"",
752     "outputs":1,
753     "x":742.5000610351562,
754     "y":1795.6668500900269,
755     "z":"1213c43c.2b234c",
756     "wires":[
757       [
758         "b5e29f6d.056ee",
759         "86688c55.1f6a6",
760         "a86c1446.f356e8"
761       ]
762     ]
763   },
764   {
765     "id":"b5e29f6d.056ee",
766     "type":"not-found",
767     "name":"not-found",
768     "xml":"<outcome value='not-found'>\n",
769     "comments":"",
770     "outputs":1,
771     "x":1072.808141708374,
772     "y":1833.9983853325248,
773     "z":"1213c43c.2b234c",
774     "wires":[
775       [
776         "9b462d6d.1ea05"
777       ]
778     ]
779   },
780   {
781     "id":"86688c55.1f6a6",
782     "type":"failure",
783     "name":"failure",
784     "xml":"<outcome value='failure'>\n",
785     "comments":"",
786     "outputs":1,
787     "x":1063.8081912994385,
788     "y":1802.4984110817313,
789     "z":"1213c43c.2b234c",
790     "wires":[
791       [
792         "9b462d6d.1ea05"
793       ]
794     ]
795   },
796   {
797     "id":"a86c1446.f356e8",
798     "type":"success",
799     "name":"success",
800     "xml":"<outcome value='success'>\n",
801     "comments":"",
802     "outputs":1,
803     "x":1067.5582294464111,
804     "y":1772.8555159568787,
805     "z":"1213c43c.2b234c",
806     "wires":[
807       [
808         "6632191e.74a508"
809       ]
810     ]
811   },
812   {
813     "id":"9b462d6d.1ea05",
814     "type":"returnFailure",
815     "name":"return failure",
816     "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 updating md-sal for tunnelxconn-allotted-resource\" />\n",
817     "comments":"",
818     "x":1233.5582294464111,
819     "y":1803.2484349235892,
820     "z":"1213c43c.2b234c",
821     "wires":[
822
823     ]
824   },
825   {
826     "id":"6632191e.74a508",
827     "type":"block",
828     "name":"block",
829     "xml":"<block>\n",
830     "atomic":"false",
831     "comments":"",
832     "outputs":1,
833     "x":1209.2141971588135,
834     "y":1769.0476851463318,
835     "z":"1213c43c.2b234c",
836     "wires":[
837       [
838
839       ]
840     ]
841   },
842   {
843     "id":"58a8145.b4b65ec",
844     "type":"set",
845     "name":"set vgMUX to vG and vgMUX to vBRG VXLAN Tunnel Name",
846     "xml":"<set>\n<parameter name='tmp.tunnel-vgMUX-vG-name' value=\"`'vxlanTun' + $tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-vgMUX-vBRG-name' value=\"`'vxlanTun' + $tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.brg-wan-ip-address` \" />\n",
847     "comments":"",
848     "x":734.0000762939453,
849     "y":1066.0000352859497,
850     "z":"1213c43c.2b234c",
851     "wires":[
852
853     ]
854   },
855   {
856     "id":"5dffc587.4020dc",
857     "type":"set",
858     "name":"set vgMUX-vBRG VXLAN Tunnel Port Props",
859     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`$tmp.tunnel-vgMUX-vBRG-name` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni` \" />",
860     "comments":"",
861     "x":674.0000610351562,
862     "y":1476.0000438690186,
863     "z":"1213c43c.2b234c",
864     "wires":[
865
866     ]
867   },
868   {
869     "id":"b5d6eac2.9b2138",
870     "type":"execute",
871     "name":"execute RestApiCallNode - setup vgMUX-vBRG vxlan tunnel port",
872     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\n    <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
873     "comments":"",
874     "outputs":1,
875     "x":726.0000305175781,
876     "y":1636.0000467300415,
877     "z":"1213c43c.2b234c",
878     "wires":[
879       [
880         "8dcf7f73.7a233",
881         "e17a27f6.d0d318",
882         "5d9263e8.e7d86c"
883       ]
884     ]
885   },
886   {
887     "id":"8dcf7f73.7a233",
888     "type":"not-found",
889     "name":"not-found",
890     "xml":"<outcome value='not-found'>\n",
891     "comments":"",
892     "outputs":1,
893     "x":1092.308120727539,
894     "y":1618.3316387161613,
895     "z":"1213c43c.2b234c",
896     "wires":[
897       [
898         "e1ae12b9.d71f6"
899       ]
900     ]
901   },
902   {
903     "id":"e17a27f6.d0d318",
904     "type":"failure",
905     "name":"failure",
906     "xml":"<outcome value='failure'>\n",
907     "comments":"",
908     "outputs":1,
909     "x":1083.3081703186035,
910     "y":1586.8316644653678,
911     "z":"1213c43c.2b234c",
912     "wires":[
913       [
914         "e1ae12b9.d71f6"
915       ]
916     ]
917   },
918   {
919     "id":"5d9263e8.e7d86c",
920     "type":"success",
921     "name":"success",
922     "xml":"<outcome value='success'>\n",
923     "comments":"",
924     "outputs":1,
925     "x":1087.0582084655762,
926     "y":1557.1887693405151,
927     "z":"1213c43c.2b234c",
928     "wires":[
929       [
930         "a5fdf540.7d0928"
931       ]
932     ]
933   },
934   {
935     "id":"e1ae12b9.d71f6",
936     "type":"returnFailure",
937     "name":"return failure",
938     "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 updating md-sal for tunnelxconn-allotted-resource\" />\n",
939     "comments":"",
940     "x":1253.0582084655762,
941     "y":1587.5816883072257,
942     "z":"1213c43c.2b234c",
943     "wires":[
944
945     ]
946   },
947   {
948     "id":"a5fdf540.7d0928",
949     "type":"block",
950     "name":"block",
951     "xml":"<block>\n",
952     "atomic":"false",
953     "comments":"",
954     "outputs":1,
955     "x":1228.7141761779785,
956     "y":1553.3809385299683,
957     "z":"1213c43c.2b234c",
958     "wires":[
959       [
960
961       ]
962     ]
963   },
964   {
965     "id":"be1a85fd.d9b228",
966     "type":"execute",
967     "name":"generate full vgMUX-vBRG vpp-honeycomb url",
968     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n    <parameter name=\"target\" value=\"{tunnel-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n",
969     "comments":"",
970     "outputs":1,
971     "x":678,
972     "y":1528,
973     "z":"1213c43c.2b234c",
974     "wires":[
975       [
976
977       ]
978     ]
979   },
980   {
981     "id":"8ddeb7ba.6380c8",
982     "type":"set",
983     "name":"set vgMUX-vBG xconnect url",
984     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`$tmp.tunnel-vgMUX-vG-name` \" />",
985     "comments":"",
986     "x":612.0000190734863,
987     "y":1864.0000562667847,
988     "z":"1213c43c.2b234c",
989     "wires":[
990
991     ]
992   },
993   {
994     "id":"d69c7a00.1f6db8",
995     "type":"execute",
996     "name":"generate full vgMUX-vG xconnect url",
997     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n    <parameter name=\"target\" value=\"{tunnel-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n",
998     "comments":"",
999     "outputs":1,
1000     "x":639.9999694824219,
1001     "y":1926.0000591278076,
1002     "z":"1213c43c.2b234c",
1003     "wires":[
1004       [
1005
1006       ]
1007     ]
1008   },
1009   {
1010     "id":"5964855c.5ef3ac",
1011     "type":"set",
1012     "name":"set xconnect Tunnel target",
1013     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`$tmp.tunnel-vgMUX-vBRG-name` \" />\n",
1014     "comments":"",
1015     "x":608.0000152587891,
1016     "y":1994.0000610351562,
1017     "z":"1213c43c.2b234c",
1018     "wires":[
1019
1020     ]
1021   },
1022   {
1023     "id":"b3164bc6.a02478",
1024     "type":"set",
1025     "name":"set xconnect Tunnel target",
1026     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`$tmp.tunnel-vgMUX-vG-name` \" />\n",
1027     "comments":"",
1028     "x":600.0000686645508,
1029     "y":1700.0000467300415,
1030     "z":"1213c43c.2b234c",
1031     "wires":[
1032
1033     ]
1034   },
1035   {
1036     "id":"aac1998d.738588",
1037     "type":"execute",
1038     "name":"execute RestApiCallNode - setup vgMUX-vG vxlan tunnel xconnect",
1039     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.xconnect.templatefile`\" />\n    <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
1040     "comments":"",
1041     "outputs":1,
1042     "x":736.0000305175781,
1043     "y":2082.000062942505,
1044     "z":"1213c43c.2b234c",
1045     "wires":[
1046       [
1047         "fffe79dd.0a7a98",
1048         "715907d9.f67948",
1049         "185c9679.0223ea"
1050       ]
1051     ]
1052   },
1053   {
1054     "id":"fffe79dd.0a7a98",
1055     "type":"not-found",
1056     "name":"not-found",
1057     "xml":"<outcome value='not-found'>\n",
1058     "comments":"",
1059     "outputs":1,
1060     "x":1066.308111190796,
1061     "y":2120.331598185003,
1062     "z":"1213c43c.2b234c",
1063     "wires":[
1064       [
1065         "e4ec6e86.1b29a"
1066       ]
1067     ]
1068   },
1069   {
1070     "id":"715907d9.f67948",
1071     "type":"failure",
1072     "name":"failure",
1073     "xml":"<outcome value='failure'>\n",
1074     "comments":"",
1075     "outputs":1,
1076     "x":1057.3081607818604,
1077     "y":2088.8316239342093,
1078     "z":"1213c43c.2b234c",
1079     "wires":[
1080       [
1081         "e4ec6e86.1b29a"
1082       ]
1083     ]
1084   },
1085   {
1086     "id":"185c9679.0223ea",
1087     "type":"success",
1088     "name":"success",
1089     "xml":"<outcome value='success'>\n",
1090     "comments":"",
1091     "outputs":1,
1092     "x":1061.058198928833,
1093     "y":2059.1887288093567,
1094     "z":"1213c43c.2b234c",
1095     "wires":[
1096       [
1097         "5daaf322.24f75c"
1098       ]
1099     ]
1100   },
1101   {
1102     "id":"e4ec6e86.1b29a",
1103     "type":"returnFailure",
1104     "name":"return failure",
1105     "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 updating md-sal for tunnelxconn-allotted-resource\" />\n",
1106     "comments":"",
1107     "x":1225.0582695007324,
1108     "y":2089.58176612854,
1109     "z":"1213c43c.2b234c",
1110     "wires":[
1111
1112     ]
1113   },
1114   {
1115     "id":"5daaf322.24f75c",
1116     "type":"block",
1117     "name":"block",
1118     "xml":"<block>\n",
1119     "atomic":"false",
1120     "comments":"",
1121     "outputs":1,
1122     "x":1202.7141666412354,
1123     "y":2055.38089799881,
1124     "z":"1213c43c.2b234c",
1125     "wires":[
1126       [
1127
1128       ]
1129     ]
1130   },
1131   {
1132     "id":"595457bf.28e8c8",
1133     "type":"comment",
1134     "name":"TO DO: get brg-wan-ip from dmaap",
1135     "info":"",
1136     "comments":"",
1137     "x":655.0000228881836,
1138     "y":1010.0000448226929,
1139     "z":"1213c43c.2b234c",
1140     "wires":[
1141
1142     ]
1143   },
1144   {
1145     "id":"765cd931.933bf8",
1146     "type":"comment",
1147     "name":"TO DO: get onap-oam ip - workaround over write vgmux-bearer with onap-oam ip",
1148     "info":"",
1149     "comments":"",
1150     "x":796.0000305175781,
1151     "y":1116.000036239624,
1152     "z":"1213c43c.2b234c",
1153     "wires":[
1154
1155     ]
1156   }
1157 ]