diff options
author | 2019-06-13 08:46:43 -0500 | |
---|---|---|
committer | 2019-06-13 08:46:43 -0500 | |
commit | 5d012b346c6a6b9b87c81da720094afad5282127 (patch) | |
tree | a3945212bc03a21e427fb1e5032c79ef0cd8a755 /platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml | |
parent | 428403f72cd97df8bdded8dadb624cd01dde459a (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/oofpcipoc-api_add-neighbor.xml')
-rw-r--r-- | platform-logic/oofpcipoc-api/src/main/xml/oofpcipoc-api_add-neighbor.xml | 393 |
1 files changed, 264 insertions, 129 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" /> |