459daf4acc42f590291552eb400417de5e6e8566
[ccsdk/distribution.git] / platform-logic / oofpcipoc-api / src / main / json / oofpcipoc-api_add-neighbor.json
1 [
2     {
3         "id": "aeeb7f1b.21de4",
4         "type": "method",
5         "name": "method",
6         "xml": "<method rpc='add-neighbor' mode='sync'>\n",
7         "comments": "",
8         "outputs": 1,
9         "x": 129,
10         "y": 216.98956298828125,
11         "z": "5119743a.9ef5ec",
12         "wires": [
13             [
14                 "ddcea5f4.b62c08"
15             ]
16         ]
17     },
18     {
19         "id": "c0c05b1f.4be1c8",
20         "type": "dgstart",
21         "name": "DGSTART",
22         "outputs": 1,
23         "x": 96.00000762939453,
24         "y": 34.989585876464844,
25         "z": "5119743a.9ef5ec",
26         "wires": [
27             [
28                 "9a9306f0.db8218"
29             ]
30         ]
31     },
32     {
33         "id": "9a9306f0.db8218",
34         "type": "service-logic",
35         "name": "oofpcipoc-api 0.4.2-SNAPSHOT",
36         "module": "oofpcipoc-api",
37         "version": "${project.version}",
38         "comments": "",
39         "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='oofpcipoc-api' version='0.4.2-SNAPSHOT'>",
40         "outputs": 1,
41         "x": 161.99999237060547,
42         "y": 115.98968505859375,
43         "z": "5119743a.9ef5ec",
44         "wires": [
45             [
46                 "aeeb7f1b.21de4"
47             ]
48         ]
49     },
50     {
51         "id": "ddcea5f4.b62c08",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 82.48960876464844,
59         "y": 331.9896240234375,
60         "z": "5119743a.9ef5ec",
61         "wires": [
62             [
63                 "92a384d9.f02948",
64                 "48d142ef.d9f49c",
65                 "bdb38341.e760b",
66                 "1110ac05.6f6994",
67                 "fc2b7348.4f328",
68                 "dd5b7dbc.8d908"
69             ]
70         ]
71     },
72     {
73         "id": "92a384d9.f02948",
74         "type": "returnSuccess",
75         "name": "return success",
76         "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=\"SUCCESSFUL add-neighbor Execution\" />\n",
77         "comments": "",
78         "x": 137.000244140625,
79         "y": 578.9896850585938,
80         "z": "5119743a.9ef5ec",
81         "wires": []
82     },
83     {
84         "id": "f4036480.02d348",
85         "type": "record",
86         "name": "record",
87         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Input RPC Payload request for Alias:  \"/>\n<parameter name=\"field2\" value=\"`$add-neighbor-input.alias`\"/>\n<parameter name=\"field3\" value=\"Input RPC Payload request for add-neighbor. Neighbor Cell #:  \"/>\n<parameter name=\"field4\" value=\"`$idx`\"/>\n<parameter name=\"field5\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`\"/>\n<parameter name=\"field6\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`\"/>\n<parameter name=\"field7\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`\"/>\n<parameter name=\"field8\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`\"/>\n<parameter name=\"field9\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`\"/>",
88         "comments": "",
89         "outputs": 1,
90         "x": 558.0009155273438,
91         "y": 132.98963928222656,
92         "z": "5119743a.9ef5ec",
93         "wires": [
94             []
95         ]
96     },
97     {
98         "id": "a94986f.5e05878",
99         "type": "comment",
100         "name": "Add Neighbor",
101         "info": "",
102         "comments": "",
103         "x": 372.0000057220459,
104         "y": 33,
105         "z": "5119743a.9ef5ec",
106         "wires": []
107     },
108     {
109         "id": "ef8351b1.e89d7",
110         "type": "failure",
111         "name": "failure",
112         "xml": "<outcome value='failure'>\n",
113         "comments": "",
114         "outputs": 1,
115         "x": 1106.000259399414,
116         "y": 442.6666326522827,
117         "z": "5119743a.9ef5ec",
118         "wires": [
119             [
120                 "ac999630.a33af8"
121             ]
122         ]
123     },
124     {
125         "id": "ac999630.a33af8",
126         "type": "returnFailure",
127         "name": "return failure",
128         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error getting details about new neighbor \" />",
129         "comments": "",
130         "x": 1309.000072479248,
131         "y": 448.66667556762695,
132         "z": "5119743a.9ef5ec",
133         "wires": []
134     },
135     {
136         "id": "8647fd2c.83ed",
137         "type": "success",
138         "name": "success",
139         "xml": "<outcome value='success'>\n",
140         "comments": "",
141         "outputs": 1,
142         "x": 1089.000057220459,
143         "y": 526.6667613983154,
144         "z": "5119743a.9ef5ec",
145         "wires": [
146             [
147                 "3f87ccd6.6e8934"
148             ]
149         ]
150     },
151     {
152         "id": "3f87ccd6.6e8934",
153         "type": "block",
154         "name": "block",
155         "xml": "<block>\n",
156         "atomic": "false",
157         "comments": "",
158         "outputs": 1,
159         "x": 1254.999855041504,
160         "y": 530.6666946411133,
161         "z": "5119743a.9ef5ec",
162         "wires": [
163             [
164                 "1f57f138.7861af"
165             ]
166         ]
167     },
168     {
169         "id": "1f57f138.7861af",
170         "type": "record",
171         "name": "record",
172         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Details about newly added Neighbor\"/>\n<parameter name=\"field2\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`\"/>\n<parameter name=\"field3\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`\"/>\n<parameter name=\"field4\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`\"/>\n<parameter name=\"field5\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`\"/>\n<parameter name=\"field6\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`\"/>",
173         "comments": "",
174         "outputs": 1,
175         "x": 1430.999797821045,
176         "y": 529.6669616699219,
177         "z": "5119743a.9ef5ec",
178         "wires": [
179             []
180         ]
181     },
182     {
183         "id": "7f995943.734d18",
184         "type": "record",
185         "name": "record",
186         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for Neighbor Add PUT operation\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmnid`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cid`\"/>\n<parameter name=\"field5\" value=\"`$tmp.phy-cell-id`\"/>\n<parameter name=\"field6\" value=\"`$tmp.pnf-name`\"/>\n<parameter name=\"field7\" value=\"`$tmp.blacklisted`\"/>",
187         "comments": "",
188         "outputs": 1,
189         "x": 809.0009384155273,
190         "y": 364.00007247924805,
191         "z": "5119743a.9ef5ec",
192         "wires": [
193             []
194         ]
195     },
196     {
197         "id": "bdb38341.e760b",
198         "type": "for",
199         "name": "for",
200         "xml": "<for index='idx' start='0' end=\"`$add-neighbor-input.lte-cell-number-of-entries`\" >",
201         "comments": "",
202         "outputs": 1,
203         "x": 424.08575439453125,
204         "y": 144.9531707763672,
205         "z": "5119743a.9ef5ec",
206         "wires": [
207             [
208                 "f4036480.02d348"
209             ]
210         ]
211     },
212     {
213         "id": "48d142ef.d9f49c",
214         "type": "record",
215         "name": "record",
216         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to add neighbors. Number of neighbors to add: \"/>\n<parameter name=\"field2\" value=\"`$add-neighbor-input.lte-cell-number-of-entries`\"/>\n",
217         "comments": "",
218         "outputs": 1,
219         "x": 447.00030517578125,
220         "y": 81.01042938232422,
221         "z": "5119743a.9ef5ec",
222         "wires": [
223             []
224         ]
225     },
226     {
227         "id": "363b094e.0a3776",
228         "type": "for",
229         "name": "for",
230         "xml": "<for index='idx' start='0' end=\"`$add-neighbor-input.lte-cell-number-of-entries`\" >",
231         "comments": "",
232         "outputs": 1,
233         "x": 517.0001831054688,
234         "y": 382,
235         "z": "5119743a.9ef5ec",
236         "wires": [
237             [
238                 "78f71404.16b18c"
239             ]
240         ]
241     },
242     {
243         "id": "6136870d.6c6478",
244         "type": "set",
245         "name": "set tmp variables for the requested neighbor to be added",
246         "xml": "<set>\n<parameter name=\"tmp.plmnid\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`\"/>\n<parameter name=\"tmp.cid\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`\"/>\n<parameter name=\"tmp.phy-cell-id\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`\"/>\n<parameter name=\"tmp.pnf-name\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`\"/>\n<parameter name=\"tmp.blacklisted\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`\"/>\n<parameter name=\"tmp.alias\" value=\"`$add-neighbor-input.alias`\"/>",
247         "comments": "",
248         "x": 911.0011596679688,
249         "y": 45.889068603515625,
250         "z": "5119743a.9ef5ec",
251         "wires": []
252     },
253     {
254         "id": "6246b287.7aacbc",
255         "type": "failure",
256         "name": "failure",
257         "xml": "<outcome value='failure'>\n",
258         "comments": "",
259         "outputs": 1,
260         "x": 1109.000343322754,
261         "y": 305.00006580352783,
262         "z": "5119743a.9ef5ec",
263         "wires": [
264             [
265                 "f674a6de.faac88"
266             ]
267         ]
268     },
269     {
270         "id": "edbcedd0.5795c",
271         "type": "success",
272         "name": "success",
273         "xml": "<outcome value='success'>\n",
274         "comments": "",
275         "outputs": 1,
276         "x": 1100.000301361084,
277         "y": 385.9999885559082,
278         "z": "5119743a.9ef5ec",
279         "wires": [
280             [
281                 "eff48a81.d2c568"
282             ]
283         ]
284     },
285     {
286         "id": "f674a6de.faac88",
287         "type": "block",
288         "name": "block",
289         "xml": "<block>\n",
290         "atomic": "false",
291         "comments": "",
292         "outputs": 1,
293         "x": 1242.0002727508545,
294         "y": 264.0000972747803,
295         "z": "5119743a.9ef5ec",
296         "wires": [
297             [
298                 "28976a3f.4f5f06"
299             ]
300         ]
301     },
302     {
303         "id": "28976a3f.4f5f06",
304         "type": "returnFailure",
305         "name": "return failure",
306         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding a new neighbor\" />",
307         "comments": "",
308         "x": 1420.999963760376,
309         "y": 261.0000648498535,
310         "z": "5119743a.9ef5ec",
311         "wires": []
312     },
313     {
314         "id": "eff48a81.d2c568",
315         "type": "block",
316         "name": "block",
317         "xml": "<block>\n",
318         "atomic": "false",
319         "comments": "",
320         "outputs": 1,
321         "x": 1265.0000305175781,
322         "y": 385.00004863739014,
323         "z": "5119743a.9ef5ec",
324         "wires": [
325             [
326                 "661aa2c3.9aab5c"
327             ]
328         ]
329     },
330     {
331         "id": "661aa2c3.9aab5c",
332         "type": "record",
333         "name": "record",
334         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PUT New Neighbor Executed Successfully \"/>",
335         "comments": "",
336         "outputs": 1,
337         "x": 1438.000144958496,
338         "y": 386.0000810623169,
339         "z": "5119743a.9ef5ec",
340         "wires": [
341             []
342         ]
343     },
344     {
345         "id": "78f71404.16b18c",
346         "type": "block",
347         "name": "block : atomic",
348         "xml": "<block atomic='true'>",
349         "atomic": "true",
350         "comments": "",
351         "outputs": 1,
352         "x": 629,
353         "y": 262.0104675292969,
354         "z": "5119743a.9ef5ec",
355         "wires": [
356             [
357                 "6136870d.6c6478",
358                 "7f995943.734d18",
359                 "f2193064.b94cb",
360                 "5ed24074.bab9f",
361                 "4c6d75c9.00d93c",
362                 "3c21b3a5.bda2cc",
363                 "6fce4ab.12f26b4",
364                 "d6d8f210.b0639",
365                 "adc061b8.23a98",
366                 "3587edc4.c1b4e2"
367             ]
368         ]
369     },
370     {
371         "id": "1110ac05.6f6994",
372         "type": "execute",
373         "name": "execute Properties",
374         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/sdnr-oofpcipoc-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
375         "comments": "",
376         "outputs": 1,
377         "x": 453.000244140625,
378         "y": 202.01040649414062,
379         "z": "5119743a.9ef5ec",
380         "wires": [
381             []
382         ]
383     },
384     {
385         "id": "fc2b7348.4f328",
386         "type": "record",
387         "name": "record",
388         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Properties read .. neighbor-add template\"/>\n<parameter name=\"field2\" value=\"`$prop.neighbor-add.templatefile`\"/>\n<parameter name=\"field3\" value=\"`$prop.controller.user`\"/>\n<parameter name=\"field4\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"field5\" value=\"`$prop.controller.url`\"/>\n<parameter name=\"field6\" value=\"`$prop.restapi.lte-ran-neighbor-in-use`\"/>",
389         "comments": "",
390         "outputs": 1,
391         "x": 410.0003662109375,
392         "y": 253.01051330566406,
393         "z": "5119743a.9ef5ec",
394         "wires": [
395             []
396         ]
397     },
398     {
399         "id": "f2193064.b94cb",
400         "type": "execute",
401         "name": "generate neighbor add URL",
402         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.lte-ran-neighbor-in-use`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{alias}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.alias`\"/>",
403         "comments": "",
404         "outputs": 1,
405         "x": 966.0005493164062,
406         "y": 127.01055145263672,
407         "z": "5119743a.9ef5ec",
408         "wires": [
409             []
410         ]
411     },
412     {
413         "id": "5ed24074.bab9f",
414         "type": "execute",
415         "name": "add a neighbor using PUT",
416         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/oofpcipoc-addNeighbor.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.add-neighbor-service-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"oofpci-add-neighbor-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
417         "comments": "",
418         "outputs": 1,
419         "x": 847.000373840332,
420         "y": 411.0105400085449,
421         "z": "5119743a.9ef5ec",
422         "wires": [
423             [
424                 "6246b287.7aacbc",
425                 "edbcedd0.5795c"
426             ]
427         ]
428     },
429     {
430         "id": "4c6d75c9.00d93c",
431         "type": "execute",
432         "name": "Get newly added neighbor details",
433         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.add-neighbor-service-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"oofpci-neighbor-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n",
434         "comments": "",
435         "outputs": 1,
436         "x": 833.0001449584961,
437         "y": 469.0105867385864,
438         "z": "5119743a.9ef5ec",
439         "wires": [
440             [
441                 "ef8351b1.e89d7",
442                 "8647fd2c.83ed"
443             ]
444         ]
445     },
446     {
447         "id": "3c21b3a5.bda2cc",
448         "type": "execute",
449         "name": "populate plmnid",
450         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.add-neighbor-service-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{plmnid}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.plmnid`\"/>",
451         "comments": "",
452         "outputs": 1,
453         "x": 1045.0002212524414,
454         "y": 226.01038932800293,
455         "z": "5119743a.9ef5ec",
456         "wires": [
457             []
458         ]
459     },
460     {
461         "id": "6fce4ab.12f26b4",
462         "type": "execute",
463         "name": "populate cid",
464         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.add-neighbor-service-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{cid}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.cid`\"/>",
465         "comments": "",
466         "outputs": 1,
467         "x": 873.0001678466797,
468         "y": 321.0103921890259,
469         "z": "5119743a.9ef5ec",
470         "wires": [
471             []
472         ]
473     },
474     {
475         "id": "d6d8f210.b0639",
476         "type": "record",
477         "name": "record",
478         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add Neighbor List URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>",
479         "comments": "",
480         "outputs": 1,
481         "x": 959.0000991821289,
482         "y": 179.01039028167725,
483         "z": "5119743a.9ef5ec",
484         "wires": [
485             []
486         ]
487     },
488     {
489         "id": "adc061b8.23a98",
490         "type": "record",
491         "name": "record",
492         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add Neighbor List URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>\n",
493         "comments": "",
494         "outputs": 1,
495         "x": 986.000057220459,
496         "y": 269.0103907585144,
497         "z": "5119743a.9ef5ec",
498         "wires": [
499             []
500         ]
501     },
502     {
503         "id": "3587edc4.c1b4e2",
504         "type": "record",
505         "name": "record",
506         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Temporary variable for Neighbor Cell #:  \"/>\n<parameter name=\"field2\" value=\"`$idx`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmnid`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cid`\"/>\n<parameter name=\"field5\" value=\"`$tmp.phy-cell-id`\"/>\n<parameter name=\"field6\" value=\"`$tmp.pnf-name`\"/>\n<parameter name=\"field7\" value=\"`$tmp.blacklisted`\"/>\n<parameter name=\"field8\" value=\"`$tmp.alias`\"/>\n",
507         "comments": "",
508         "outputs": 1,
509         "x": 819.0000610351562,
510         "y": 93.01041412353516,
511         "z": "5119743a.9ef5ec",
512         "wires": [
513             []
514         ]
515     },
516     {
517         "id": "7d79f8c7.dc0998",
518         "type": "failure",
519         "name": "failure",
520         "xml": "<outcome value='failure'>\n",
521         "comments": "",
522         "outputs": 1,
523         "x": 950,
524         "y": 986,
525         "z": "5119743a.9ef5ec",
526         "wires": [
527             [
528                 "b55a3fbd.f2373"
529             ]
530         ]
531     },
532     {
533         "id": "b55a3fbd.f2373",
534         "type": "returnFailure",
535         "name": "return failure",
536         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error getting details about new neighbor \" />",
537         "comments": "",
538         "x": 1152.999813079834,
539         "y": 992.0000429153442,
540         "z": "5119743a.9ef5ec",
541         "wires": []
542     },
543     {
544         "id": "4b83adf6.1b4d14",
545         "type": "success",
546         "name": "success",
547         "xml": "<outcome value='success'>\n",
548         "comments": "",
549         "outputs": 1,
550         "x": 932.9997978210449,
551         "y": 1070.0001287460327,
552         "z": "5119743a.9ef5ec",
553         "wires": [
554             [
555                 "f623dc48.7bc69"
556             ]
557         ]
558     },
559     {
560         "id": "f623dc48.7bc69",
561         "type": "block",
562         "name": "block",
563         "xml": "<block>\n",
564         "atomic": "false",
565         "comments": "",
566         "outputs": 1,
567         "x": 1098.9995956420898,
568         "y": 1074.0000619888306,
569         "z": "5119743a.9ef5ec",
570         "wires": [
571             [
572                 "362eeae.fdf5716"
573             ]
574         ]
575     },
576     {
577         "id": "362eeae.fdf5716",
578         "type": "record",
579         "name": "record",
580         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Details about newly added Neighbor\"/>\n<parameter name=\"field2\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`\"/>\n<parameter name=\"field3\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`\"/>\n<parameter name=\"field4\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`\"/>\n<parameter name=\"field5\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`\"/>\n<parameter name=\"field6\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`\"/>",
581         "comments": "",
582         "outputs": 1,
583         "x": 1274.9995384216309,
584         "y": 1073.0003290176392,
585         "z": "5119743a.9ef5ec",
586         "wires": [
587             []
588         ]
589     },
590     {
591         "id": "15df17e8.d9f018",
592         "type": "record",
593         "name": "record",
594         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for Neighbor Add PUT operation\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmnid`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cid`\"/>\n<parameter name=\"field5\" value=\"`$tmp.phy-cell-id`\"/>\n<parameter name=\"field6\" value=\"`$tmp.pnf-name`\"/>\n<parameter name=\"field7\" value=\"`$tmp.blacklisted`\"/>",
595         "comments": "",
596         "outputs": 1,
597         "x": 653.0006790161133,
598         "y": 907.3334398269653,
599         "z": "5119743a.9ef5ec",
600         "wires": [
601             []
602         ]
603     },
604     {
605         "id": "250e361f.428f2a",
606         "type": "set",
607         "name": "set tmp variables for the requested neighbor to be added",
608         "xml": "<set>\n<parameter name=\"tmp.plmnid\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`\"/>\n<parameter name=\"tmp.cid\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`\"/>\n<parameter name=\"tmp.phy-cell-id\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`\"/>\n<parameter name=\"tmp.pnf-name\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`\"/>\n<parameter name=\"tmp.blacklisted\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`\"/>\n<parameter name=\"tmp.alias\" value=\"`$add-neighbor-input.alias`\"/>",
609         "comments": "",
610         "x": 838.0009155273438,
611         "y": 567.222412109375,
612         "z": "5119743a.9ef5ec",
613         "wires": []
614     },
615     {
616         "id": "6b6a9cd4.106434",
617         "type": "failure",
618         "name": "failure",
619         "xml": "<outcome value='failure'>\n",
620         "comments": "",
621         "outputs": 1,
622         "x": 953.0000839233398,
623         "y": 848.3334331512451,
624         "z": "5119743a.9ef5ec",
625         "wires": [
626             [
627                 "58f8ef76.6067d"
628             ]
629         ]
630     },
631     {
632         "id": "8cf43b7e.792208",
633         "type": "success",
634         "name": "success",
635         "xml": "<outcome value='success'>\n",
636         "comments": "",
637         "outputs": 1,
638         "x": 944.0000419616699,
639         "y": 929.3333559036255,
640         "z": "5119743a.9ef5ec",
641         "wires": [
642             [
643                 "ccc2d5ee.fb0fe8"
644             ]
645         ]
646     },
647     {
648         "id": "58f8ef76.6067d",
649         "type": "block",
650         "name": "block",
651         "xml": "<block>\n",
652         "atomic": "false",
653         "comments": "",
654         "outputs": 1,
655         "x": 1086.0000133514404,
656         "y": 807.3334646224976,
657         "z": "5119743a.9ef5ec",
658         "wires": [
659             [
660                 "29979cbe.d55e64"
661             ]
662         ]
663     },
664     {
665         "id": "29979cbe.d55e64",
666         "type": "returnFailure",
667         "name": "return failure",
668         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding a new neighbor\" />",
669         "comments": "",
670         "x": 1264.999704360962,
671         "y": 804.3334321975708,
672         "z": "5119743a.9ef5ec",
673         "wires": []
674     },
675     {
676         "id": "ccc2d5ee.fb0fe8",
677         "type": "block",
678         "name": "block",
679         "xml": "<block>\n",
680         "atomic": "false",
681         "comments": "",
682         "outputs": 1,
683         "x": 1108.999771118164,
684         "y": 928.3334159851074,
685         "z": "5119743a.9ef5ec",
686         "wires": [
687             [
688                 "1b563cee.d83563"
689             ]
690         ]
691     },
692     {
693         "id": "1b563cee.d83563",
694         "type": "record",
695         "name": "record",
696         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PUT New Neighbor Executed Successfully \"/>",
697         "comments": "",
698         "outputs": 1,
699         "x": 1281.999885559082,
700         "y": 929.3334484100342,
701         "z": "5119743a.9ef5ec",
702         "wires": [
703             []
704         ]
705     },
706     {
707         "id": "4d2987ef.ea1658",
708         "type": "execute",
709         "name": "generate neighbor add URL",
710         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.lte-ran-neighbor-in-use.ransim-mounted`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{alias}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.alias`\"/>",
711         "comments": "",
712         "outputs": 1,
713         "x": 781.0003051757812,
714         "y": 659.3439331054688,
715         "z": "5119743a.9ef5ec",
716         "wires": [
717             []
718         ]
719     },
720     {
721         "id": "cc502fa8.e9011",
722         "type": "execute",
723         "name": "add a neighbor using PUT",
724         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/oofpcipoc-addNeighbor.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.add-neighbor-service-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"oofpci-add-neighbor-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
725         "comments": "",
726         "outputs": 1,
727         "x": 691.000114440918,
728         "y": 954.3439073562622,
729         "z": "5119743a.9ef5ec",
730         "wires": [
731             [
732                 "6b6a9cd4.106434",
733                 "8cf43b7e.792208"
734             ]
735         ]
736     },
737     {
738         "id": "beeeee7c.ffc14",
739         "type": "execute",
740         "name": "Get newly added neighbor details",
741         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.add-neighbor-service-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"oofpci-neighbor-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n",
742         "comments": "",
743         "outputs": 1,
744         "x": 676.999885559082,
745         "y": 1012.3439540863037,
746         "z": "5119743a.9ef5ec",
747         "wires": [
748             [
749                 "7d79f8c7.dc0998",
750                 "4b83adf6.1b4d14"
751             ]
752         ]
753     },
754     {
755         "id": "fc7661ec.d45a3",
756         "type": "execute",
757         "name": "populate plmnid",
758         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.add-neighbor-service-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{plmnid}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.plmnid`\"/>",
759         "comments": "",
760         "outputs": 1,
761         "x": 844.9999389648438,
762         "y": 771.34375,
763         "z": "5119743a.9ef5ec",
764         "wires": [
765             []
766         ]
767     },
768     {
769         "id": "7d7a277.ff55dd8",
770         "type": "execute",
771         "name": "populate cid",
772         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.add-neighbor-service-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{cid}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.cid`\"/>",
773         "comments": "",
774         "outputs": 1,
775         "x": 716.9999084472656,
776         "y": 864.3437595367432,
777         "z": "5119743a.9ef5ec",
778         "wires": [
779             []
780         ]
781     },
782     {
783         "id": "6a3cb946.4407b8",
784         "type": "record",
785         "name": "record",
786         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add Neighbor List URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>",
787         "comments": "",
788         "outputs": 1,
789         "x": 699.9998168945312,
790         "y": 710.34375,
791         "z": "5119743a.9ef5ec",
792         "wires": [
793             []
794         ]
795     },
796     {
797         "id": "d2640cd6.ff60a",
798         "type": "record",
799         "name": "record",
800         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add Neighbor List URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>\n",
801         "comments": "",
802         "outputs": 1,
803         "x": 829.9997978210449,
804         "y": 812.3437581062317,
805         "z": "5119743a.9ef5ec",
806         "wires": [
807             []
808         ]
809     },
810     {
811         "id": "c207f64e.adf758",
812         "type": "record",
813         "name": "record",
814         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Temporary variable for Neighbor Cell #:  \"/>\n<parameter name=\"field2\" value=\"`$idx`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmnid`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cid`\"/>\n<parameter name=\"field5\" value=\"`$tmp.phy-cell-id`\"/>\n<parameter name=\"field6\" value=\"`$tmp.pnf-name`\"/>\n<parameter name=\"field7\" value=\"`$tmp.blacklisted`\"/>\n<parameter name=\"field8\" value=\"`$tmp.alias`\"/>\n",
815         "comments": "",
816         "outputs": 1,
817         "x": 696.9998168945312,
818         "y": 613.34375,
819         "z": "5119743a.9ef5ec",
820         "wires": [
821             []
822         ]
823     },
824     {
825         "id": "503b0a42.4fcef4",
826         "type": "block",
827         "name": "block : atomic",
828         "xml": "<block atomic='true'>",
829         "atomic": "true",
830         "comments": "",
831         "outputs": 1,
832         "x": 441.99974060058594,
833         "y": 857.3438348770142,
834         "z": "5119743a.9ef5ec",
835         "wires": [
836             [
837                 "250e361f.428f2a",
838                 "15df17e8.d9f018",
839                 "4d2987ef.ea1658",
840                 "cc502fa8.e9011",
841                 "beeeee7c.ffc14",
842                 "fc7661ec.d45a3",
843                 "7d7a277.ff55dd8",
844                 "6a3cb946.4407b8",
845                 "d2640cd6.ff60a",
846                 "c207f64e.adf758",
847                 "111c92b7.4948cd"
848             ]
849         ]
850     },
851     {
852         "id": "8fc7c5ca.cbf158",
853         "type": "for",
854         "name": "for",
855         "xml": "<for index='idx' start='0' end=\"`$add-neighbor-input.lte-cell-number-of-entries`\" >",
856         "comments": "",
857         "outputs": 1,
858         "x": 478.9999084472656,
859         "y": 541.3333740234375,
860         "z": "5119743a.9ef5ec",
861         "wires": [
862             [
863                 "503b0a42.4fcef4"
864             ]
865         ]
866     },
867     {
868         "id": "dd5b7dbc.8d908",
869         "type": "switchNode",
870         "name": "switch mounted",
871         "xml": "<switch test='`$prop.ransim-mounted`'>\n",
872         "comments": "",
873         "outputs": 1,
874         "x": 284,
875         "y": 448,
876         "z": "5119743a.9ef5ec",
877         "wires": [
878             [
879                 "d370c315.857ce",
880                 "15822244.a3083e"
881             ]
882         ]
883     },
884     {
885         "id": "d370c315.857ce",
886         "type": "outcome",
887         "name": "Not Mounted",
888         "xml": "<outcome value='false'>\n",
889         "comments": "",
890         "outputs": 1,
891         "x": 371,
892         "y": 319,
893         "z": "5119743a.9ef5ec",
894         "wires": [
895             [
896                 "363b094e.0a3776"
897             ]
898         ]
899     },
900     {
901         "id": "15822244.a3083e",
902         "type": "outcome",
903         "name": "Mounted",
904         "xml": "<outcome value='true'>\n",
905         "comments": "",
906         "outputs": 1,
907         "x": 319,
908         "y": 571,
909         "z": "5119743a.9ef5ec",
910         "wires": [
911             [
912                 "8fc7c5ca.cbf158"
913             ]
914         ]
915     },
916     {
917         "id": "111c92b7.4948cd",
918         "type": "execute",
919         "name": "populate netconf mount",
920         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.add-neighbor-service-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n    <parameter name=\"target\" value=\"{pnf-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.pnf-name`\"/>",
921         "comments": "",
922         "outputs": 1,
923         "x": 891,
924         "y": 722,
925         "z": "5119743a.9ef5ec",
926         "wires": [
927             []
928         ]
929     }
930 ]