Merge "Added subscription for SdncAaiDmaapConsumer"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json
1 [
2   {
3     "id": "11760114.ffa53f",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 109,
8     "y": 68.88888743473217,
9     "z": "f3682574.cde048",
10     "wires": [
11       [
12         "387ea19.1ea525e"
13       ]
14     ]
15   },
16   {
17     "id": "387ea19.1ea525e",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API 1.2.1-SNAPSHOT",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "1.2.1-SNAPSHOT",
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='1.2.1-SNAPSHOT'>",
24     "outputs": 1,
25     "x": 363.5,
26     "y": 68.88888743473217,
27     "z": "f3682574.cde048",
28     "wires": [
29       [
30         "acc8b788.ec53d8"
31       ]
32     ]
33   },
34   {
35     "id": "acc8b788.ec53d8",
36     "type": "method",
37     "name": "sotn-network-topology-operation-create",
38     "xml": "<method rpc='sotn-network-topology-operation-create' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 362.5,
42     "y": 168.88888743473217,
43     "z": "f3682574.cde048",
44     "wires": [
45       [
46         "34953ba0.309594"
47       ]
48     ]
49   },
50   {
51     "id": "34953ba0.309594",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 502.5,
59     "y": 268.88888743473217,
60     "z": "f3682574.cde048",
61     "wires": [
62       [
63         "7388dbd6.e4b144",
64         "eb46e056.51069",
65         "27c87a61.1820b6",
66         "1c8ab342.be0a1d",
67         "f72cb383.b1b6",
68         "a36220a4.22926",
69         "a70fe000.5399c",
70         "47a1000.3ac09",
71         "edce49a.1c028b8",
72         "1f8a7b8b.e596a4",
73         "68c583ec.0ea75c",
74         "1522718b.801dfe",
75         "e184926f.0ad08"
76       ]
77     ]
78   },
79   {
80     "id": "7388dbd6.e4b144",
81     "type": "call",
82     "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
83     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
84     "comments": "",
85     "outputs": 1,
86     "x": 932.5000114440918,
87     "y": 86.66663935733959,
88     "z": "f3682574.cde048",
89     "wires": [
90       [
91         
92       ]
93     ]
94   },
95   {
96     "id": "eb46e056.51069",
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=\"sotn-network-topology-operation-create\"/>\n<parameter name=\"field3\" value=\"SOTN-Config\"/>\n",
100     "comments": "",
101     "outputs": 1,
102     "x": 726.0556564331055,
103     "y": 264.11109924316406,
104     "z": "f3682574.cde048",
105     "wires": [
106       [
107         
108       ]
109     ]
110   },
111   {
112     "id": "27c87a61.1820b6",
113     "type": "execute",
114     "name": "execute generate-sotn-vpn-network-id",
115     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.sotn.network-id\"/>\n",
116     "comments": "",
117     "outputs": 1,
118     "x": 826.5000114440918,
119     "y": 126.66663935733959,
120     "z": "f3682574.cde048",
121     "wires": [
122       [
123         
124       ]
125     ]
126   },
127   {
128     "id": "1c8ab342.be0a1d",
129     "type": "switchNode",
130     "name": "switch service-data.networks_length",
131     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
132     "comments": "",
133     "outputs": 1,
134     "x": 817.0556564331055,
135     "y": 224.11109924316406,
136     "z": "f3682574.cde048",
137     "wires": [
138       [
139         "c1b6935.5afba7",
140         "33b11f83.270c2"
141       ]
142     ]
143   },
144   {
145     "id": "c1b6935.5afba7",
146     "type": "other",
147     "name": "Null",
148     "xml": "<outcome value=''>\n",
149     "comments": "",
150     "outputs": 1,
151     "x": 1046.0556564331055,
152     "y": 204.11109924316406,
153     "z": "f3682574.cde048",
154     "wires": [
155       [
156         "50a80e72.5fa1f"
157       ]
158     ]
159   },
160   {
161     "id": "33b11f83.270c2",
162     "type": "other",
163     "name": "other",
164     "xml": "<outcome value='Other'>\n",
165     "comments": "",
166     "outputs": 1,
167     "x": 1046.0556564331055,
168     "y": 244.11109924316406,
169     "z": "f3682574.cde048",
170     "wires": [
171       [
172         "683104fc.0cc2bc"
173       ]
174     ]
175   },
176   {
177     "id": "50a80e72.5fa1f",
178     "type": "set",
179     "name": "set nidx",
180     "xml": "<set>\n<parameter name='nidx' value='0' />\n",
181     "comments": "",
182     "x": 1188.5556564331055,
183     "y": 204.11109924316406,
184     "z": "f3682574.cde048",
185     "wires": [
186       
187     ]
188   },
189   {
190     "id": "4bd2e74.8492e18",
191     "type": "set",
192     "name": "set nidx",
193     "xml": "<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n",
194     "comments": "",
195     "x": 1322.1111755371094,
196     "y": 205.66670894622803,
197     "z": "f3682574.cde048",
198     "wires": [
199       
200     ]
201   },
202   {
203     "id": "f72cb383.b1b6",
204     "type": "set",
205     "name": "set network in service-data",
206     "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-id' value='`$prop.sotn.network-id`' />\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n<parameter name='service-data.networks.network_length' value='`$nidx+1`' />\n\n",
207     "comments": "",
208     "x": 787.5556564331055,
209     "y": 304.11109924316406,
210     "z": "f3682574.cde048",
211     "wires": [
212       
213     ]
214   },
215   {
216     "id": "a36220a4.22926",
217     "type": "set",
218     "name": "set networkId and network-object-path",
219     "xml": "<set>\n<parameter name='networkId' value='`$prop.sotn.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/'  + $prop.sotn.network-id  + '/network-data/'` \" />",
220     "comments": "",
221     "x": 823.0556564331055,
222     "y": 344.11109924316406,
223     "z": "f3682574.cde048",
224     "wires": [
225       
226     ]
227   },
228   {
229     "id": "a70fe000.5399c",
230     "type": "returnSuccess",
231     "name": "return success",
232     "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",
233     "comments": "",
234     "x": 749.7224502563477,
235     "y": 596.7778205871582,
236     "z": "f3682574.cde048",
237     "wires": [
238       
239     ]
240   },
241   {
242     "id": "47a1000.3ac09",
243     "type": "set",
244     "name": "set network-level-oper-status",
245     "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.networks.network[$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[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
246     "comments": "",
247     "x": 794.5556564331055,
248     "y": 384.11109924316406,
249     "z": "f3682574.cde048",
250     "wires": [
251       
252     ]
253   },
254   {
255     "id": "edce49a.1c028b8",
256     "type": "save",
257     "name": "save SOTN connectivity resource in AAI",
258     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n      key='configuration.configuration-id = $prop.sotn.network-id' >\n<parameter name='configuration-id' value='`$prop.sotn.network-id`' />\n<parameter name='configuration-name' value='`$prop.sotn.client-svc-name`' />\n<parameter name='configuration-type' value='`$prop.sotn.client-svc-descr`' />\n<parameter name='configuration-sub-type' value='`$prop.sotn.tenantId`' />\n<parameter name='orchestration-status' value='`$prop.sotn.vpnType`' />\n<parameter name='management-option' value='`$prop.sotn.cir`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='configuration-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />",
259     "comments": "",
260     "outputs": 1,
261     "x": 827.0556564331055,
262     "y": 430.77778816223145,
263     "z": "f3682574.cde048",
264     "wires": [
265       [
266         
267       ]
268     ]
269   },
270   {
271     "id": "1f8a7b8b.e596a4",
272     "type": "save",
273     "name": "save service relationship in AAI",
274     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"configuration\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/configurations/configuration/' + $prop.sotn.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"configuration.configuration-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />",
275     "comments": "",
276     "outputs": 1,
277     "x": 802.0556678771973,
278     "y": 468.55554008483887,
279     "z": "f3682574.cde048",
280     "wires": [
281       [
282         
283       ]
284     ]
285   },
286   {
287     "id": "b85378f.1752188",
288     "type": "for",
289     "name": "for each existing network",
290     "xml": "<for index='idx' start='0' end='`$nidx`' >\n",
291     "comments": "",
292     "outputs": 1,
293     "x": 1191.5397186279297,
294     "y": 348.8888511364348,
295     "z": "f3682574.cde048",
296     "wires": [
297       [
298         "ad3781e0.62cbe"
299       ]
300     ]
301   },
302   {
303     "id": "683104fc.0cc2bc",
304     "type": "block",
305     "name": "block",
306     "xml": "<block>\n",
307     "atomic": "false",
308     "comments": "",
309     "outputs": 1,
310     "x": 1190.4127006530762,
311     "y": 244.04761123657227,
312     "z": "f3682574.cde048",
313     "wires": [
314       [
315         "b85378f.1752188",
316         "4bd2e74.8492e18"
317       ]
318     ]
319   },
320   {
321     "id": "ad3781e0.62cbe",
322     "type": "switchNode",
323     "name": "switch networkid found",
324     "xml": "<switch test=\"`$service-data.networks.network[$idx].network-id == $network-topology-operation-input.network-information.network-id`\">\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 1466.825439453125,
328     "y": 348.4603538219817,
329     "z": "f3682574.cde048",
330     "wires": [
331       [
332         "30f1f431.08877c"
333       ]
334     ]
335   },
336   {
337     "id": "30f1f431.08877c",
338     "type": "outcomeTrue",
339     "name": "true",
340     "xml": "<outcome value='true'>\n",
341     "comments": "",
342     "outputs": 1,
343     "x": 1367.5556373596191,
344     "y": 407.03178498195484,
345     "z": "f3682574.cde048",
346     "wires": [
347       [
348         "1df899ae.3b8026"
349       ]
350     ]
351   },
352   {
353     "id": "3a07954a.fda22a",
354     "type": "comment",
355     "name": "make sure this network doesn't exist already",
356     "info": "",
357     "comments": "",
358     "x": 1415.1904487609863,
359     "y": 307.142908543814,
360     "z": "f3682574.cde048",
361     "wires": [
362       
363     ]
364   },
365   {
366     "id": "1df899ae.3b8026",
367     "type": "returnFailure",
368     "name": "return failure",
369     "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=\"network-topology-operation-input.network-request-input.network-id already found in service-data\" />\n",
370     "comments": "",
371     "x": 1515.3057403564453,
372     "y": 406.88897705078125,
373     "z": "f3682574.cde048",
374     "wires": [
375       
376     ]
377   },
378   {
379     "id": "1eccb58d.49bd0a",
380     "type": "block",
381     "name": "block",
382     "xml": "<block>\n",
383     "atomic": "false",
384     "comments": "",
385     "outputs": 1,
386     "x": 1481.957233428955,
387     "y": 176.6666965484619,
388     "z": "f3682574.cde048",
389     "wires": [
390       [
391         "39c25585.35095a",
392         "f63e13ae.1ca36",
393         "b990d7b7.d50db8",
394         "84319a02.cc83c8",
395         "fd903008.4e1c6",
396         "64b1c8e5.3ad178",
397         "c55257d1.2dce08",
398         "70e3ab9b.3b6ef4",
399         "f11487f.1a2d778",
400         "f273d999.226da8",
401         "e251bd6c.23dfe",
402         "f51170c3.6db7",
403         "ba516d92.f632",
404         "fe52bad5.770908",
405         "b3759567.fa1fc8",
406         "a9128726.ee25b8"
407       ]
408     ]
409   },
410   {
411     "id": "39c25585.35095a",
412     "type": "switchNode",
413     "name": "switch name",
414     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
415     "comments": "",
416     "outputs": 1,
417     "x": 1740.1789779663086,
418     "y": 34,
419     "z": "f3682574.cde048",
420     "wires": [
421       [
422         "be03b2cc.d65d1"
423       ]
424     ]
425   },
426   {
427     "id": "be03b2cc.d65d1",
428     "type": "outcomeTrue",
429     "name": "true",
430     "xml": "<outcome value='true'>\n",
431     "comments": "",
432     "outputs": 1,
433     "x": 1927.1789779663086,
434     "y": 30,
435     "z": "f3682574.cde048",
436     "wires": [
437       [
438         "904307f9.4f4248"
439       ]
440     ]
441   },
442   {
443     "id": "904307f9.4f4248",
444     "type": "set",
445     "name": "set name",
446     "xml": "<set>\n<parameter name='prop.sotn.etht-svc-name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
447     "comments": "",
448     "x": 2077.1791076660156,
449     "y": 28.600006580352783,
450     "z": "f3682574.cde048",
451     "wires": [
452       
453     ]
454   },
455   {
456     "id": "f63e13ae.1ca36",
457     "type": "switchNode",
458     "name": "switch description",
459     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'description'`\">\n",
460     "comments": "",
461     "outputs": 1,
462     "x": 1751.0186386108398,
463     "y": 73.99999809265137,
464     "z": "f3682574.cde048",
465     "wires": [
466       [
467         "2d5d0686.3b5eba"
468       ]
469     ]
470   },
471   {
472     "id": "2d5d0686.3b5eba",
473     "type": "outcomeTrue",
474     "name": "true",
475     "xml": "<outcome value='true'>\n",
476     "comments": "",
477     "outputs": 1,
478     "x": 1921.0186386108398,
479     "y": 69.99999809265137,
480     "z": "f3682574.cde048",
481     "wires": [
482       [
483         "8eefd68e.fffed8"
484       ]
485     ]
486   },
487   {
488     "id": "8eefd68e.fffed8",
489     "type": "set",
490     "name": "set etht-svc-descr",
491     "xml": "<set>\n<parameter name='prop.sotn.etht-svc-descr' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
492     "comments": "",
493     "x": 2108.3520793914795,
494     "y": 68.46115493774414,
495     "z": "f3682574.cde048",
496     "wires": [
497       
498     ]
499   },
500   {
501     "id": "68c583ec.0ea75c",
502     "type": "for",
503     "name": "for loop i - Network input parameters",
504     "xml": "<for index=\"idx\" start=\"0\" end=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`\">\n",
505     "comments": "",
506     "outputs": 1,
507     "x": 819.7343978881836,
508     "y": 174.44442749023438,
509     "z": "f3682574.cde048",
510     "wires": [
511       [
512         "1eccb58d.49bd0a"
513       ]
514     ]
515   },
516   {
517     "id": "b990d7b7.d50db8",
518     "type": "switchNode",
519     "name": "switch tenantId",
520     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'tenantId'`\">\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 1741.4010200500488,
524     "y": 117.33332538604736,
525     "z": "f3682574.cde048",
526     "wires": [
527       [
528         "d96e6910.7c5ce8"
529       ]
530     ]
531   },
532   {
533     "id": "d96e6910.7c5ce8",
534     "type": "outcomeTrue",
535     "name": "true",
536     "xml": "<outcome value='true'>\n",
537     "comments": "",
538     "outputs": 1,
539     "x": 1928.4010200500488,
540     "y": 113.33332538604736,
541     "z": "f3682574.cde048",
542     "wires": [
543       [
544         "5b48eb71.3d5864"
545       ]
546     ]
547   },
548   {
549     "id": "5b48eb71.3d5864",
550     "type": "set",
551     "name": "set tenantId",
552     "xml": "<set>\n<parameter name='prop.sotn.tenantId' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
553     "comments": "",
554     "x": 2096.401020050049,
555     "y": 113.93333148956299,
556     "z": "f3682574.cde048",
557     "wires": [
558       
559     ]
560   },
561   {
562     "id": "84319a02.cc83c8",
563     "type": "switchNode",
564     "name": "switch CIR",
565     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'CIR'`\">\n",
566     "comments": "",
567     "outputs": 1,
568     "x": 1723.2406768798828,
569     "y": 207.33338356018066,
570     "z": "f3682574.cde048",
571     "wires": [
572       [
573         "c1cdced0.80842"
574       ]
575     ]
576   },
577   {
578     "id": "c1cdced0.80842",
579     "type": "outcomeTrue",
580     "name": "true",
581     "xml": "<outcome value='true'>\n",
582     "comments": "",
583     "outputs": 1,
584     "x": 1931.2407455444336,
585     "y": 203.3333969116211,
586     "z": "f3682574.cde048",
587     "wires": [
588       [
589         "bcbc8704.d57d08"
590       ]
591     ]
592   },
593   {
594     "id": "bcbc8704.d57d08",
595     "type": "set",
596     "name": "set cir",
597     "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
598     "comments": "",
599     "x": 2080.5740661621094,
600     "y": 201.7945442199707,
601     "z": "f3682574.cde048",
602     "wires": [
603       
604     ]
605   },
606   {
607     "id": "fd903008.4e1c6",
608     "type": "switchNode",
609     "name": "switch vpnType",
610     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vpnType'`\">\n",
611     "comments": "",
612     "outputs": 1,
613     "x": 1742.5491485595703,
614     "y": 161.11110258102417,
615     "z": "f3682574.cde048",
616     "wires": [
617       [
618         "25a34a38.dcc406"
619       ]
620     ]
621   },
622   {
623     "id": "25a34a38.dcc406",
624     "type": "outcomeTrue",
625     "name": "true",
626     "xml": "<outcome value='true'>\n",
627     "comments": "",
628     "outputs": 1,
629     "x": 1929.5491485595703,
630     "y": 157.11110258102417,
631     "z": "f3682574.cde048",
632     "wires": [
633       [
634         "fc6be9bd.f8dd28"
635       ]
636     ]
637   },
638   {
639     "id": "fc6be9bd.f8dd28",
640     "type": "set",
641     "name": "set vpnType",
642     "xml": "<set>\n<parameter name='prop.sotn.vpnType' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
643     "comments": "",
644     "x": 2098.882781982422,
645     "y": 154.57226753234863,
646     "z": "f3682574.cde048",
647     "wires": [
648       
649     ]
650   },
651   {
652     "id": "64b1c8e5.3ad178",
653     "type": "switchNode",
654     "name": "switch access-provider-id",
655     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-provider-id'`\">\n",
656     "comments": "",
657     "outputs": 1,
658     "x": 1764.0307846069336,
659     "y": 483.55562114715576,
660     "z": "f3682574.cde048",
661     "wires": [
662       [
663         "d7282d61.ab2dc"
664       ]
665     ]
666   },
667   {
668     "id": "c55257d1.2dce08",
669     "type": "switchNode",
670     "name": "switch access-client-id",
671     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-client-id'`\">\n",
672     "comments": "",
673     "outputs": 1,
674     "x": 1756.5862655639648,
675     "y": 528.8889503479004,
676     "z": "f3682574.cde048",
677     "wires": [
678       [
679         "3e5c147b.b1e80c"
680       ]
681     ]
682   },
683   {
684     "id": "70e3ab9b.3b6ef4",
685     "type": "switchNode",
686     "name": "switch access-topology-id",
687     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-topology-id'`\">\n",
688     "comments": "",
689     "outputs": 1,
690     "x": 1761.0307235717773,
691     "y": 567.7778358459473,
692     "z": "f3682574.cde048",
693     "wires": [
694       [
695         "733a89f7.791ab8"
696       ]
697     ]
698   },
699   {
700     "id": "d7282d61.ab2dc",
701     "type": "outcomeTrue",
702     "name": "true",
703     "xml": "<outcome value='true'>\n",
704     "comments": "",
705     "outputs": 1,
706     "x": 1948.0307846069336,
707     "y": 482.5556364059448,
708     "z": "f3682574.cde048",
709     "wires": [
710       [
711         "bf6a3d1f.8cbc"
712       ]
713     ]
714   },
715   {
716     "id": "3e5c147b.b1e80c",
717     "type": "outcomeTrue",
718     "name": "true",
719     "xml": "<outcome value='true'>\n",
720     "comments": "",
721     "outputs": 1,
722     "x": 1943.5862655639648,
723     "y": 524.8889503479004,
724     "z": "f3682574.cde048",
725     "wires": [
726       [
727         "eae17cc1.2b92b"
728       ]
729     ]
730   },
731   {
732     "id": "733a89f7.791ab8",
733     "type": "outcomeTrue",
734     "name": "true",
735     "xml": "<outcome value='true'>\n",
736     "comments": "",
737     "outputs": 1,
738     "x": 1948.0307235717773,
739     "y": 563.7778358459473,
740     "z": "f3682574.cde048",
741     "wires": [
742       [
743         "bf2ad720.26e6f8"
744       ]
745     ]
746   },
747   {
748     "id": "bf6a3d1f.8cbc",
749     "type": "set",
750     "name": "set access-provider-id",
751     "xml": "<set>\n<parameter name='prop.sotn.access-provider-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
752     "comments": "",
753     "x": 2131.253143310547,
754     "y": 481.66682052612305,
755     "z": "f3682574.cde048",
756     "wires": [
757       
758     ]
759   },
760   {
761     "id": "eae17cc1.2b92b",
762     "type": "set",
763     "name": "set access-client-id",
764     "xml": "<set>\n<parameter name='prop.sotn.access-client-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
765     "comments": "",
766     "x": 2120.1421813964844,
767     "y": 522.8994269371033,
768     "z": "f3682574.cde048",
769     "wires": [
770       
771     ]
772   },
773   {
774     "id": "bf2ad720.26e6f8",
775     "type": "set",
776     "name": "set access-topology-id",
777     "xml": "<set>\n<parameter name='prop.sotn.access-topology-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
778     "comments": "",
779     "x": 2130.0310974121094,
780     "y": 561.7882833480835,
781     "z": "f3682574.cde048",
782     "wires": [
783       
784     ]
785   },
786   {
787     "id": "f11487f.1a2d778",
788     "type": "switchNode",
789     "name": "switch access-node-id",
790     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-node-id'`\">\n",
791     "comments": "",
792     "outputs": 1,
793     "x": 1761.8454818725586,
794     "y": 614.4444794654846,
795     "z": "f3682574.cde048",
796     "wires": [
797       [
798         "3f7939dd.f6bad6"
799       ]
800     ]
801   },
802   {
803     "id": "3f7939dd.f6bad6",
804     "type": "outcomeTrue",
805     "name": "true",
806     "xml": "<outcome value='true'>\n",
807     "comments": "",
808     "outputs": 1,
809     "x": 1948.8454818725586,
810     "y": 610.4444794654846,
811     "z": "f3682574.cde048",
812     "wires": [
813       [
814         "36806cf5.900574"
815       ]
816     ]
817   },
818   {
819     "id": "f273d999.226da8",
820     "type": "switchNode",
821     "name": "switch access-ltp-id",
822     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-ltp-id'`\">\n",
823     "comments": "",
824     "outputs": 1,
825     "x": 1758.6232528686523,
826     "y": 656.8889560699463,
827     "z": "f3682574.cde048",
828     "wires": [
829       [
830         "dd2b85b9.e6ec48"
831       ]
832     ]
833   },
834   {
835     "id": "dd2b85b9.e6ec48",
836     "type": "outcomeTrue",
837     "name": "true",
838     "xml": "<outcome value='true'>\n",
839     "comments": "",
840     "outputs": 1,
841     "x": 1945.6232528686523,
842     "y": 652.8889560699463,
843     "z": "f3682574.cde048",
844     "wires": [
845       [
846         "7e4475d7.79ec8c"
847       ]
848     ]
849   },
850   {
851     "id": "36806cf5.900574",
852     "type": "set",
853     "name": "set access-node-id",
854     "xml": "<set>\n<parameter name='prop.sotn.access-node-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
855     "comments": "",
856     "x": 2120.8457946777344,
857     "y": 609.1216135025024,
858     "z": "f3682574.cde048",
859     "wires": [
860       
861     ]
862   },
863   {
864     "id": "7e4475d7.79ec8c",
865     "type": "set",
866     "name": "set access-ltp-id",
867     "xml": "<set>\n<parameter name='prop.sotn.access-ltp-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
868     "comments": "",
869     "x": 2111.2899475097656,
870     "y": 651.8993854522705,
871     "z": "f3682574.cde048",
872     "wires": [
873       
874     ]
875   },
876   {
877     "id": "1522718b.801dfe",
878     "type": "save",
879     "name": "save srcLTP relationship in AAI",
880     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration:relationship-list' \n      key='configuration.configuration-id = $prop.sotn.network-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $unique-src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-src-ltpId`\" />",
881     "comments": "",
882     "outputs": 1,
883     "x": 800.1047744750977,
884     "y": 553.5184006690979,
885     "z": "f3682574.cde048",
886     "wires": [
887       [
888         
889       ]
890     ]
891   },
892   {
893     "id": "e184926f.0ad08",
894     "type": "set",
895     "name": "set unique-src-ltpId",
896     "xml": "<set>\n<parameter name='unique-src-ltpId' value=\"`'nodeId-' + $prop.sotn.src-access-node-id + '-ltpId-' + $prop.sotn.src-access-ltp-id`\" />",
897     "comments": "",
898     "x": 764.6603622436523,
899     "y": 515.9999980926514,
900     "z": "f3682574.cde048",
901     "wires": [
902       
903     ]
904   },
905   {
906     "id": "e251bd6c.23dfe",
907     "type": "switchNode",
908     "name": "switch EIR",
909     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'EIR'`\">\n",
910     "comments": "",
911     "outputs": 1,
912     "x": 1724.5311279296875,
913     "y": 250.03125,
914     "z": "f3682574.cde048",
915     "wires": [
916       [
917         "8810ee0c.a4e38"
918       ]
919     ]
920   },
921   {
922     "id": "8810ee0c.a4e38",
923     "type": "outcomeTrue",
924     "name": "true",
925     "xml": "<outcome value='true'>\n",
926     "comments": "",
927     "outputs": 1,
928     "x": 1926.5310897827148,
929     "y": 245.03127002716064,
930     "z": "f3682574.cde048",
931     "wires": [
932       [
933         "1e197aec.8afff5"
934       ]
935     ]
936   },
937   {
938     "id": "1e197aec.8afff5",
939     "type": "set",
940     "name": "set eir",
941     "xml": "<set>\n<parameter name='prop.sotn.eir' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
942     "comments": "",
943     "x": 2082.8645935058594,
944     "y": 244.49240589141846,
945     "z": "f3682574.cde048",
946     "wires": [
947       
948     ]
949   },
950   {
951     "id": "f51170c3.6db7",
952     "type": "switchNode",
953     "name": "switch CBS",
954     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'CBS'`\">\n",
955     "comments": "",
956     "outputs": 1,
957     "x": 1724.5311279296875,
958     "y": 299.03125,
959     "z": "f3682574.cde048",
960     "wires": [
961       [
962         "49df64ea.07087c"
963       ]
964     ]
965   },
966   {
967     "id": "49df64ea.07087c",
968     "type": "outcomeTrue",
969     "name": "true",
970     "xml": "<outcome value='true'>\n",
971     "comments": "",
972     "outputs": 1,
973     "x": 1923.5310897827148,
974     "y": 295.0312566757202,
975     "z": "f3682574.cde048",
976     "wires": [
977       [
978         "386c9243.097e5e"
979       ]
980     ]
981   },
982   {
983     "id": "386c9243.097e5e",
984     "type": "set",
985     "name": "set cbs",
986     "xml": "<set>\n<parameter name='prop.sotn.cbs' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
987     "comments": "",
988     "x": 2081.8646545410156,
989     "y": 293.49241638183594,
990     "z": "f3682574.cde048",
991     "wires": [
992       
993     ]
994   },
995   {
996     "id": "ba516d92.f632",
997     "type": "switchNode",
998     "name": "switch PBS",
999     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'PBS'`\">\n",
1000     "comments": "",
1001     "outputs": 1,
1002     "x": 1724.5311279296875,
1003     "y": 344.03125,
1004     "z": "f3682574.cde048",
1005     "wires": [
1006       [
1007         "9ac50dab.4fbde"
1008       ]
1009     ]
1010   },
1011   {
1012     "id": "9ac50dab.4fbde",
1013     "type": "outcomeTrue",
1014     "name": "true",
1015     "xml": "<outcome value='true'>\n",
1016     "comments": "",
1017     "outputs": 1,
1018     "x": 1923.5310897827148,
1019     "y": 337.03125762939453,
1020     "z": "f3682574.cde048",
1021     "wires": [
1022       [
1023         "fcfbd737.d83c58"
1024       ]
1025     ]
1026   },
1027   {
1028     "id": "fcfbd737.d83c58",
1029     "type": "set",
1030     "name": "set pbs",
1031     "xml": "<set>\n<parameter name='prop.sotn.pbs' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
1032     "comments": "",
1033     "x": 2084.8646545410156,
1034     "y": 338.49241638183594,
1035     "z": "f3682574.cde048",
1036     "wires": [
1037       
1038     ]
1039   },
1040   {
1041     "id": "fe52bad5.770908",
1042     "type": "switchNode",
1043     "name": "switch color-aware",
1044     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'color-aware'`\">\n",
1045     "comments": "",
1046     "outputs": 1,
1047     "x": 1746.5312118530273,
1048     "y": 391.0312671661377,
1049     "z": "f3682574.cde048",
1050     "wires": [
1051       [
1052         "bccb8e92.0b5c7"
1053       ]
1054     ]
1055   },
1056   {
1057     "id": "bccb8e92.0b5c7",
1058     "type": "outcomeTrue",
1059     "name": "true",
1060     "xml": "<outcome value='true'>\n",
1061     "comments": "",
1062     "outputs": 1,
1063     "x": 1924.5312156677246,
1064     "y": 385.03125953674316,
1065     "z": "f3682574.cde048",
1066     "wires": [
1067       [
1068         "e228c0d1.eaf54"
1069       ]
1070     ]
1071   },
1072   {
1073     "id": "e228c0d1.eaf54",
1074     "type": "set",
1075     "name": "set colorAware",
1076     "xml": "<set>\n<parameter name='prop.sotn.colorAware' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
1077     "comments": "",
1078     "x": 2105.8645935058594,
1079     "y": 384.49241828918457,
1080     "z": "f3682574.cde048",
1081     "wires": [
1082       
1083     ]
1084   },
1085   {
1086     "id": "b3759567.fa1fc8",
1087     "type": "switchNode",
1088     "name": "switch coupling-flag",
1089     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'coupling-flag'`\">\n",
1090     "comments": "",
1091     "outputs": 1,
1092     "x": 1746.5312194824219,
1093     "y": 437.0312919616699,
1094     "z": "f3682574.cde048",
1095     "wires": [
1096       [
1097         "a4cdcb3.5f83638"
1098       ]
1099     ]
1100   },
1101   {
1102     "id": "a4cdcb3.5f83638",
1103     "type": "outcomeTrue",
1104     "name": "true",
1105     "xml": "<outcome value='true'>\n",
1106     "comments": "",
1107     "outputs": 1,
1108     "x": 1924.5312118530273,
1109     "y": 429.0312604904175,
1110     "z": "f3682574.cde048",
1111     "wires": [
1112       [
1113         "6e47434b.16603c"
1114       ]
1115     ]
1116   },
1117   {
1118     "id": "6e47434b.16603c",
1119     "type": "set",
1120     "name": "set couplingFlag",
1121     "xml": "<set>\n<parameter name='prop.sotn.couplingFlag' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
1122     "comments": "",
1123     "x": 2109.8645935058594,
1124     "y": 429.4924430847168,
1125     "z": "f3682574.cde048",
1126     "wires": [
1127       
1128     ]
1129   },
1130   {
1131     "id": "a9128726.ee25b8",
1132     "type": "switchNode",
1133     "name": "switch cVLAN",
1134     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'cVLAN'`\">\n",
1135     "comments": "",
1136     "outputs": 1,
1137     "x": 1737.5311584472656,
1138     "y": 702.0312995910645,
1139     "z": "f3682574.cde048",
1140     "wires": [
1141       [
1142         "1ad6eb3c.320b35"
1143       ]
1144     ]
1145   },
1146   {
1147     "id": "1ad6eb3c.320b35",
1148     "type": "outcomeTrue",
1149     "name": "true",
1150     "xml": "<outcome value='true'>\n",
1151     "comments": "",
1152     "outputs": 1,
1153     "x": 1942.5311279296875,
1154     "y": 703.03125,
1155     "z": "f3682574.cde048",
1156     "wires": [
1157       [
1158         "9dd46589.0d0a48"
1159       ]
1160     ]
1161   },
1162   {
1163     "id": "9dd46589.0d0a48",
1164     "type": "set",
1165     "name": "set cVLAN",
1166     "xml": "<set>\n<parameter name='prop.sotn.cVLAN' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
1167     "comments": "",
1168     "x": 2096.197967529297,
1169     "y": 702.0417213439941,
1170     "z": "f3682574.cde048",
1171     "wires": [
1172       
1173     ]
1174   },
1175   {
1176     "id": "b152e598.bced08",
1177     "type": "comment",
1178     "name": "TODO: Recheck AAI schemas",
1179     "info": "",
1180     "comments": "",
1181     "x": 791.0312805175781,
1182     "y": 33.03132629394531,
1183     "z": "f3682574.cde048",
1184     "wires": [
1185       
1186     ]
1187   }
1188 ]