summaryrefslogtreecommitdiffstats
path: root/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_generic-neighbor-configuration.xml
blob: 9f02493fb2221b46daa1581f5a37766cd8833736 (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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
<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='generic-neighbor-configuration' mode='sync'>
        <block atomic='true'>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="RPC to Configure Neighbors INVOKED. Number of Neighbors to configure: "/>
                <parameter name="field2" value="`$generic-neighbor-configuration-input.lte-cell-number-of-entries`"/>
            </record>
            <for index='idx' start='0' end="`$generic-neighbor-configuration-input.lte-cell-number-of-entries`" >
                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                    <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                    <parameter name="level" value="info" />
                    <parameter name="field1" value="Input RPC Payload request. Neighbor #:  "/>
                    <parameter name="field2" value="`$idx`"/>
                    <parameter name="field3" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].plmnid`"/>
                    <parameter name="field4" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].cid`"/>
                    <parameter name="field5" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].phy-cell-id`"/>
                    <parameter name="field6" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].pnf-name`"/>
                    <parameter name="field7" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].blacklisted`"/>
                </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/generic-neighbor-config.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="Properties read .. generic neighbor config template"/>
                <parameter name="field2" value="`$prop.restapi.generic-neighbor-patch.template`"/>
                <parameter name="field3" value="`$prop.controller.user`"/>
                <parameter name="field4" value="`$prop.controller.pwd`"/>
                <parameter name="field5" value="`$prop.controller.url`"/>
            </record>
            <set>
                <parameter name="prop.oofpcipoc-dmaap-config-resp.timestamp" value="`$generic-neighbor-configuration-input.timeStamp`"/>
                <parameter name="prop.oofpcipoc-dmaap-config-resp.requestID" value="`$generic-neighbor-configuration-input.requestID`"/>
                <parameter name="prop.oofpcipoc-dmaap-config-resp.subrequestID" value="`$generic-neighbor-configuration-input.subRequestID`"/>
            </set>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="DMAAP Message Header stored in properties file "/>
                <parameter name="field2" value="`$prop.oofpcipoc-dmaap-config-resp.timestamp`"/>
                <parameter name="field3" value="`$prop.oofpcipoc-dmaap-config-resp.requestID`"/>
                <parameter name="field4" value="`$prop.oofpcipoc-dmaap-config-resp.subrequestID`"/>
            </record>
            <set>
                <parameter name="tmp.idGNBCUCP" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[0].pnf-name`"/>
            </set>
            <set>
                <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
            </set>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="URL to fetch the anchors"/>
                <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
            </record>
            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
                <parameter name="httpMethod" value="GET"/>
                <parameter name="restapiUser" value="cpsuser" />
                <parameter name="restapiPassword" value="cpsr0cks!"/>
                <parameter name="responsePrefix" value="get-anchors-cps-response"/>
                <parameter name='contentType' value='application/json' />
                <parameter name='format' value='json' />
                <parameter name='accept' value='application/json' />
                <parameter name="convertResponse" value="true"/>
                <outcome value='failure'>
                    <block>
                        <set>
                            <parameter name='error-code' value='500'/>
                            <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
                        </set>
                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                            <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                            <parameter name="level" value="info" />
                            <parameter name="field1" value="Failed to fetch anchors from CPS"/>
                        </record>
                    </block>
                </outcome>
                <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/generic-neighbor-config.log" />
                            <parameter name="level" value="info" />
                            <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
                            <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
                        </record>
                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
                            <parameter name='filename' value='/opt/opendaylight/current/data/log/generic-neighbor-config-context.log' />
                        </execute>
                    </block>
                </outcome>
            </execute>
            <set>
                <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
            </set>
            <set>
                <parameter name='tmp.RIC.length' value="0"/>
            </set>
            <for index='anc' start='0' end='`$tmp.anchors.length`'>
                <block atomic='true'>
                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
                        <parameter name='outputPath' value='tmp.schemaset.name' />
                        <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
                    </execute>
                    <switch test='`$tmp.schemaset.name`'>
                        <outcome value='ran-network'>
                            <block atomic='true'>
                                <set>
                                    <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/>
                                </set>
                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                    <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                    <parameter name="level" value="info" />
                                    <parameter name="field1" value="Applicable RIC length"/>
                                    <parameter name="field2" value="`$tmp.RIC.length`"/>
                                </record>
                            </block>
                        </outcome>
                    </switch>
                </block>
            </for>
            <for index='anc' start='0' end='`$tmp.anchors.length`'>
                <block atomic='true'>
                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
                        <parameter name='outputPath' value='tmp.schemaset.name' />
                        <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
                    </execute>
                    <switch test='`$tmp.schemaset.name`'>
                        <outcome value='ran-network'>
                            <block atomic='true'>
                                <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
                                    <parameter name='outputPath' value='tmp.anchor.name' />
                                    <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" />
                                </execute>
                                <block atomic='true'>
                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                        <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
                                        <parameter name="outputPath" value="tmp.cps.getNearRTRICByidGNBCUCPFunction.url"/>
                                        <parameter name="target" value="{schemaSet}"/>
                                        <parameter name="replacement" value="`$tmp.anchor.name`"/>
                                    </execute>
                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                        <parameter name="source" value="`$tmp.cps.getNearRTRICByidGNBCUCPFunction.url`"/>
                                        <parameter name="outputPath" value="tmp.cps.getNearRTRICByidGNBCUCPFunction.url"/>
                                        <parameter name="target" value="{templateId}"/>
                                        <parameter name="replacement" value="`$prop.tbdmt.template.get-nearrtric-by-idgnbcucpfunction`"/>
                                    </execute>
                                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                        <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                        <parameter name="level" value="info" />
                                        <parameter name="field1" value="URL for CPS TDBMT to Get NearRTRIC for idGNBCUCPFunction"/>
                                        <parameter name='field2' value="`$tmp.cps.getNearRTRICByidGNBCUCPFunction.url`" />
                                    </record>
                                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                        <parameter name="restapiUrl" value="`$tmp.cps.getNearRTRICByidGNBCUCPFunction.url`"/>
                                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-nearrtric-by-idgnbcucpfunction.json'`" />
                                        <parameter name="httpMethod" value="POST"/>
                                        <parameter name="responsePrefix" value="getNFNSSIRIC-cps-response"/>
                                        <parameter name='contentType' value='application/json' />
                                        <parameter name='format' value='json' />
                                        <parameter name='accept' value='application/json' />
                                        <parameter name="convertResponse" value="true"/>
                                        <outcome value='failure'>
                                            <block>
                                                <set>
                                                    <parameter name='error-code' value='500'/>
                                                    <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>
                                                </set>
                                            </block>
                                        </outcome>
                                        <outcome value='success'>
                                            <block atomic='true'>
                                                <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
                                                    <parameter name='outputPath' value='tmp.nearRTRICId' />
                                                    <parameter name='source' value="`'getNFNSSIRIC-cps-response.[0]'`" />
                                                </execute>
                                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                                    <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                                    <parameter name="level" value="info" />
                                                    <parameter name="field1" value="Successfully Obtained NearRTRIC ID info from CPS"/>
                                                    <parameter name="field2" value="`$tmp.nearRTRICId`"/>
                                                </record>
                                                <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
                                                    <parameter name='filename' value='/opt/opendaylight/current/data/log/generic-neighbor-config-context.log' />
                                                </execute>
                                            </block>
                                        </outcome>
                                    </execute>
                                </block>
                            </block>
                        </outcome>
                    </switch>
                </block>
            </for>
            <switch test='`$prop.ransim-mounted`'>
                <outcome value='false'>
                    <for index='idx' start='0' end="`$generic-neighbor-configuration-input.lte-cell-number-of-entries`" >
                        <block atomic='true'>
                            <set>
                                <parameter name="tmp.alias" value="`$generic-neighbor-configuration-input.alias`"/>
                                <parameter name="tmp.plmnid" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].plmnid`"/>
                                <parameter name="tmp.cid" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].cid`"/>
                                <parameter name="tmp.phy-cell-id" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].phy-cell-id`"/>
                                <parameter name="tmp.pnf-name" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].pnf-name`"/>
                                <parameter name="tmp.blacklisted" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].blacklisted`"/>
                            </set>
                            <switch test='`$tmp.blacklisted`'>
                                <outcome value='true'>
                                    <block atomic='true'>
                                        <set>
                                            <parameter name='tmp.isHOAllowed' value='false' />
                                        </set>
                                    </block>
                                </outcome>
                                <outcome value='false'>
                                    <block atomic='true'>
                                        <set>
                                            <parameter name='tmp.isHOAllowed' value='true' />
                                        </set>
                                    </block>
                                </outcome>
                            </switch>
                            <set>
                                <parameter name="tmp.idNRCellCU" value="`$generic-neighbor-configuration-input.alias`"/>
                                <parameter name="tmp.idNRCellRelation" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].cid`"/>
                                <parameter name="tmp.idGNBCUCPFunction" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].pnf-name`"/>
                                <parameter name="tmp.nRTCI" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].phy-cell-id`"/>
                            </set>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="idGNBCUCPFunction"/>
                                <parameter name="field2" value="`$tmp.idGNBCUCPFunction`"/>
                                <parameter name="field3" value="idNRCellCU"/>
                                <parameter name="field4" value="`$tmp.idNRCellCU`"/>
                                <parameter name="field5" value="idNRCellRelation"/>
                                <parameter name="field6" value="`$tmp.idNRCellRelation`"/>
                                <parameter name="field7" value="isHOAllowed"/>
                                <parameter name="field8" value="`$tmp.isHOAllowed`"/>
                                <parameter name="field9" value="nRTCI"/>
                                <parameter name="field10" value="`$tmp.nRTCI`"/>
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$prop.restapi.patchNRCellRelation`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idNearRTRIC}"/>
                                <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idGNBCUCPFunction}"/>
                                <parameter name="replacement" value="`$tmp.idGNBCUCPFunction`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idNRCellCU}"/>
                                <parameter name="replacement" value="`$tmp.idNRCellCU`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idNRCellRelation}"/>
                                <parameter name="replacement" value="`$tmp.idNRCellRelation`"/>
                            </execute>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="Config Neighbor List URL"/>
                                <parameter name="field2" value="`$tmp.config-neighbor-service-url`"/>
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.config-neighbor-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpci-neighbor-response"/>
                                <parameter name='contentType' value='application/json' />
                                <parameter name='format' value='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 getting details about new neighbor " />
                                    </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/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Details about Neighbor Pre-configuration"/>
                                            <parameter name="field2" value="`$oofpci-neighbor-response.attributes.nRTCI`"/>
                                            <parameter name="field3" value="`$oofpci-neighbor-response.attributes.isHOAllowed`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-generic-neighbor-patch.json'`" />
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.config-neighbor-service-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-neighbor-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 adding a new neighbor" />
                                        </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/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="PATCH Neighbor Executed Successfully "/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.config-neighbor-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpci-neighbor-response"/>
                                <parameter name='contentType' value='application/json' />
                                <parameter name='format' value='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 getting details about new neighbor " />
                                    </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/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Details about Neighbor Post-configuration"/>
                                            <parameter name="field2" value="`$oofpci-neighbor-response.attributes.nRTCI`"/>
                                            <parameter name="field3" value="`$oofpci-neighbor-response.attributes.isHOAllowed`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <switch test='`$prop.configdb-deployed`'>
                                <outcome value='false'>
                                    <block atomic='true'>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="CPS is Deployed, ConfigDB Skipped"/>
                                        </record>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
                                            <parameter name="outputPath" value="tmp.cps.putho.nrcellrelation.url"/>
                                            <parameter name="target" value="{schemaSet}"/>
                                            <parameter name="replacement" value="`$tmp.schemaset.name`"/>
                                        </execute>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$tmp.cps.putho.nrcellrelation.url`"/>
                                            <parameter name="outputPath" value="tmp.cps.putho.nrcellrelation.url"/>
                                            <parameter name="target" value="{templateId}"/>
                                            <parameter name="replacement" value="`$prop.tbdmt.template.put-ho-nrcellrelation`"/>
                                        </execute>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="URL for CPS TDBMT to put ho NRCellRelation"/>
                                            <parameter name='field2' value="`$tmp.cps.putho.nrcellrelation.url`" />
                                        </record>
                                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                            <parameter name="restapiUrl" value="`$tmp.cps.putho.nrcellrelation.url`"/>
                                            <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-put-ho.json'`" />
                                            <parameter name="httpMethod" value="POST"/>
                                            <parameter name="responsePrefix" value="cps-put-ho-nrcellrelation-response"/>
                                            <parameter name='contentType' value='application/json' />
                                            <parameter name='format' value='json' />
                                            <parameter name='accept' value='application/json' />
                                            <parameter name="convertResponse" value="true"/>
                                            <outcome value='failure'>
                                                <block atomic='true'>
                                                    <set>
                                                        <parameter name='error-code' value='500'/>
                                                        <parameter name='error-message' value='Error updating nearRTRIC info in CPS. Aborting RPC executiopn'/>
                                                    </set>
                                                    <return status='failure'>
                                                        <parameter name='ack-final' value='Y'/>
                                                        <parameter name='error-code' value='500'/>
                                                        <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
                                                    </return>
                                                </block>
                                            </outcome>
                                            <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/generic-neighbor-config.log" />
                                                        <parameter name="level" value="info" />
                                                        <parameter name="field1" value="Successfully Updated NRCellRelation info in cps"/>
                                                    </record>
                                                </block>
                                            </outcome>
                                        </execute>
                                    </block>
                                </outcome>
                                <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-ho-for-nbr`"/>
                                            <parameter name="outputPath" value="tmp.configdb.patch-ho-for-nbr.url"/>
                                            <parameter name="target" value="{cellId}"/>
                                            <parameter name="replacement" value="`$tmp.alias`"/>
                                        </execute>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$tmp.configdb.patch-ho-for-nbr.url`"/>
                                            <parameter name="outputPath" value="tmp.configdb.patch-ho-for-nbr.url"/>
                                            <parameter name="target" value="{targetCellId}"/>
                                            <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/generic-neighbor-config.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-ho-for-nbr.url`" />
                                            <parameter name='field3' value="`$tmp.alias`" />
                                            <parameter name='field4' 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-ho-for-nbr.json'`" />
                                            <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.patch-ho-for-nbr.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 Nbr HO 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/generic-neighbor-config.log" />
                                                        <parameter name="level" value="info" />
                                                        <parameter name="field1" value="HO Value for nbr updated in ConfigDB"/>
                                                    </record>
                                                </block>
                                            </outcome>
                                        </execute>
                                    </block>
                                </outcome>
                            </switch>
                        </block>
                    </for>
                </outcome>
                <outcome value='true'>
                    <for index='idx' start='0' end="`$generic-neighbor-configuration-input.lte-cell-number-of-entries`" >
                        <block atomic='true'>
                            <set>
                                <parameter name="tmp.alias" value="`$generic-neighbor-configuration-input.alias`"/>
                                <parameter name="tmp.plmnid" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].plmnid`"/>
                                <parameter name="tmp.cid" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].cid`"/>
                                <parameter name="tmp.phy-cell-id" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].phy-cell-id`"/>
                                <parameter name="tmp.pnf-name" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].pnf-name`"/>
                                <parameter name="tmp.blacklisted" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].blacklisted`"/>
                            </set>
                            <switch test='`$tmp.blacklisted`'>
                                <outcome value='true'>
                                    <block atomic='true'>
                                        <set>
                                            <parameter name='tmp.isHOAllowed' value='false' />
                                        </set>
                                    </block>
                                </outcome>
                                <outcome value='false'>
                                    <block atomic='true'>
                                        <set>
                                            <parameter name='tmp.isHOAllowed' value='true' />
                                        </set>
                                    </block>
                                </outcome>
                            </switch>
                            <set>
                                <parameter name="tmp.idNRCellCU" value="`$generic-neighbor-configuration-input.alias`"/>
                                <parameter name="tmp.idNRCellRelation" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].cid`"/>
                                <parameter name="tmp.idGNBCUCPFunction" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].pnf-name`"/>
                                <parameter name="tmp.nRTCI" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].phy-cell-id`"/>
                            </set>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="idGNBCUCPFunction"/>
                                <parameter name="field2" value="`$tmp.idGNBCUCPFunction`"/>
                                <parameter name="field3" value="idNRCellCU"/>
                                <parameter name="field4" value="`$tmp.idNRCellCU`"/>
                                <parameter name="field5" value="idNRCellRelation"/>
                                <parameter name="field6" value="`$tmp.idNRCellRelation`"/>
                                <parameter name="field7" value="isHOAllowed"/>
                                <parameter name="field8" value="`$tmp.isHOAllowed`"/>
                                <parameter name="field9" value="nRTCI"/>
                                <parameter name="field10" value="`$tmp.nRTCI`"/>
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$prop.restapi.patchNRCellRelation.ransim-mounted`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idNearRTRIC}"/>
                                <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{mountName}"/>
                                <parameter name="replacement" value="`$tmp.idGNBCUCPFunction`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idGNBCUCPFunction}"/>
                                <parameter name="replacement" value="`$tmp.idGNBCUCPFunction`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idNRCellCU}"/>
                                <parameter name="replacement" value="`$tmp.idNRCellCU`"/>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                <parameter name="source" value="`$tmp.config-neighbor-service-url`"/>
                                <parameter name="outputPath" value="tmp.config-neighbor-service-url"/>
                                <parameter name="target" value="{idNRCellRelation}"/>
                                <parameter name="replacement" value="`$tmp.idNRCellRelation`"/>
                            </execute>
                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="Config Neighbor List URL"/>
                                <parameter name="field2" value="`$tmp.config-neighbor-service-url`"/>
                            </record>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.config-neighbor-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpci-neighbor-response"/>
                                <parameter name='contentType' value='application/json' />
                                <parameter name='format' value='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 getting details about new neighbor " />
                                    </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/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Details about Neighbor Pre-configuration"/>
                                            <parameter name="field2" value="`$oofpci-neighbor-response.attributes.nRTCI`"/>
                                            <parameter name="field3" value="`$oofpci-neighbor-response.attributes.isHOAllowed`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-generic-neighbor-patch.json'`" />
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.config-neighbor-service-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-neighbor-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 adding a new neighbor" />
                                        </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/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="PATCH Neighbor Executed Successfully "/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.config-neighbor-service-url`"/>
                                <parameter name="restapiUser" value="`$prop.controller.user`" />
                                <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
                                <parameter name="httpMethod" value="GET"/>
                                <parameter name="responsePrefix" value="oofpci-neighbor-response"/>
                                <parameter name='contentType' value='application/json' />
                                <parameter name='format' value='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 getting details about new neighbor " />
                                    </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/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="Details about Neighbor Post-configuration"/>
                                            <parameter name="field2" value="`$oofpci-neighbor-response.attributes.nRTCI`"/>
                                            <parameter name="field3" value="`$oofpci-neighbor-response.attributes.isHOAllowed`"/>
                                        </record>
                                    </block>
                                </outcome>
                            </execute>
                            <switch test='`$prop.configdb-deployed`'>
                                <outcome value='false'>
                                    <block atomic='true'>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="CPS is Deployed, ConfigDB Skipped"/>
                                        </record>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
                                            <parameter name="outputPath" value="tmp.cps.putho.nrcellrelation.url"/>
                                            <parameter name="target" value="{schemaSet}"/>
                                            <parameter name="replacement" value="`$tmp.schemaset.name`"/>
                                        </execute>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$tmp.cps.putho.nrcellrelation.url`"/>
                                            <parameter name="outputPath" value="tmp.cps.putho.nrcellrelation.url"/>
                                            <parameter name="target" value="{templateId}"/>
                                            <parameter name="replacement" value="`$prop.tbdmt.template.put-ho-nrcellrelation`"/>
                                        </execute>
                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                                            <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
                                            <parameter name="level" value="info" />
                                            <parameter name="field1" value="URL for CPS TDBMT to put ho NRCellRelation"/>
                                            <parameter name='field2' value="`$tmp.cps.putho.nrcellrelation.url`" />
                                        </record>
                                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                                            <parameter name="restapiUrl" value="`$tmp.cps.putho.nrcellrelation.url`"/>
                                            <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-put-ho.json'`" />
                                            <parameter name="httpMethod" value="POST"/>
                                            <parameter name="responsePrefix" value="cps-put-ho-nrcellrelation-response"/>
                                            <parameter name='contentType' value='application/json' />
                                            <parameter name='format' value='json' />
                                            <parameter name='accept' value='application/json' />
                                            <parameter name="convertResponse" value="true"/>
                                            <outcome value='failure'>
                                                <block atomic='true'>
                                                    <set>
                                                        <parameter name='error-code' value='500'/>
                                                        <parameter name='error-message' value='Error updating nearRTRIC info in CPS. Aborting RPC executiopn'/>
                                                    </set>
                                                    <return status='failure'>
                                                        <parameter name='ack-final' value='Y'/>
                                                        <parameter name='error-code' value='500'/>
                                                        <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
                                                    </return>
                                                </block>
                                            </outcome>
                                            <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/generic-neighbor-config.log" />
                                                        <parameter name="level" value="info" />
                                                        <parameter name="field1" value="Successfully Updated NRCellRelation info in cps"/>
                                                    </record>
                                                </block>
                                            </outcome>
                                        </execute>
                                    </block>
                                </outcome>
                                <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-ho-for-nbr`"/>
                                            <parameter name="outputPath" value="tmp.configdb.patch-ho-for-nbr.url"/>
                                            <parameter name="target" value="{cellId}"/>
                                            <parameter name="replacement" value="`$tmp.alias`"/>
                                        </execute>
                                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
                                            <parameter name="source" value="`$tmp.configdb.patch-ho-for-nbr.url`"/>
                                            <parameter name="outputPath" value="tmp.configdb.patch-ho-for-nbr.url"/>
                                            <parameter name="target" value="{targetCellId}"/>
                                            <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/generic-neighbor-config.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-ho-for-nbr.url`" />
                                            <parameter name='field3' value="`$tmp.alias`" />
                                            <parameter name='field4' 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-ho-for-nbr.json'`" />
                                            <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.patch-ho-for-nbr.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 Nbr HO 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/generic-neighbor-config.log" />
                                                        <parameter name="level" value="info" />
                                                        <parameter name="field1" value="HO Value for nbr 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-modifyconfiganr-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/generic-neighbor-config.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 Generic neighbor  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/generic-neighbor-config.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 Generic neighbor  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/generic-neighbor-config.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 Generic neighbor configuration" />
                            </return>
                        </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 atomic='true'>
                <set>
                    <parameter name='tmp.oofpcipoc-dmaap-config-resp.rpc-name' value='`$prop.oofpcipoc-dmaap-config-resp.rpc-name.modifyconfiganr`'/>
                </set>
                <block atomic='true'>
                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
                        <parameter name="source" value="`$prop.oofpcipoc-dmaap-config-resp.timestamp`"/>
                        <parameter name="outputPath" value="prop.oofpcipoc-dmaap-config-resp.timestamp"/>
                        <parameter name="target" value='"'/>
                        <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/generic-neighbor-config.log" />
                                    <parameter name="level" value="info" />
                                    <parameter name="field1" value="Quotation removed from timestamp for DMAAP response header \r"/>
                                    <parameter name="field2" value="`$prop.oofpcipoc-dmaap-config-resp.timestamp`"/>
                                </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 quotation from timestamp for DMAAP response header. Aborting Generic neighbor  configuration" />
                                </return>
                            </block>
                        </outcome>
                    </execute>
                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
                        <parameter name="source" value="`$prop.oofpcipoc-dmaap-config-resp.requestID`"/>
                        <parameter name="outputPath" value="prop.oofpcipoc-dmaap-config-resp.requestID"/>
                        <parameter name="target" value='"'/>
                        <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/generic-neighbor-config.log" />
                                    <parameter name="level" value="info" />
                                    <parameter name="field1" value="Quotation removed from requestID for DMAAP response header \r"/>
                                    <parameter name="field2" value="`$prop.oofpcipoc-dmaap-config-resp.requestID`"/>
                                </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 quotation from requestID for DMAAP response header. Aborting Generic neighbor  configuration" />
                                </return>
                            </block>
                        </outcome>
                    </execute>
                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >
                        <parameter name="source" value="`$prop.oofpcipoc-dmaap-config-resp.subrequestID`"/>
                        <parameter name="outputPath" value="prop.oofpcipoc-dmaap-config-resp.subrequestID"/>
                        <parameter name="target" value='"'/>
                        <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/generic-neighbor-config.log" />
                                    <parameter name="level" value="info" />
                                    <parameter name="field1" value="Quotation removed from subRequestID for DMAAP response header \r"/>
                                    <parameter name="field2" value="`$prop.oofpcipoc-dmaap-config-resp.subrequestID`"/>
                                </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 quotation from timestamp for DMAAP response header. Aborting Generic neighbor  configuration" />
                                </return>
                            </block>
                        </outcome>
                    </execute>
                </block>
                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                    <parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.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`" />
                    <parameter name="field5" value="Before DMAAP Event - Timestamp, RequestID, subRequestID"/>
                    <parameter name="field6" value="`$prop.oofpcipoc-dmaap-config-resp.timestamp`"/>
                    <parameter name="field7" value="`$prop.oofpcipoc-dmaap-config-resp.requestID`"/>
                    <parameter name="field8" value="`$prop.oofpcipoc-dmaap-config-resp.subrequestID`"/>
                </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/generic-neighbor-config.log" />
                                <parameter name="level" value="info" />
                                <parameter name="field1" value="DMAAP Config Response Message Successfully Published "/>
                            </record>
                        </block>
                    </outcome>
                </execute>
            </block>
        </block>
    </method>
</service-logic>