diff options
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml index 663135a2..9b7f57e9 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml @@ -376,6 +376,29 @@ </switch> </block> </outcome> + <outcome value='ChangeInternetProfileInstance'> + <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' > + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vendor'`"> + <outcome value='true'> + <switch test='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'> + <outcome value='HUAWEI'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-internet-network-topology-operation-change-huawei' mode='sync' ></call> + </outcome> + <outcome value='NOKIA'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-internet-network-topology-operation-change-nokia' mode='sync' ></call> + </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.network-request-input.network-input-parameters.param[$idx].name+' is invalid vendor,please check!'`" /> + </return> + </outcome> + </switch> + </outcome> + </switch> + </for> + </outcome> <outcome value='create'> <switch test='`$network-topology-operation-input.request-information.request-action`'> <outcome value='CreateSOTNConnectivityInstance'> @@ -398,6 +421,52 @@ </outcome> </execute> </outcome> + <outcome value='CreateInternetProfileInstance'> + <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' > + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vendor'`"> + <outcome value='true'> + <switch test='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'> + <outcome value='HUAWEI'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-internet-network-topology-operation-create-huawei' mode='sync' ></call> + </outcome> + <outcome value='NOKIA'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-internet-network-topology-operation-create-nokia' mode='sync' ></call> + </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.network-request-input.network-input-parameters.param[$idx].name+' is invalid vendor,please check!'`" /> + </return> + </outcome> + </switch> + </outcome> + </switch> + </for> + </outcome> + <outcome value='CreateAccessConnectivityInstance'> + <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' > + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vendor'`"> + <outcome value='true'> + <switch test='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'> + <outcome value='HUAWEI'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-network-topology-operation-create-huawei' mode='sync' ></call> + </outcome> + <outcome value='NOKIA'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-network-topology-operation-create-nokia' mode='sync' ></call> + </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.network-request-input.network-input-parameters.param[$idx].name+' is invalid vendor,please check!'`" /> + </return> + </outcome> + </switch> + </outcome> + </switch> + </for> + </outcome> </switch> </outcome> <outcome value='delete'> @@ -422,6 +491,52 @@ </outcome> </execute> </outcome> + <outcome value='DeleteAccessConnectivityInstance'> + <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' > + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vendor'`"> + <outcome value='true'> + <switch test='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'> + <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.network-request-input.network-input-parameters.param[$idx].name+' is invalid vendor,please check!'`" /> + </return> + </outcome> + <outcome value='HUAWEI'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-network-topology-operation-delete-huawei' mode='sync' ></call> + </outcome> + <outcome value='NOKIA'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-network-topology-operation-delete-nokia' mode='sync' ></call> + </outcome> + </switch> + </outcome> + </switch> + </for> + </outcome> + <outcome value='DeleteInternetProfileInstance'> + <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' > + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vendor'`"> + <outcome value='true'> + <switch test='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'> + <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.network-request-input.network-input-parameters.param[$idx].name+' is invalid vendor,please check!'`" /> + </return> + </outcome> + <outcome value='HUAWEI'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-internet-network-topology-operation-delete-huawei' mode='sync' ></call> + </outcome> + <outcome value='NOKIA'> + <call module='GENERIC-RESOURCE-API' rpc='bbs-internet-network-topology-operation-delete-nokia' mode='sync' ></call> + </outcome> + </switch> + </outcome> + </switch> + </for> + </outcome> </switch> </outcome> <outcome value='reoptimize'> |