3.19.4.4.1.10 DeleteSuperscopesDelegate
The DeleteSuperscopesDelegate processing is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.DeleteSuperscope. The IpamOperationWithProgressParameter instance in this case MUST be of type DeleteSuperscopesParameters.
This operation is used to delete a given superscope. In the following steps, any time a fault is generated, the SetOverallStatus SHOULD be called with the fault details:
If IpamOperationWithProgressParameter is NULL or not of type DeleteSuperscopesParameters, generate an appropriate SOAP fault (as specified in section 2.2.2.1). Project IpamOperationWithProgressParameter in a local variable as DeleteSuperscopesParameters.
If DeleteSuperscopesParameters.Superscopes is NULL, generate an appropriate SOAP fault.
For each scope belonging to each superscope, if it is in a failover relationship, this function is called for the partner scope. This removes the partner scope from the superscope with the same configuration as DeleteSuperscopesParameters.SuperScope, on the partner server.
For each superscope in the list DeleteSuperscopesParameters.Superscopes, retrieve the superScope ID from SuperScope.RecordId. Delete the row in ADM_DhcpSuperScopeTable that has ADM_DhcpSuperscopetable.RecordId equal to retrieved superscope ID.
Call SetOverallStatus with Success and 100 percent completion.