diff options
Diffstat (limited to 'ms/generic-resource-api/src/test/resources/svclogic/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml')
-rw-r--r-- | ms/generic-resource-api/src/test/resources/svclogic/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/ms/generic-resource-api/src/test/resources/svclogic/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml b/ms/generic-resource-api/src/test/resources/svclogic/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml new file mode 100644 index 0000000..fb3cdb2 --- /dev/null +++ b/ms/generic-resource-api/src/test/resources/svclogic/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml @@ -0,0 +1,90 @@ +<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='port-mirror-topology-operation' mode='sync'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-validation' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + <switch test='`$port-mirror-topology-operation-input.sdnc-request-header.svc-action`'> + <outcome value='assign'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-assign-sync' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> + <outcome value='activate'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-activate-sync' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> + <outcome value='unassign'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-unassign' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> + <outcome value='deactivate'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-deactivate-sync' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> + <outcome value='enable'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-enable' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> + <outcome value='disable'> + <block atomic="true"> + <call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-disable' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> + </switch> + <set> + <parameter name='service-object-path' value="`'/config/GENERIC-RESOURCE-API:services/service/' + + $port-mirror-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology'`" /> + <parameter name='port-mirror-object-path' value="`'/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/' + + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology'`" /> + </set> + <return status='success'></return> + </block> + </method> +</service-logic>
\ No newline at end of file |