diff options
author | 2018-08-09 14:08:39 +0530 | |
---|---|---|
committer | 2018-08-09 16:30:50 +0000 | |
commit | 74c1c3507bbd3194c7bb57e45ffd08428dd280c2 (patch) | |
tree | 0b4cbec0998c59a80d5fc79a436b28da99dc5bf5 /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml | |
parent | bdf9859eb3df68fea82e938b9ed7584b4787657d (diff) |
connectivity attachment issue fix
Test issues fixed
Change-Id: I991876c6176c5fa05682e635b9c1e29eb5b08d54
Issue-ID: SDNC-356
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Former-commit-id: e89a860588e3a094d5cc251dd6992373c2f36ab7
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml | 470 |
1 files changed, 235 insertions, 235 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml index 98762e99..3359ece8 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-connection-attachment-input.xml @@ -1,236 +1,236 @@ -<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='validate-connection-attachment-input' mode='sync'>
- <block atomic="true">
- <switch test='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="sdnc-request-header.svc-request-id is a required input" />
- </return>
- </outcome>
- </switch>
- <switch test='`$connection-attachment-topology-operation-input.service-information.service-instance-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.service-instance-id is a required input" />
- </return>
- </outcome>
- </switch>
- <switch test='`$connection-attachment-topology-operation-input.service-information.parent-service-instance-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="service-information.parent-service-instance-id is a required input" />
- </return>
- </outcome>
- </switch>
- <switch test='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`'>
- <outcome value='create'>
- <block atomic="true">
- <switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>
- <outcome value='CreateSOTNAttachmentInstance'>
- <block atomic="true">
- <for index="i" start="0" end="`$connection-attachment-topology-operation-input.connection-attachment-request-input.param_length`">
- <block>
- <set>
- <parameter name='tmp.name' value='' />
- <parameter name='tmp.value' value='' />
- </set>
- <set>
- <parameter name='tmp.name' value="`$connection-attachment-topology-operation-input.connection-attachment-request-input.param[$i].name`"/>
- <parameter name='tmp.value' value="`$connection-attachment-topology-operation-input.connection-attachment-request-input.param[$i].value`"/>
- </set>
- <switch test="`$tmp.name`">
- <outcome value='sotnVpnName'>
- <switch test="`$tmp.value`">
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'$tmp.name +' is a required input'`" />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='clientSignal'>
- <switch test="`$tmp.value`">
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'$tmp.name +' is a required input'`" />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='access-provider-id'>
- <switch test="`$tmp.value`">
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'$tmp.name +' is a required input'`" />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='access-client-id'>
- <switch test="`$tmp.value`">
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'$tmp.name +' is a required input'`" />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='access-topology-id'></outcome>
- <outcome value='access-node-id'>
- <switch test="`$tmp.value`">
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'$tmp.name +' is a required input'`" />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='cVLAN'>
- <switch test="`$tmp.value`">
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'$tmp.name +' is a required input'`" />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'network-topology-operation-input.network-request-input.network-input-parameters.param[' + $i + ']' + '.name is a required input'`" />
- </return>
- </outcome>
- </switch>
- </block>
- </for>
- </block>
- </outcome>
- <outcome value='other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="sdnc-request-header.request-action is invalid" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='activate'>
- <block atomic="true">
- <switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>
- <outcome value='ActivateSOTNAttachmentInstance'>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >
- <parameter name="connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id" value="$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id"/>
- </execute>
- <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="sdnc-request-header.request-action is invalid" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='deactivate'>
- <block atomic="true">
- <switch test='`$sotn-topology-operation-input.request-information.request-action`'>
- <outcome value='DeactivateSOTNAttachmentInstance'>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >
- <parameter name="connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id" value="$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id"/>
- </execute>
- <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=delete" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='delete'>
- <block atomic="true">
- <switch test='`$sotn-topology-operation-input.request-information.request-action`'>
- <outcome value='DeleteSOTNAttachmentInstance'>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >
- <parameter name="connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id" value="$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id"/>
- </execute>
- <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=delete" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`" />
- </return>
- </outcome>
- </switch>
- </block>
- </method>
+<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='validate-connection-attachment-input' mode='sync'> + <block atomic="true"> + <switch test='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="sdnc-request-header.svc-request-id is a required input" /> + </return> + </outcome> + </switch> + <switch test='`$connection-attachment-topology-operation-input.service-information.service-instance-id`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="service-information.service-instance-id is a required input" /> + </return> + </outcome> + </switch> + <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="service-information.parent-service-instance-id is a required input" /> + </return> + </outcome> + </switch> + <switch test='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`'> + <outcome value='create'> + <block atomic="true"> + <switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'> + <outcome value='CreateSOTNAttachmentInstance'> + <block atomic="true"> + <for index="i" start="0" end="`$connection-attachment-topology-operation-input.connection-attachment-request-input.param_length`"> + <block> + <set> + <parameter name='tmp.name' value='' /> + <parameter name='tmp.value' value='' /> + </set> + <set> + <parameter name='tmp.name' value="`$connection-attachment-topology-operation-input.connection-attachment-request-input.param[$i].name`"/> + <parameter name='tmp.value' value="`$connection-attachment-topology-operation-input.connection-attachment-request-input.param[$i].value`"/> + </set> + <switch test="`$tmp.name`"> + <outcome value='sotnVpnName'> + <switch test="`$tmp.value`"> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'$tmp.name +' is a required input'`" /> + </return> + </outcome> + </switch> + </outcome> + <outcome value='clientSignal'> + <switch test="`$tmp.value`"> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'$tmp.name +' is a required input'`" /> + </return> + </outcome> + </switch> + </outcome> + <outcome value='access-provider-id'> + <switch test="`$tmp.value`"> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'$tmp.name +' is a required input'`" /> + </return> + </outcome> + </switch> + </outcome> + <outcome value='access-client-id'> + <switch test="`$tmp.value`"> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'$tmp.name +' is a required input'`" /> + </return> + </outcome> + </switch> + </outcome> + <outcome value='access-topology-id'></outcome> + <outcome value='access-node-id'> + <switch test="`$tmp.value`"> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'$tmp.name +' is a required input'`" /> + </return> + </outcome> + </switch> + </outcome> + <outcome value='cVLAN'> + <switch test="`$tmp.value`"> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'$tmp.name +' is a required input'`" /> + </return> + </outcome> + </switch> + </outcome> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'network-topology-operation-input.network-request-input.network-input-parameters.param[' + $i + ']' + '.name is a required input'`" /> + </return> + </outcome> + </switch> + </block> + </for> + </block> + </outcome> + <outcome value='other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="sdnc-request-header.request-action is invalid" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='activate'> + <block atomic="true"> + <switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'> + <outcome value='ActivateSOTNAttachmentInstance'> + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' > + <parameter name="connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id" value="$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id"/> + </execute> + <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="sdnc-request-header.request-action is invalid" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='deactivate'> + <block atomic="true"> + <switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'> + <outcome value='DeactivateSOTNAttachmentInstance'> + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' > + <parameter name="connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id" value="$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id"/> + </execute> + <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=delete" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='delete'> + <block atomic="true"> + <switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'> + <outcome value='DeleteSOTNAttachmentInstance'> + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' > + <parameter name="connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id" value="$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id"/> + </execute> + <switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="request-information.request-action is required to be DeleteNetworkInstance for svc-action=delete" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='Other'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`" /> + </return> + </outcome> + </switch> + </block> + </method> </service-logic>
\ No newline at end of file |