summaryrefslogtreecommitdiffstats
path: root/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_configuration-phy-cell-id.xml
blob: bf5c4710163f4dbc5f3ea903e7c9dcfe20b3f808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<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='${project.version}'>
    <method rpc='configuration-phy-cell-id' mode='sync'>
        <block atomic='true'>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="RPC to Configure PCI INVOKED. Number of Cells to configure: "/>
                <parameter name="field2" value="`$configuration-phy-cell-id-input.fap-service-number-of-entries`"/>
            </record>
            <for index='idx' start='0' end="`$configuration-phy-cell-id-input.fap-service-number-of-entries`" >
                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                    <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                    <parameter name="level" value="info" />
                    <parameter name="field1" value="Input RPC Payload request. FAP #:  "/>
                    <parameter name="field2" value="`$idx`"/>
                    <parameter name="field3" value="`$configuration-phy-cell-id-input.fap-service[$idx].alias`"/>
                    <parameter name="field4" value="`$configuration-phy-cell-id-input.fap-service[$idx].cid`"/>
                    <parameter name="field5" value="`$configuration-phy-cell-id-input.fap-service[$idx].phy-cell-id-in-use`"/>
                    <parameter name="field6" value="`$configuration-phy-cell-id-input.fap-service[$idx].pnf-name`"/>
                </record>
            </for>
            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
                <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/sdnr-oofpcipoc-api-dg.properties' />
                <parameter name='contextPrefix' value='prop' />
            </execute>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="Properties read .. pci patch target"/>
                <parameter name="field2" value="`$prop.oofpcipoc.patch.pci.target`"/>
                <parameter name="field3" value="`$prop.controller.user`"/>
                <parameter name="field4" value="`$prop.controller.pwd`"/>
                <parameter name="field5" value="`$prop.controller.url`"/>
                <parameter name="field6" value="ransim-mounted (true/false): "/>
                <parameter name="field7" value="`$prop.ransim-mounted`"/>
            </record>
            <switch test='`$prop.ransim-mounted`'>
                <outcome value='false'>
                    <for index='idx' start='0' end="`$configuration-phy-cell-id-input.fap-service-number-of-entries`" >
                        <block atomic='true'>
                            <set>
                                <parameter name="tmp.alias" value="`$configuration-phy-cell-id-input.fap-service[$idx].alias`"/>
                                <parameter name="tmp.cid" value="`$configuration-phy-cell-id-input.fap-service[$idx].cid`"/>
                                <parameter name="tmp.phy-cell-id-in-use" value="`$configuration-phy-cell-id-input.fap-service[$idx].phy-cell-id-in-use`"/>
                                <parameter name="tmp.pnf-name" value="`$configuration-phy-cell-id-input.fap-service[$idx].pnf-name`"/>
                            </set>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$prop.restapi.fap-service`"/>
                                <parameter name="outputPath" value="tmp.fap-service-url"/>
                                <parameter name="target" value="{alias}"/>
                                <parameter name="replacement" value="`$tmp.alias`"/>
                            </execute>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="Setting variables for GET operation"/>
                                <parameter name="field2" value="`$tmp.fap-service-url`"/>
                                <parameter name="field3" value="`$tmp.alias`"/>
                                <parameter name="field4" value="`$tmp.cid`"/>
                                <parameter name="field5" value="`$tmp.phy-cell-id-in-use`"/>
                                <parameter name="field6" value="`$tmp.pnf-name`"/>
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.fap-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="format" value="json"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpcigetfapservice"/>
                                <parameter name='contentType' value='application/json' />
                                <outcome value='failure'>
                                    <return status='failure'>
                                        <parameter name='ack-final' value='Y'/>
                                        <parameter name="error-code" value="500" />
                                        <parameter name="error-message" value="Error executing Get odutopo node details rest api" />
                                    </return>
                                </outcome>
                                <outcome value='success'>
                                    <block>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Initial FAP Service PCI PARMS"/>
                                            <parameter name="field2" value="`$oofpcigetfapservice.fap-service[0].alias`"/>
                                            <parameter name="field3" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.phy-cell-id-in-use`"/>
                                            <parameter name="field4" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.pnf-name`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$prop.restapi.x-005b9-lte`"/>
                                <parameter name="outputPath" value="tmp.oofpcipoc.patch.pci.url"/>
                                <parameter name="target" value="{alias}"/>
                                <parameter name="replacement" value="`$tmp.alias`"/>
                            </execute>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="URL and Target for PCI patch URL"/>
                                <parameter name='field2' value="`$prop.controller.url + $tmp.oofpcipoc.patch.pci.url`" />
                                <parameter name='field3' value="`$prop.oofpcipoc.patch.pci.target`" />
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-pci-patch.json'`" />
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.oofpcipoc.patch.pci.url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="httpMethod" value="PATCH"/>
                                <parameter name="responsePrefix" value="oofpci-patch-response"/>
                                <parameter name='contentType' value='application/yang.patch+json' />
                                <parameter name='format' value='json' />
                                <parameter name='accept' value='application/yang.patch-status+json' />
                                <outcome value='failure'>
                                    <block>
                                        <return status='failure'>
                                            <parameter name='ack-final' value='Y'/>
                                            <parameter name="error-code" value="500" />
                                            <parameter name="error-message" value="Error executing patch rest api" />
                                        </return>
                                    </block>
                                </outcome>
                                <outcome value='success'>
                                    <block>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="PUT PCI POC FAP SERVICE. Reconfigured "/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.fap-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="format" value="json"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpcigetfapservice"/>
                                <parameter name='contentType' value='application/json' />
                                <outcome value='failure'>
                                    <return status='failure'>
                                        <parameter name='ack-final' value='Y'/>
                                        <parameter name="error-code" value="500" />
                                        <parameter name="error-message" value="Error executing patch rest api" />
                                    </return>
                                </outcome>
                                <outcome value='success'>
                                    <block>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Post Reconfig FAP Service PCI PARMS"/>
                                            <parameter name="field2" value="`$oofpcigetfapservice.fap-service[0].alias`"/>
                                            <parameter name="field3" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.phy-cell-id-in-use`"/>
                                            <parameter name="field4" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.pnf-name`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <switch test='`$prop.configdb-deployed`'>
                                <outcome value='true'>
                                    <block atomic='true'>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$prop.restapi.configdb.patch-pci-for-cell`"/>
                                            <parameter name="outputPath" value="tmp.configdb.patch-pci-for-cell.url"/>
                                            <parameter name="target" value="{cellId}"/>
                                            <parameter name="replacement" value="`$tmp.cid`"/>
                                        </execute>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="URL for configDB PCI Update"/>
                                            <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.patch-pci-for-cell.url`" />
                                            <parameter name='field3' value="`$tmp.cid`" />
                                        </record>
                                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                            <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-patch-configdb-pci-for-cell.json'`" />
                                            <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.patch-pci-for-cell.url`"/>
                                            <parameter name="httpMethod" value="PATCH"/>
                                            <parameter name="responsePrefix" value="oofpci-configdb-response"/>
                                            <parameter name='contentType' value='application/json' />
                                            <parameter name='format' value='json' />
                                            <parameter name='accept' value='application/json' />
                                            <outcome value='failure'>
                                                <block>
                                                    <return status='failure'>
                                                        <parameter name='ack-final' value='Y'/>
                                                        <parameter name="error-code" value="500" />
                                                        <parameter name="error-message" value="Error adding neighbor to configdb. Aborting notification handler" />
                                                    </return>
                                                </block>
                                            </outcome>
                                            <outcome value='success'>
                                                <block>
                                                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                                        <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                                        <parameter name="level" value="info" />
                                                        <parameter name="field1" value="PCI Value updated in ConfigDB"/>
                                                    </record>
                                                </block>
                                            </outcome>
                                        </execute>
                                    </block>
                                </outcome>
                            </switch>
                        </block>
                    </for>
                </outcome>
                <outcome value='true'>
                    <for index='idx' start='0' end="`$configuration-phy-cell-id-input.fap-service-number-of-entries`" >
                        <block atomic='true'>
                            <set>
                                <parameter name="tmp.alias" value="`$configuration-phy-cell-id-input.fap-service[$idx].alias`"/>
                                <parameter name="tmp.cid" value="`$configuration-phy-cell-id-input.fap-service[$idx].cid`"/>
                                <parameter name="tmp.phy-cell-id-in-use" value="`$configuration-phy-cell-id-input.fap-service[$idx].phy-cell-id-in-use`"/>
                                <parameter name="tmp.pnf-name" value="`$configuration-phy-cell-id-input.fap-service[$idx].pnf-name`"/>
                            </set>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$prop.restapi.fap-service.ransim-mounted`"/>
                                <parameter name="outputPath" value="tmp.fap-service-url"/>
                                <parameter name="target" value="{alias}"/>
                                <parameter name="replacement" value="`$tmp.alias`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.fap-service-url`"/>
                                <parameter name="outputPath" value="tmp.fap-service-url"/>
                                <parameter name="target" value="{pnf-name}"/>
                                <parameter name="replacement" value="`$tmp.pnf-name`"/>
                            </execute>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="Setting variables for GET operation"/>
                                <parameter name="field2" value="`$tmp.fap-service-url`"/>
                                <parameter name="field3" value="`$tmp.alias`"/>
                                <parameter name="field4" value="`$tmp.cid`"/>
                                <parameter name="field5" value="`$tmp.phy-cell-id-in-use`"/>
                                <parameter name="field6" value="`$tmp.pnf-name`"/>
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.fap-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="format" value="json"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpcigetfapservice"/>
                                <parameter name='contentType' value='application/json' />
                                <outcome value='failure'>
                                    <return status='failure'>
                                        <parameter name='ack-final' value='Y'/>
                                        <parameter name="error-code" value="500" />
                                        <parameter name="error-message" value="Error executing Get odutopo node details rest api" />
                                    </return>
                                </outcome>
                                <outcome value='success'>
                                    <block>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Initial FAP Service PCI PARMS"/>
                                            <parameter name="field2" value="`$oofpcigetfapservice.fap-service[0].alias`"/>
                                            <parameter name="field3" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.phy-cell-id-in-use`"/>
                                            <parameter name="field4" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.pnf-name`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$prop.restapi.x-005b9-lte.ransim-mounted`"/>
                                <parameter name="outputPath" value="tmp.oofpcipoc.patch.pci.url"/>
                                <parameter name="target" value="{alias}"/>
                                <parameter name="replacement" value="`$tmp.alias`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.oofpcipoc.patch.pci.url`"/>
                                <parameter name="outputPath" value="tmp.oofpcipoc.patch.pci.url"/>
                                <parameter name="target" value="{pnf-name}"/>
                                <parameter name="replacement" value="`$tmp.pnf-name`"/>
                            </execute>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="URL and Target for PCI patch URL"/>
                                <parameter name='field2' value="`$prop.controller.url + $tmp.oofpcipoc.patch.pci.url`" />
                                <parameter name='field3' value="`$prop.oofpcipoc.patch.pci.target`" />
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-pci-patch.json'`" />
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.oofpcipoc.patch.pci.url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="httpMethod" value="PATCH"/>
                                <parameter name="responsePrefix" value="oofpci-patch-response"/>
                                <parameter name='contentType' value='application/yang.patch+json' />
                                <parameter name='format' value='json' />
                                <parameter name='accept' value='application/yang.patch-status+json' />
                                <outcome value='failure'>
                                    <block>
                                        <return status='failure'>
                                            <parameter name='ack-final' value='Y'/>
                                            <parameter name="error-code" value="500" />
                                            <parameter name="error-message" value="Error executing patch rest api" />
                                        </return>
                                    </block>
                                </outcome>
                                <outcome value='success'>
                                    <block>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="PUT PCI POC FAP SERVICE. Reconfigured "/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.fap-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="format" value="json"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpcigetfapservice"/>
                                <parameter name='contentType' value='application/json' />
                                <outcome value='failure'>
                                    <return status='failure'>
                                        <parameter name='ack-final' value='Y'/>
                                        <parameter name="error-code" value="500" />
                                        <parameter name="error-message" value="Error executing patch rest api" />
                                    </return>
                                </outcome>
                                <outcome value='success'>
                                    <block>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Post Reconfig FAP Service PCI PARMS"/>
                                            <parameter name="field2" value="`$oofpcigetfapservice.fap-service[0].alias`"/>
                                            <parameter name="field3" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.phy-cell-id-in-use`"/>
                                            <parameter name="field4" value="`$oofpcigetfapservice.fap-service[0].x-0005b9-lte.pnf-name`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <switch test='`$prop.configdb-deployed`'>
                                <outcome value='true'>
                                    <block atomic='true'>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$prop.restapi.configdb.patch-pci-for-cell`"/>
                                            <parameter name="outputPath" value="tmp.configdb.patch-pci-for-cell.url"/>
                                            <parameter name="target" value="{cellId}"/>
                                            <parameter name="replacement" value="`$tmp.cid`"/>
                                        </execute>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="URL for configDB PCI Update"/>
                                            <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.patch-pci-for-cell.url`" />
                                            <parameter name='field3' value="`$tmp.cid`" />
                                        </record>
                                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                            <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-patch-configdb-pci-for-cell.json'`" />
                                            <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.patch-pci-for-cell.url`"/>
                                            <parameter name="httpMethod" value="PATCH"/>
                                            <parameter name="responsePrefix" value="oofpci-configdb-response"/>
                                            <parameter name='contentType' value='application/json' />
                                            <parameter name='format' value='json' />
                                            <parameter name='accept' value='application/json' />
                                            <outcome value='failure'>
                                                <block>
                                                    <return status='failure'>
                                                        <parameter name='ack-final' value='Y'/>
                                                        <parameter name="error-code" value="500" />
                                                        <parameter name="error-message" value="Error updating configDB. Aborting PCI configuration" />
                                                    </return>
                                                </block>
                                            </outcome>
                                            <outcome value='success'>
                                                <block>
                                                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                                        <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                                        <parameter name="level" value="info" />
                                                        <parameter name="field1" value="PCI Value updated in ConfigDB"/>
                                                    </record>
                                                </block>
                                            </outcome>
                                        </execute>
                                    </block>
                                </outcome>
                            </switch>
                        </block>
                    </for>
                </outcome>
            </switch>
            <block atomic='true'>
                <execute plugin="org.onap.ccsdk.sli.plugins.template.TemplateNode" method="evaluateTemplate" >
                    <parameter name='templatePath' value='oofpcipoc-dmaap-publish-modifyconfig-resp-payload-template.vtl' />
                    <parameter name='output' value='resp-payload' />
                    <parameter name='prefix' value='sdnr' />
                    <outcome value='success'>
                        <block atomic='true'>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="__TIMESTAMP__"/>
                                <parameter name="field2" value="Redndred sdnr payload template as a string"/>
                                <parameter name='field3' value='`$sdnr.resp-payload`' />
                            </record>
                        </block>
                    </outcome>
                    <outcome value='failure'>
                        <block>
                            <return status='failure'>
                                <parameter name='ack-final' value='Y'/>
                                <parameter name="error-code" value="500" />
                                <parameter name="error-message" value="Error creating SDNR response payload string. Aborting PCI configuration" />
                            </return>
                        </block>
                    </outcome>
                </execute>
                <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
                    <parameter name="source" value="`$sdnr.resp-payload`"/>
                    <parameter name="outputPath" value="tmp.oofpcipoc-dmaap-config-resp.payload"/>
                    <parameter name="target" value="\n"/>
                    <parameter name="replacement" value=""/>
                    <outcome value='success'>
                        <block atomic='true'>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="__TIMESTAMP__"/>
                                <parameter name="field2" value="Redndred template with lines removed \r"/>
                                <parameter name='field3' value='`$tmp.oofpcipoc-dmaap-config-resp.payload`' />
                            </record>
                        </block>
                    </outcome>
                    <outcome value='failure'>
                        <block>
                            <return status='failure'>
                                <parameter name='ack-final' value='Y'/>
                                <parameter name="error-code" value="500" />
                                <parameter name="error-message" value="Error removing lines from SDNR response payload string. Aborting PCI configuration" />
                            </return>
                        </block>
                    </outcome>
                </execute>
                <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
                    <parameter name="source" value="`$tmp.oofpcipoc-dmaap-config-resp.payload`"/>
                    <parameter name="outputPath" value="tmp.oofpcipoc-dmaap-config-resp.payload"/>
                    <parameter name="target" value="\t"/>
                    <parameter name="replacement" value=""/>
                    <outcome value='success'>
                        <block atomic='true'>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="__TIMESTAMP__"/>
                                <parameter name="field2" value="Redndred template with tabs removed \r"/>
                                <parameter name='field3' value='`$tmp.oofpcipoc-dmaap-config-resp.payload`' />
                            </record>
                        </block>
                    </outcome>
                    <outcome value='failure'>
                        <block>
                            <return status='failure'>
                                <parameter name='ack-final' value='Y'/>
                                <parameter name="error-code" value="500" />
                                <parameter name="error-message" value="Error removing tabs from SDNR response payload string. Aborting PCI configuration" />
                            </return>
                        </block>
                    </outcome>
                </execute>
            </block>
            <block atomic='true'>
                <set>
                    <parameter name='tmp.oofpcipoc-dmaap-config-resp.rpc-name' value='`$prop.oofpcipoc-dmaap-config-resp.rpc-name.modifyconfig`'/>
                </set>
                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                    <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                    <parameter name="level" value="info" />
                    <parameter name="field1" value="__TIMESTAMP__"/>
                    <parameter name="field2" value="Before DMAAP Event - template file name, restapiURL"/>
                    <parameter name='field3' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-config-response.template`" />
                    <parameter name='field4' value="`$prop.dmaap-message-router.url + '/' + $prop.oofpcipoc-dmaap-configuration-response.topic`" />
                </record>
                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                    <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-config-response.template`" />
                    <parameter name='restapiUrl' value="`$prop.dmaap-message-router.url + '/' + $prop.oofpcipoc-dmaap-configuration-response.topic`" />
                    <parameter name='format' value='json' />
                    <parameter name='httpMethod' value='POST' />
                    <parameter name='contentType' value='application/json' />
                    <parameter name='responsePrefix' value='dmaap' />
                    <outcome value='failure'>
                        <block>
                            <return status='failure'>
                                <parameter name='ack-final' value='Y'/>
                                <parameter name="error-code" value="500" />
                                <parameter name="error-message" value="Error publishing DMAAP Config Response message. ConfigDB Updated; TO be rolled back...will handle next release" />
                            </return>
                        </block>
                    </outcome>
                    <outcome value='success'>
                        <block>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/configuration-phy-cell-id.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="DMAAP Config Response Message Successfully Published "/>
                            </record>
                        </block>
                    </outcome>
                </execute>
            </block>
            <return status='success'>
                <parameter name="ack-final-indicator" value="Y" />
                <parameter name="error-code" value="200" />
                <parameter name="error-message" value="SUCCESSFUL Execution" />
            </return>
        </block>
    </method>
</service-logic>