diff options
author | 2017-10-05 19:55:42 +0530 | |
---|---|---|
committer | 2017-10-05 14:35:45 +0000 | |
commit | a26adc924eba86198fbf91e0932023fb2f79bb0d (patch) | |
tree | 774a7d766b48e272d09c76ffca4e92fc6dc08a3c /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml | |
parent | a673f0efbde4ded7a48722aaa85b01775fb2dd95 (diff) |
Deactivate flow modification for DCI
Changes includes:
1) Save network information SDNC's MD-SAL data store
2) Send network-id & network-object-path in network-topology-operation-output
3) Deactivation based on stored network-id
Change-Id: I4498d33e9e7921e047bfe9dff8c9801153f5f5f4
Issue-Id: SDNC-113
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
Former-commit-id: 4d38cecf0f03e1244ca0c605c5802632b36f3b82
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml index ebd32db5..d0a402c7 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml @@ -132,6 +132,19 @@ <parameter name="prop.sdncRestApi.thirdpartySdnc.user" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`" /> <parameter name="prop.sdncRestApi.thirdpartySdnc.password" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`" /> </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder"> + <parameter name="logger" value="message-log" /> + <parameter name="field1" value="__TIMESTAMP__" /> + <parameter name="field2" value="dci-network-topology-operation-activate" /> + <parameter name="field3" value="dci-connects.name" /> + <parameter name="field4" value="$prop.dci-connects.name" /> + <parameter name="field5" value="dci-connects.id" /> + <parameter name="field6" value="`$prop.dci-connects.id`" /> + <parameter name="field7" value="dci-connects.tunnelType" /> + <parameter name="field8" value="`$prop.dci-connects.tunnelType`" /> + <parameter name="field9" value="sdncRestApi.thirdpartySdnc.url" /> + <parameter name="field10" value="`$prop.sdncRestApi.thirdpartySdnc.url`" /> + </record> <switch test="`$prop.dci-connects.tunnelType`"> <outcome value="L3-DCI"> <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> @@ -277,6 +290,19 @@ <parameter name="prop.sdncRestApi.thirdpartySdnc.user" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`" /> <parameter name="prop.sdncRestApi.thirdpartySdnc.password" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`" /> </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder"> + <parameter name="logger" value="message-log" /> + <parameter name="field1" value="__TIMESTAMP__" /> + <parameter name="field2" value="dci-network-topology-operation-activate" /> + <parameter name="field3" value="dci-connects.name" /> + <parameter name="field4" value="$prop.dci-connects.name" /> + <parameter name="field5" value="dci-connects.id" /> + <parameter name="field6" value="`$prop.dci-connects.id`" /> + <parameter name="field7" value="dci-connects.tunnelType" /> + <parameter name="field8" value="`$prop.dci-connects.tunnelType`" /> + <parameter name="field9" value="sdncRestApi.thirdpartySdnc.url" /> + <parameter name="field10" value="`$prop.sdncRestApi.thirdpartySdnc.url`" /> + </record> <switch test="`$prop.dci-connects.tunnelType`"> <outcome value="L3-DCI"> <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> @@ -303,6 +329,39 @@ </switch> </block> </block> + <block atomic="true"> + <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID"> + <parameter name="ctx-destination" value="prop.dci.network-id" /> + </execute> + <switch test="`$service-data.networks.network_length`"> + <outcome value=""> + <set> + <parameter name="nidx" value="0" /> + </set> + </outcome> + <outcome value="Other"> + <set> + <parameter name="nidx" value="`$service-data.networks.network_length`" /> + </set> + </outcome> + </switch> + <set> + <parameter name="service-data.networks.network[$nidx].network-id" value="`$prop.dci.network-id`" /> + <parameter name="service-data.networks.network[$nidx].network-data.sdnc-request-header." value="`$network-topology-operation-input.sdnc-request-header.`" /> + <parameter name="service-data.networks.network[$nidx].network-data.request-information." value="`$network-topology-operation-input.request-information.`" /> + <parameter name="service-data.networks.network[$nidx].network-data.service-information." value="`$network-topology-operation-input.service-information.`" /> + <parameter name="service-data.networks.network[$nidx].network-data.network-information." value="`$network-topology-operation-input.network-information.`" /> + <parameter name="service-data.networks.network[$nidx].network-data.network-request-input." value="`$network-topology-operation-input.network-request-input.`" /> + <parameter name="service-data.networks.network_length" value="`$nidx+1`" /> + <parameter name="service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status" value="Created" /> + <parameter name="service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action" value="`$network-topology-operation-input.sdnc-request-header.svc-action`" /> + <parameter name="service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action" value="`$network-topology-operation-input.request-information.request-action`" /> + </set> + <set> + <parameter name="networkId" value="`$prop.dci.network-id`" /> + <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.dci.network-id + '/network-data/'` " /> + </set> + </block> </block> <return status="success"> <parameter name="ack-final-indicator" value="Y" /> |