diff options
author | 2019-04-10 22:11:59 +0800 | |
---|---|---|
committer | 2019-04-10 22:13:55 +0800 | |
commit | 7e01da537f44b15b2ae39ed5d9a71d467ec097db (patch) | |
tree | 3df34e3a40e3b77e9375a98ce319d3d2c17ffbdc /platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml | |
parent | 9e1fedca46f1df1059a2b7bb927d94b911f27c68 (diff) |
zte 3rd party controller for sdwan
creating a placeholder for specific templates & DG nodes required to talk to ZTE as 3rd party domain controller.
Issue-ID: SDNC-657
Change-Id: Icb774966cd9f4cd15e1beebb2dfb5194f241e4bc
Signed-off-by: Zhuoyao Huang <10112215@zte.com.cn>
Former-commit-id: 22f440deb271000c1accc7abe679335e3e1916b0
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml new file mode 100644 index 00000000..03ccd49a --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml @@ -0,0 +1,61 @@ +<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='GENERIC-RESOURCE-API' version='${project.version}'> + <method rpc='wan-connection-topology-operation-create' mode='sync'> + <block atomic="true"> + <switch test='`$network-topology-operation-input.network-information.network-id`'> + <outcome value=''> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' > + <parameter name="ctx-destination" value="network-topology-operation-input.network-information.network-id"/> + <outcome value='Other'> + <return status='failure'> + <parameter name='error-code' value='' /> + <parameter name='error-message' value="An error occured while generation allotted resource ID" /> + </return> + </outcome> + <outcome value='success'> + <block> + <set> + <parameter name='networkId' value='`$network-topology-operation-input.network-information.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/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` " /> + </set> + </block> + </outcome> + </execute> + </outcome> + </switch> + <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > + <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> + <parameter name='contextPrefix' value='prop' /> + </execute> + <block atomic="true"> + <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='`$network-topology-operation-input.network-information.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`' /> + </set> + </block> + <return status='success'> + <parameter name="ack-final-indicator" value="Y" /> + <parameter name="error-code" value="200" /> + <parameter name="error-message" value="`$error-message`" /> + </return> + </block> + </method> +</service-logic>
\ No newline at end of file |