summaryrefslogtreecommitdiffstats
path: root/platform-logic/oofpcipoc-api/src/main/xml
diff options
context:
space:
mode:
authorSandeep Shah <sandeep.shah2@techmahindra.com>2019-06-13 08:46:43 -0500
committerSandeep Shah <sandeep.shah2@techmahindra.com>2019-06-13 08:46:43 -0500
commit5d012b346c6a6b9b87c81da720094afad5282127 (patch)
treea3945212bc03a21e427fb1e5032c79ef0cd8a755 /platform-logic/oofpcipoc-api/src/main/xml
parent428403f72cd97df8bdded8dadb624cd01dde459a (diff)
SDNR OOCPCI DG Updates for RANSIM Netconf Mount
RAN Simulator leverages Netconf servers to simulate DU's in the RAN and DG's that reconfigure YANG tree leaf nodes for closed loop automation need to also support RESTCONF API calls for YANG tree leaf nodes behind the mount points. Modified existing DG's and DG properties file Issue-ID: CCSDK-1398 Signed-off-by: SandeepLinux <sandeeplinux1068@gmail.com> Change-Id: I2875860115d6ee07edaa39bfcb2e28c01ac9040f
Diffstat (limited to 'platform-logic/oofpcipoc-api/src/main/xml')
-rw-r--r--platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml393
-rw-r--r--platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_configuration-phy-cell-id.xml406
-rw-r--r--platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_delete-neighbor.xml292
-rw-r--r--platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_generic-neighbor-configuration.xml450
4 files changed, 1037 insertions, 504 deletions
diff --git a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml
index 9893030c..fef46865 100644
--- a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml
+++ b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml
@@ -3,6 +3,12 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='oofpcipoc-api' version='0.4.2-SNAPSHOT'>
<method rpc='add-neighbor' mode='sync'>
<block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RPC to add neighbors. Number of neighbors to add: "/>
+ <parameter name="field2" value="`$add-neighbor-input.lte-cell-number-of-entries`"/>
+ </record>
<for index='idx' start='0' end="`$add-neighbor-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/add-neighbor.log" />
@@ -18,12 +24,6 @@
<parameter name="field9" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`"/>
</record>
</for>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RPC to add neighbors. Number of neighbors to add: "/>
- <parameter name="field2" value="`$add-neighbor-input.lte-cell-number-of-entries`"/>
- </record>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/sdnr-oofpcipoc-api-dg.properties' />
<parameter name='contextPrefix' value='prop' />
@@ -38,129 +38,264 @@
<parameter name="field5" value="`$prop.controller.url`"/>
<parameter name="field6" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
</record>
- <for index='idx' start='0' end="`$add-neighbor-input.lte-cell-number-of-entries`" >
- <block atomic='true'>
- <set>
- <parameter name="tmp.plmnid" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
- <parameter name="tmp.cid" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
- <parameter name="tmp.phy-cell-id" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`"/>
- <parameter name="tmp.pnf-name" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`"/>
- <parameter name="tmp.blacklisted" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`"/>
- <parameter name="tmp.alias" value="`$add-neighbor-input.alias`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Temporary variable for Neighbor Cell #: "/>
- <parameter name="field2" value="`$idx`"/>
- <parameter name="field3" value="`$tmp.plmnid`"/>
- <parameter name="field4" value="`$tmp.cid`"/>
- <parameter name="field5" value="`$tmp.phy-cell-id`"/>
- <parameter name="field6" value="`$tmp.pnf-name`"/>
- <parameter name="field7" value="`$tmp.blacklisted`"/>
- <parameter name="field8" value="`$tmp.alias`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
- <parameter name="outputPath" value="tmp.add-neighbor-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/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add Neighbor List URL"/>
- <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
- <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
- <parameter name="target" value="{plmnid}"/>
- <parameter name="replacement" value="`$tmp.plmnid`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add Neighbor List URL"/>
- <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
- <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
- <parameter name="target" value="{cid}"/>
- <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/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for Neighbor Add PUT operation"/>
- <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
- <parameter name="field3" value="`$tmp.plmnid`"/>
- <parameter name="field4" value="`$tmp.cid`"/>
- <parameter name="field5" value="`$tmp.phy-cell-id`"/>
- <parameter name="field6" value="`$tmp.pnf-name`"/>
- <parameter name="field7" value="`$tmp.blacklisted`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-addNeighbor.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.add-neighbor-service-url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="oofpci-add-neighbor-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='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/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="PUT New 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.add-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/add-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Details about newly added Neighbor"/>
- <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
- <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
- <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
- <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
- <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </for>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <for index='idx' start='0' end="`$add-neighbor-input.lte-cell-number-of-entries`" >
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.plmnid" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
+ <parameter name="tmp.cid" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
+ <parameter name="tmp.phy-cell-id" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`"/>
+ <parameter name="tmp.pnf-name" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`"/>
+ <parameter name="tmp.blacklisted" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`"/>
+ <parameter name="tmp.alias" value="`$add-neighbor-input.alias`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Temporary variable for Neighbor Cell #: "/>
+ <parameter name="field2" value="`$idx`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.phy-cell-id`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ <parameter name="field7" value="`$tmp.blacklisted`"/>
+ <parameter name="field8" value="`$tmp.alias`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
+ <parameter name="target" value="{plmnid}"/>
+ <parameter name="replacement" value="`$tmp.plmnid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
+ <parameter name="target" value="{cid}"/>
+ <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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for Neighbor Add PUT operation"/>
+ <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.phy-cell-id`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ <parameter name="field7" value="`$tmp.blacklisted`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-addNeighbor.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.add-neighbor-service-url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="oofpci-add-neighbor-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PUT New 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.add-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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Details about newly added Neighbor"/>
+ <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
+ <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
+ <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
+ <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
+ <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ <outcome value='true'>
+ <for index='idx' start='0' end="`$add-neighbor-input.lte-cell-number-of-entries`" >
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.plmnid" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
+ <parameter name="tmp.cid" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
+ <parameter name="tmp.phy-cell-id" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`"/>
+ <parameter name="tmp.pnf-name" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`"/>
+ <parameter name="tmp.blacklisted" value="`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`"/>
+ <parameter name="tmp.alias" value="`$add-neighbor-input.alias`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Temporary variable for Neighbor Cell #: "/>
+ <parameter name="field2" value="`$idx`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.phy-cell-id`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ <parameter name="field7" value="`$tmp.blacklisted`"/>
+ <parameter name="field8" value="`$tmp.alias`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
+ <parameter name="target" value="{pnf-name}"/>
+ <parameter name="replacement" value="`$tmp.pnf-name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
+ <parameter name="target" value="{plmnid}"/>
+ <parameter name="replacement" value="`$tmp.plmnid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
+ <parameter name="target" value="{cid}"/>
+ <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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for Neighbor Add PUT operation"/>
+ <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.phy-cell-id`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ <parameter name="field7" value="`$tmp.blacklisted`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/oofpcipoc-addNeighbor.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.add-neighbor-service-url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="oofpci-add-neighbor-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PUT New 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.add-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/add-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Details about newly added Neighbor"/>
+ <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
+ <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
+ <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
+ <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
+ <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ </switch>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
diff --git a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_configuration-phy-cell-id.xml b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_configuration-phy-cell-id.xml
index 501fce78..d4bd6cec 100644
--- a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_configuration-phy-cell-id.xml
+++ b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_configuration-phy-cell-id.xml
@@ -1,6 +1,6 @@
<service-logic
xmlns='http://www.onap.org/sdnc/svclogic'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='oofpcipoc-api' version='0.4.2-SNAPSHOT'>
+ 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'>
<for index='idx' start='0' end="`$configuration-phy-cell-id-input.fap-service-number-of-entries`" >
@@ -15,12 +15,6 @@
<parameter name="field6" value="`$configuration-phy-cell-id-input.fap-service[$idx].pnf-name`"/>
</record>
</for>
- <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>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/sdnr-oofpcipoc-api-dg.properties' />
<parameter name='contextPrefix' value='prop' />
@@ -33,131 +27,281 @@
<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>
- <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>
- </block>
- </for>
+ <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>
+ <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>
+ </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>
+ </block>
+ </for>
+ </outcome>
+ </switch>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
diff --git a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_delete-neighbor.xml b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_delete-neighbor.xml
index c6674c7e..93eeeb9a 100644
--- a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_delete-neighbor.xml
+++ b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_delete-neighbor.xml
@@ -3,6 +3,12 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='oofpcipoc-api' version='0.4.2-SNAPSHOT'>
<method rpc='delete-neighbor' mode='sync'>
<block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RPC to delete neighbors. Number of neighbors to delete: "/>
+ <parameter name="field2" value="`$delete-neighbor-input.lte-cell-number-of-entries`"/>
+ </record>
<for index='idx' start='0' end="`$delete-neighbor-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/delete-neighbor.log" />
@@ -13,118 +19,212 @@
<parameter name="field4" value="`$idx`"/>
<parameter name="field5" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
<parameter name="field6" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
+ <parameter name="field7" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`"/>
</record>
</for>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RPC to delete neighbors. Number of neighbors to delete: "/>
- <parameter name="field2" value="`$delete-neighbor-input.lte-cell-number-of-entries`"/>
- </record>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/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/add-neighbor.log" />
+ <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Properties read .. neighbor-add template"/>
- <parameter name="field2" value="`$prop.neighbor-add.templatefile`"/>
+ <parameter name="field1" value="Properties read .. neighbor-delete template"/>
+ <parameter name="field2" value="`$prop.restapi.neighbor-delete.templatefile`"/>
<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="`$prop.restapi.lte-ran-neighbor-in-use`"/>
+ <parameter name="field7" value="`$prop.restapi.lte-ran-neighbor-in-use.ransim-mounted`"/>
</record>
- <for index='idx' start='0' end="`$delete-neighbor-input.lte-cell-number-of-entries`" >
- <block atomic='true'>
- <set>
- <parameter name="tmp.plmnid" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
- <parameter name="tmp.cid" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
- <parameter name="tmp.alias" value="`$delete-neighbor-input.alias`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Temporary variable for Neighbor Cell #: "/>
- <parameter name="field2" value="`$idx`"/>
- <parameter name="field3" value="`$tmp.plmnid`"/>
- <parameter name="field4" value="`$tmp.cid`"/>
- <parameter name="field5" value="`$tmp.alias`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
- <parameter name="outputPath" value="tmp.add-neighbor-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/delete-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add Neighbor List URL"/>
- <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
- <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
- <parameter name="target" value="{plmnid}"/>
- <parameter name="replacement" value="`$tmp.plmnid`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add Neighbor List URL"/>
- <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.add-neighbor-service-url`"/>
- <parameter name="outputPath" value="tmp.add-neighbor-service-url"/>
- <parameter name="target" value="{cid}"/>
- <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/delete-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for Neighbor Add PUT operation"/>
- <parameter name="field2" value="`$tmp.add-neighbor-service-url`"/>
- <parameter name="field3" value="`$tmp.plmnid`"/>
- <parameter name="field4" value="`$tmp.cid`"/>
- <parameter name="field5" value="`$tmp.phy-cell-id`"/>
- <parameter name="field6" value="`$tmp.pnf-name`"/>
- <parameter name="field7" value="`$tmp.blacklisted`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.add-neighbor-service-url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="oofpci-delete-neighbor-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='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/delete-neighbor.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="DELETE Neighbor Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </for>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <for index='idx' start='0' end="`$delete-neighbor-input.lte-cell-number-of-entries`" >
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.plmnid" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
+ <parameter name="tmp.cid" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
+ <parameter name="tmp.alias" value="`$delete-neighbor-input.alias`"/>
+ <parameter name="tmp.pnf-name" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Temporary variable for Neighbor Cell #: "/>
+ <parameter name="field2" value="`$idx`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.alias`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-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/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.delete-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-service-url"/>
+ <parameter name="target" value="{plmnid}"/>
+ <parameter name="replacement" value="`$tmp.plmnid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Deletedd Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.delete-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-service-url"/>
+ <parameter name="target" value="{cid}"/>
+ <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/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for Neighbor Delete operation"/>
+ <parameter name="field2" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.pnf-name`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.delete-neighbor-service-url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="oofpci-delete-neighbor-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='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 deleting 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/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DELETE Neighbor Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ <outcome value='true'>
+ <for index='idx' start='0' end="`$delete-neighbor-input.lte-cell-number-of-entries`" >
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.plmnid" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`"/>
+ <parameter name="tmp.cid" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`"/>
+ <parameter name="tmp.alias" value="`$delete-neighbor-input.alias`"/>
+ <parameter name="tmp.pnf-name" value="`$delete-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Temporary variable for Neighbor Cell #: "/>
+ <parameter name="field2" value="`$idx`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.alias`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-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/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.delete-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-service-url"/>
+ <parameter name="target" value="{plmnid}"/>
+ <parameter name="replacement" value="`$tmp.plmnid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete Neighbor List URL"/>
+ <parameter name="field2" value="`$tmp.delete-neighbor-service-url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-service-url"/>
+ <parameter name="target" value="{pnf-name}"/>
+ <parameter name="replacement" value="`$tmp.pnf-name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="outputPath" value="tmp.delete-neighbor-service-url"/>
+ <parameter name="target" value="{cid}"/>
+ <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/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for Neighbor Delete operation"/>
+ <parameter name="field2" value="`$tmp.delete-neighbor-service-url`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.pnf-name`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.delete-neighbor-service-url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="oofpci-delete-neighbor-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='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 deleting 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/delete-neighbor.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DELETE Neighbor Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ </switch>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
- <parameter name="error-message" value="SUCCESSFUL add-neighbor Execution" />
+ <parameter name="error-message" value="SUCCESSFUL delete-neighbor Execution" />
</return>
</block>
</method>
diff --git a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_generic-neighbor-configuration.xml b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_generic-neighbor-configuration.xml
index d02bb7b6..f4c1250e 100644
--- a/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_generic-neighbor-configuration.xml
+++ b/platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_generic-neighbor-configuration.xml
@@ -3,6 +3,12 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='oofpcipoc-api' version='0.4.2-SNAPSHOT'>
<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.number-of-neighbor-cell-entries`"/>
+ </record>
<for index='idx' start='0' end="`$generic-neighbor-configuration-input.number-of-neighbor-cell-entries`" >
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/generic-neighbor-config.log" />
@@ -16,12 +22,6 @@
<parameter name="field7" value="`$generic-neighbor-configuration-input.neighbor-list-in-use[$idx].blacklisted`"/>
</record>
</for>
- <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.number-of-neighbor-cell-entries`"/>
- </record>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/sdnr-oofpcipoc-api-dg.properties' />
<parameter name='contextPrefix' value='prop' />
@@ -35,148 +35,302 @@
<parameter name="field4" value="`$prop.controller.pwd`"/>
<parameter name="field5" value="`$prop.controller.url`"/>
</record>
- <for index='idx' start='0' end="`$generic-neighbor-configuration-input.number-of-neighbor-cell-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>
- <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="Temporary varaibles set. Neighbor #: "/>
- <parameter name="field2" value="`$idx`"/>
- <parameter name="field3" value="`$tmp.plmnid`"/>
- <parameter name="field4" value="`$tmp.cid`"/>
- <parameter name="field5" value="`$tmp.phy-cell-id`"/>
- <parameter name="field6" value="`$tmp.pnf-name`"/>
- <parameter name="field7" value="`$tmp.blacklisted`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
- <parameter name="outputPath" value="tmp.config-neighbor-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/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.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="{plmnid}"/>
- <parameter name="replacement" value="`$tmp.plmnid`"/>
- </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.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="{cid}"/>
- <parameter name="replacement" value="`$tmp.cid`"/>
- </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 Pre-configuration"/>
- <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
- <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
- <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
- <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
- <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
- </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 Pre-configuration"/>
- <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
- <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
- <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
- <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
- <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </for>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <for index='idx' start='0' end="`$generic-neighbor-configuration-input.number-of-neighbor-cell-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>
+ <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="Temporary varaibles set. Neighbor #: "/>
+ <parameter name="field2" value="`$idx`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.phy-cell-id`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ <parameter name="field7" value="`$tmp.blacklisted`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use`"/>
+ <parameter name="outputPath" value="tmp.config-neighbor-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/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.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="{plmnid}"/>
+ <parameter name="replacement" value="`$tmp.plmnid`"/>
+ </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.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="{cid}"/>
+ <parameter name="replacement" value="`$tmp.cid`"/>
+ </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 Pre-configuration"/>
+ <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
+ <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
+ <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
+ <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
+ <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
+ </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 Pre-configuration"/>
+ <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
+ <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
+ <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
+ <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
+ <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ <outcome value='true'>
+ <for index='idx' start='0' end="`$generic-neighbor-configuration-input.number-of-neighbor-cell-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>
+ <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="Temporary varaibles set. Neighbor #: "/>
+ <parameter name="field2" value="`$idx`"/>
+ <parameter name="field3" value="`$tmp.plmnid`"/>
+ <parameter name="field4" value="`$tmp.cid`"/>
+ <parameter name="field5" value="`$tmp.phy-cell-id`"/>
+ <parameter name="field6" value="`$tmp.pnf-name`"/>
+ <parameter name="field7" value="`$tmp.blacklisted`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.lte-ran-neighbor-in-use.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.config-neighbor-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/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.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="{pnf-name}"/>
+ <parameter name="replacement" value="`$tmp.pnf-name`"/>
+ </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="{plmnid}"/>
+ <parameter name="replacement" value="`$tmp.plmnid`"/>
+ </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.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="{cid}"/>
+ <parameter name="replacement" value="`$tmp.cid`"/>
+ </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 Pre-configuration"/>
+ <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
+ <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
+ <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
+ <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
+ <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
+ </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 Pre-configuration"/>
+ <parameter name="field2" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`"/>
+ <parameter name="field3" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`"/>
+ <parameter name="field4" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`"/>
+ <parameter name="field5" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`"/>
+ <parameter name="field6" value="`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ </switch>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />